You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Pl...@nokia.com on 2001/03/15 09:24:42 UTC

Client SOAPException

I'm using the Apache SOAP client to interface a C++ SOAP server on another
PC on my desk.

My client prepares a request: 
[Header=null] [methodName=add] [targetObjectURI=null]
[encodingStyleURI=http://schemas.xmlsoap.org/soap/encoding/]
[Params={[[name=a] [type=int] [value=6] [encodingStyleURI=null]], [[name=b]
[type=int] [value=7] [encodingStyleURI=null]]}]

My client sends the request:  Response resp=call.invoke(url, action).
The server receives the request
The server executes the method 
The server prepares the right response
The server sends the response

The client receives a response but there is a SOAPException. The resp object
is null and if I do: System.out.println(e1.toString() ) the result is:

 [SOAPException: faultCode=SOAP-ENV:Client; msg=error reading HTTP headers:
String index out of range: -1;
targetException=java.lang.IllegalArgumentException: error reading HTTP
headers: String index out of range: -1]


Can someone help me?

Thank you in advance
   Dino