You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Priya <pm...@orbit-e.com> on 2001/05/03 11:47:59 UTC

RE: question re: apache 2.1 return result

just a thought....but ....wouldn't it help if you defined a mapping for the
"Result" element (via the SOAPMappingRegistry)..and in this case ,u wud
probably use the StringDeserializer to interpret the content of the "Result"
element.
Or...maybe u already know this...and your question is purely academic.. ??

regards,
Priya

-----Original Message-----
From: soap-user-return-6784-pmarwa=orbit-e.com@xml.apache.org
[mailto:soap-user-return-6784-pmarwa=orbit-e.com@xml.apache.org]On
Behalf Of graham glass
Sent: Tuesday, May 01, 2001 12:33 AM
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