[Mono-devel-list] Problems with Webservice client
Jörg Rosenkranz
joergr at voelcker.com
Wed Feb 11 08:17:07 EST 2004
One additional notice:
I've gone through the Apache logs of the server hosting our PHP
web service and found some interesting entries:
access_log:
192.168.1.2 - - [11/Feb/2004:11:07:20 +0100] "POST /itforschool/webservice/wsdr.php HTTP/1.1" 200 734
192.168.1.2 - - [11/Feb/2004:11:07:20 +0100] "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><q1:addApplikationtoPerson xmlns:q1=\"urn:Raptor\"><uidviapplikation href=\"#id1\" /><uidviperson xsi:type=\"xsd:string\">7e8d4bfb-fe54-42b9-a673-2dc47fd7e663</uidviperson></q1:addApplikationtoPerson><q2:Array id=\"id1\" q2:arrayType=\"xsd:string[1]\" xmlns:q2=\"http://schemas.xmlsoap.org/soap/encoding/\"><Item xsi:type=\"xsd:string\">bdfb45d5-0826-47b0-8917-45045a3464b0</Item></q2:Array></soap:Body></soap:Envelope>POST /itforschool/webservice/wsdr.php HTTP/1.1" 400 367
192.168.1.2 - - [11/Feb/2004:11:07:22 +0100] "POST /itforschool/webservice/wsdr.php HTTP/1.1" 200 734
error_log:
[Wed Feb 11 11:07:20 2004] [error] [client 192.168.1.2] request failed: erroneous characters after protocol string: <?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><q1:addApplikationtoPerson xmlns:q1=\"urn:Raptor\"><uidviapplikation href=\"#id1\" /><uidviperson xsi:type=\"xsd:string\">7e8d4bfb-fe54-42b9-a673-2dc47fd7e663</uidviperson></q1:addApplikationtoPerson><q2:Array id=\"id1\" q2:arrayType=\"xsd:string[1]\" xmlns:q2=\"http://schemas.xmlsoap.org/soap/encoding/\"><Item xsi:type=\"xsd:string\">bdfb45d5-0826-47b0-8917-45045a3464b0</Item></q2:Array></soap:Body></soap:Envelope>POST /itforschool/webservice/wsdr.php HTTP/1.1
Resulting exception in our log file:
Wednesday, 11 February 2004 11:07:20 - Errors occured
Got Exception: Request error. Return code was: BadRequest
Status: RequestCanceled
Stack Trace:
in <0x00115> System.Web.Services.Protocols.SoapHttpClientProtocol:ReceiveResponse (System.Net.WebResponse,System.Web.Services.Protocols.SoapClientMessage,System.Web.Services.Protocols.SoapExtension[])
in <0x0007d> (wrapper remoting-invoke-with-check) System.Web.Services.Protocols.SoapHttpClientProtocol:ReceiveResponse (System.Net.WebResponse,System.Web.Services.Protocols.SoapClientMessage,System.Web.Services.Protocols.SoapExtension[])
in <0x0021f> System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke (string,object[])
...
The header of the HTTP request send to the server seems to be missing.
Joerg.
> -----Original Message-----
> From: mono-devel-list-admin at lists.ximian.com
> [mailto:mono-devel-list-admin at lists.ximian.com] On Behalf Of
> Jörg Rosenkranz
> Sent: Wednesday, February 11, 2004 1:23 PM
> To: lluis at ximian.com
> Cc: mono-devel-list at ximian.com
> Subject: RE: [Mono-devel-list] Problems with Webservice client
>
>
> Hello Lluis,
>
> > -----Original Message-----
> > From: Lluis Sanchez [mailto:lluis at ximian.com]
> > Sent: Tuesday, February 10, 2004 6:17 PM
> >
> > Are you trying with current CVS?
> >
>
> I have tested it with yesterday's and today's CVS version
> and still get exceptions. There are many calls without
> problems but the exceptions show up regularly.
> I recognized following exceptions in the last tests:
>
> WebException: Request error. Return code was: BadRequest
> Status: RequestCanceled
> Stack Trace:
> in <0x00115>
> System.Web.Services.Protocols.SoapHttpClientProtocol:ReceiveRe
> sponse
> (System.Net.WebResponse,System.Web.Services.Protocols.SoapClie
> ntMessage,System.Web.Services.Protocols.SoapExtension[])
> in <0x0007d> (wrapper remoting-invoke-with-check)
> System.Web.Services.Protocols.SoapHttpClientProtocol:ReceiveRe
> sponse
> (System.Net.WebResponse,System.Web.Services.Protocols.SoapClie
> ntMessage,System.Web.Services.Protocols.SoapExtension[])
> in <0x0021f>
> System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke
> (string,object[])
> ...
>
> WebException: The request timed out
> Status: Timeout
> Stack Trace:
> in <0x001f2>
> System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke
> (string,object[])
> ...
>
> WebException: Error getting response stream
> Status: ReceiveFailure
> Stack Trace:
> in <0x001f2>
> System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke
> (string,object[])
> ...
>
>
> The web service works against a LDAP directory, so response
> times of some seconds are usual. The timeout of our web
> service client is set to 3 minutes.
>
> Any ideas to isolate this problem are appreciated.
>
> Thanks,
> Joerg
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
More information about the Mono-devel-list
mailing list