logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: WSDL problem : the header is in the body...: msg#00027

Subject: Re: WSDL problem : the header is in the body...
This may be a NuSOAP limitation, or it may be invalid WSDL.  You have 
posted the relevant message.  Can you also post the relevant operation 
elements from portType and binding?  If you cannot post the WSDL URL 
publicly, can you forward it directly to me?

Scott Nichol

----- Original Message ----- 
From: "Arnaud" <eolenomade@xxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, June 29, 2007 7:06 AM
Subject: [Nusoap-general] WSDL problem : the header is in the body...


> Hello,
>
> I'm using a WSDL file through $client = new soapclient($url_local, 
> true);
> It usually have no problem running that kind of services with Nusoap, 
> but
> today I encounter that error :
> Fault: Array ( [faultcode] => soapenv:Server.userException 
> [faultstring] =>
> org.xml.sax.SAXException: Found instance data for
> {http://xxxx}CallerIdentity in the soap:body instead of the 
> soap:header
>
> Here is a part of the request :
>
> <SOAP-ENV:Header>
> <CallerIdentity>
> <applicationId>xxx</applicationId>
> <operatorId>xxx</operatorId>
> <wsToken></wsToken>
> </CallerIdentity>
> </SOAP-ENV:Header>
> <SOAP-ENV:Body>
> <CallerIdentity/>
> </SOAP-ENV:Body>
>
> The headers are ok (I used setHeaders) but the problem is that the
> <CallerIdentity> tag is not needed in the body area...
> When I don't use the "setHeaders" function, the headers disappear but
> callerIdentity is still in the body...
>
> So I'm asking myself if Nusoap is able to manage such a WSDL ?
> I read on the introduction to nusoap :
> http://www.scottnichol.com/nusoapintro.htm that "NuSOAP does not 
> provide
> coverage of the SOAP 1.1 and WSDL 1.1 that is as complete as some 
> other
> implementations, such as .NET and Apache Axis." So perhaps my WSDL is 
> not
> compatible and make Nusoap have some trouble in the parsing ?
>
> Another tip : I'm trying to use a method "accountinfo", the WSDL 
> include
> those lines fore the request :
> <wsdl:message name="AccountInfoRequest">
>        <wsdl:part name="request_header"
> element="impl:CallerIdentity"></wsdl:part>
>        <wsdl:part element="impl:getAllAccountInfo" name="parameters" 
> />
> </wsdl:message>
>
> Have you any idea to avoid the header part from the body part of the 
> request
> ?
>
> Thanks a lot,
> Arnaud
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Nusoap-general mailing list
> Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/nusoap-general
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


<Prev in Thread] Current Thread [Next in Thread>