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 Tony Hong <th...@xmethods.net> on 2001/04/30 20:58:41 UTC

RE: question re: apache 2.1 return result

This is due to the fact that the return uses 2001 XML Schema. The latest
nightly build of apache will support this, but the 2.1 release does not.

> -----Original Message-----
> From: graham glass [mailto:graham-glass@mindspring.com]
> Sent: Monday, April 30, 2001 12:03 PM
> To: soap-user@xml.apache.org
> Cc: MindElectricTechnology@yahoogroups.com
> Subject: question re: apache 2.1 return result
>
>
> hi guys,
>
> is apache hard-wired to expect a certain name
> for a SOAP result? the apache 2.1 SOAP client is
> invoking a method call on a remote server that's
> returning a result name of "Result:" and the apache
> client is spitting out the error message:
>
> > error:
> > -----------------
> > Exception in thread "main" [SOAPException: faultCode=SOAP-
> ENV:Client;
> > msg=No Deserializer found to deserialize a ':Result' using encoding
> > style 'http:
> > //schemas.xmlsoap.org/soap/encoding/'.;
> > targetException=java.lang.IllegalArgumentException: No Deserializer
> > found to deserialize a ':Result' using enc
> > oding style 'http://schemas.xmlsoap.org/soap/encoding/'.]
> >         at org.apache.soap.rpc.Call.invoke(Call.java:244)
> >         at SoapClient.main(SoapClient.java:33)
> >
>
> is this a bug in apache? if so, when will it be fixed?
>
> cheers,
> graham
>
> ======================= APACHE CLIENT CALLING CODE =============
>
> >     URL url = new URL ("http://155.184.15.212:8005/glue" );
> >     String encodingStyleURI = Constants.NS_URI_SOAP_ENC;
> >
> >     Call call = new Call ();
> >     call.setTargetObjectURI ("urn:IS3e");
> >     call.setMethodName ("placeOrder");
> >     call.setEncodingStyleURI(encodingStyleURI);
> >
> >     Vector params = new Vector ();
> >     call.setParams (params);
> >
> >     Response resp = call.invoke ( url, "" );
>
>
> ================= WIRE DUMP =====================
>
> Log:
> ----
>
> LOG.SOAP: request for urn:IS3e
> ------------------------------
>
> <?xml version='1.0' encoding='UTF-8'?>
>   <SOAP-ENV:Envelope xmlns:SOAP-
> ENV='http://schemas.xmlsoap.org/soap/envelope/'
> xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance'
> xmlns:xsd='http://www.w3.org/1999/XMLSchema'>
>     <SOAP-ENV:Body>
>       <ns1:placeOrder xmlns:ns1='urn:IS3e' SOAP-
> ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
>     </SOAP-ENV:Body>
>   </SOAP-ENV:Envelope>
>
>
> LOG.SOAP: response from urn:IS3e
> --------------------------------
> <?xml version='1.0' encoding='UTF-8'?>
>   <SOAP-ENV:Envelope xmlns:SOAP-
> ENV='http://schemas.xmlsoap.org/soap/envelope/'
> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
> xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:SOAP-
> ENC='http://schemas.xmlsoap.org/soap/encoding/' SOAP-
> ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
>     <SOAP-ENV:Body>
>       <urn:placeOrderResponse xmlns:urn='urn:IS3e'>
>         <Result xsi:type='xsd:string'>ORD00993648</Result>
>       </urn:placeOrderResponse>
>     </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org


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