I am not sure what you mean by "your Java SOAP client". What code is this based on?
In any case, the problem is that you have mapped the wrong type. From the error message, I can see the XML type is http://tempuri.org:addNumbersResult, but you have mapped :addNumbersResult. Your mapTypes call should look like: smr.mapTypes (Constants.NS_URI_SOAP_ENC, new QName ("http://tempuri.org", "addNumbersResult"), null, null, sd); Scott Nichol ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, October 24, 2002 10:15 AM Subject: Re: SOAP Client code using VB/VC > Scott, > > I got the following error message when using your Java SOAP client with my > modification: > > error message: > > C:\Web Services\javaclient>java testClient > Caught SOAPException (SOAP-ENV:Client): No Deserializer found to > deserialize a & > apos;http://tempuri.org/:addNumbersResult' using encoding style > 'null& > apos;. > > source code: > public class testClient > { > > public static void main(String[] args) throws Exception > { > > URL url = new URL > ("http://130.140.64.242/AddNumbersWebService/AddNumberService.asmx"); > > SOAPMappingRegistry smr = new SOAPMappingRegistry (); > StringDeserializer sd = new StringDeserializer (); > smr.mapTypes (Constants.NS_URI_SOAP_ENC, > new QName ("", "addNumbersResult"), null, null, sd); > > // create the transport and set parameters > SOAPHTTPConnection st = new SOAPHTTPConnection(); > > > // build the call. > Call call = new Call (); > call.setSOAPTransport(st); > call.setSOAPMappingRegistry (smr); > > call.setTargetObjectURI ("http://tempuri.org/message"); > call.setMethodName("addNumbers"); > call.setEncodingStyleURI > ("http://schemas.xmlsoap.org/soap/encoding/"); > > Vector params = new Vector(); > params.addElement(new Parameter("NumberOne", Double.class, > "10", null)); > params.addElement(new Parameter("NumberTwo", Double.class, > "25", null)); > call.setParams(params); > > Response resp = null; > try > { > resp = call.invoke (url, "http://tempuri.org/addNumbers"); > } > catch (SOAPException e) > { > System.err.println("Caught SOAPException (" + > e.getFaultCode () + "): " + > e.getMessage ()); > return; > } > > if (resp == null) > { > System.out.println("Response was null"); > } > > // check response > if (resp != null && !resp.generatedFault()) > { > Parameter ret = resp.getReturnValue(); > Object value = ret.getValue(); > > System.out.println ("Answer--> " + value); > } > else { > Fault fault = resp.getFault (); > System.err.println ("Generated fault: "); > System.out.println (" Fault Code = " + fault.getFaultCode()); > System.out.println (" Fault String = " + fault.getFaultString()); > } > } > } > > It looks like something wrong with the encoding setting. > > Please check what's wrong with it. > > Note: the Web service side is implemented in C#. > > Jingkun > > > > > > Scott Nichol <[EMAIL PROTECTED]> > 2002-10-23 05:25 PM > Please respond to soap-user > > > To: [EMAIL PROTECTED] > [EMAIL PROTECTED] > cc: [EMAIL PROTECTED] > (bcc: Jingkun Hu/BRQ/RESEARCH/PHILIPS) > Subject: Re: SOAP Client code using VB/VC > Classification: > > > > Check http://www.scottnichol.com/vbclientapachesoap.htm and > http://www.scottnichol.com/vbclienthiapachesoap.htm for VB clients using > Microsoft SOAP Toolkit. > > Scott Nichol > > ----- Original Message ----- > From: "Omprakash Bachu" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, October 23, 2002 5:17 PM > Subject: SOAP Client code using VB/VC > > > > Hi friends, I found the sample SOAP client code for Java but can > anyone send > > me the SOAP VB and VC clients for accessing Apache's v2.2 SOAP > service. > > > > thanks > > Om > > > > > > -- > > To unsubscribe, e-mail: > <mailto:soap-user-unsubscribe@;xml.apache.org> > > For additional commands, e-mail: > <mailto:soap-user-help@;xml.apache.org> > > > > > > > -- > To unsubscribe, e-mail: <mailto:soap-user-unsubscribe@;xml.apache.org> > For additional commands, e-mail: <mailto:soap-user-help@;xml.apache.org> > > > > -- To unsubscribe, e-mail: <mailto:soap-user-unsubscribe@;xml.apache.org> For additional commands, e-mail: <mailto:soap-user-help@;xml.apache.org>