cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wechner <michael.wech...@wyona.org>
Subject Re: WebServiceProxy
Date Sat, 24 Aug 2002 05:52:07 GMT


Ivelin Ivanov wrote:

>The HttpMultiClient maintains a session by default.
>
>Interestingly the HttpClient has been a stable alpha for many months.
>There are occasionally discussions for upgrading it to 1.0, but no one has
>stepped up to do that.
>
>HttpMultiClient is the one that has the richest functionality and is
>preferred to use over the plain HttpClient.
>
>Other than the JavaDoc, I have found much use from the unit tests and the
>jakarta-commons discussion list.
>

Thanks Ivelin. I will dive into it.

Michael

>
>
>
>Ivelin
>
>
>----- Original Message -----
>From: "Michael Wechner" <michael.wechner@wyona.org>
>To: <cocoon-dev@xml.apache.org>
>Sent: Monday, July 22, 2002 5:06 PM
>Subject: Re: WebServiceProxy
>
>
>>
>>Ivelin Ivanov wrote:
>>
>>>Interesting case.
>>>
>>>Appears that two sessions are crossing each other's ways.
>>>
>>>I have tried multiple browsers with multiple sessions working against the
>>>same Feedback wizard, to test for this.
>>>WSProxy uses the jakarta HttpClient library, which saves and reuses the
>>>cookies, thus the session, if started by the remote application.
>>>
>>>Maybe you will need to dump all HTTP headers to be able to track down the
>>>problem.
>>>Once you identify it, please let me know what it is, so we can discuss a
>>>possible patch.
>>>
>>I will try to locate the problem.
>>
>>Can you give me a hint where you tell the HttpClient to save
>>and reuse the cookies (or is this just default behaviour)?
>>
>>And what is the role of the HttpMultiClient?
>>
>>And do you know a URL of any "advanced" documentation of the HttpClient
>>library form jakarta,
>> or is there only the JavaDoc?
>>
>>Thanks
>>
>>Michael
>>
>>
>>>
>>>
>>>Cheers,
>>>
>>>Ivelin
>>>
>>>
>>>
>>>----- Original Message -----
>>>From: "Michael Wechner" <michael.wechner@wyona.org>
>>>To: <cocoon-dev@xml.apache.org>
>>>Sent: Sunday, July 21, 2002 10:29 PM
>>>Subject: WebServiceProxy
>>>
>>>
>>>>Hi
>>>>
>>>>I started to check the WebServiceProxy.
>>>>
>>>>I am using Linux (2.4) JDK1.3.1 and Tomcat 4.0.4-b3 and
>>>>xml-cocoon2_20020719041901.tar.gz (2.1-dev)
>>>>
>>>>I included the following pipeline into the sitemap
>>>>
>>>>    <map:match pattern="HelloWorld">
>>>>       <map:generate type="wsproxy"
>>>>src="http://localhost:8080/wyona-cms/servlet/HelloWorld" labe
>>>>l="xml"/>
>>>>       <map:serialize type="xml"/>
>>>>     </map:match>
>>>>
>>>>The HelloWorld servlet returns the following XML
>>>>
>>>><servlet class="org.wyona.cms.cocoon.generation.HelloWorld">
>>>><request method="GET"><nosession/></request></servlet>
>>>>
>>>>Because I forgot the line <?xml version="1.0"?> I received an error,
>>>>but then the problem was that "samples/webserviceproxy" didn't run
>>>>anymore, which means I received a broken pipe error.
>>>>
>>>>After I inserted the line <?xml version="1.0"?> it seemed to be alright.
>>>>
>>>>But when I started to create a session, then it broke again. I checked
>>>>the same cocoon instance with another browser, which didn't have a
>>>>
>session
>
>>>yet.
>>>
>>>>It worked. As soon as I created a session, the WebServiceProxy crashed
>>>>
>for
>
>>>this client.
>>>
>>>>Please see below the stack trace.
>>>>I guess it must have something to do with "passing the session" resp.
>>>>
>>>"passing the cookies".
>>>
>>>>But I didn't find anything within your code, where you would do
>>>>
>something
>
>>>like that.
>>>
>>>>Thanks
>>>>
>>>>Michael
>>>>



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message