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 Ragnvald Balch Barth 8378 <RB...@rubicon.no> on 2000/08/21 12:22:19 UTC
Call.invoke fails.
> Hi.
> Why does Call.invoke() throw an exeption?
> This code should be by the book...
>
> Call call = new Call ();
> call.setTargetObjectURI (strTmp);
> call.setMethodName ("ebizGetClients");
> call.setEncodingStyleURI(encodingStyleURI);
> call.setParams (params);
> Response resp = call.invoke (url, "" );
>
> ... but I always get this exeption:
>
> [SOAPException: faultCode=SOAP-ENV:Client; msg=Root element of a SOAP
> message must be: 'http://schemas.xmlsoap.org/soap/envelope/:Envelope'.;
> targetException=java.lang.IllegalArgumentException: Root element of a SOAP
> message must be: 'http://schemas.xmlsoap.org/soap/envelope/:Envelope'.]
>
> the fault code is SOAP-ENV:Client, so nothing is sent.
> Anybody has any idea?
> Thanks!
> Ragnvald.