SOAPException (SOAP-ENV:Client): No Deserializer found
SAM KUMAR
Greenhorn
Joined: Jan 02, 2002
Posts: 25
posted
0
Hi, I am new to webservice and trying to execute temperature webservice provided by xmethods.net but I am getting following error: Caught SOAPException (SOAP-ENV:Client): No Deserializer found to deserialize a ':return' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'. Here is the code snippet: URL url = null; String name = null; url = new URL("http://services.xmethods.net:80/soap/servlet/rpcrouter"); name = args[0]; // Build the call. Call call = new Call(); call.setTargetObjectURI("urn:xmethods-Temperature"); call.setMethodName("getTemp"); call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC); Vector params = new Vector(); params.addElement(new Parameter("zipcode", String.class, name, null)); call.setParams(params); // Invoke the call. Response resp = null; try { resp = call.invoke(url, ""); } catch( SOAPException e ) { System.err.println("Caught SOAPException (" + e.getFaultCode() + "): " + e.getMessage()); System.exit(-1); }
Any help is highly appreciated. Thanks in advance. Sam
Balaji Loganathan
author and deputy
Bartender
Joined: Jul 13, 2001
Posts: 3150
posted
0
Can you post the link for WSDL. Are you using Apache's WSDL2Java, if so the i guess there is some problem while geneating the codes, re-run it and try again.