Hi All
I got the following exception ..........
Caught SOAPException (SOAP-ENV:Client): No Deserializer found to deserialize a
http://xmlme.net/webservices/:FindVideoGamesResult' using encoding style 'http:
/schemas.xmlsoap.org/soap/encoding/'.
when I tried to call MS.NET service "VideoGamesFinder" from www.xmethods.com .
I am using Tomcat 3.2.3 and soap 2.2
This is my code..........
private String videoFinder() {
String retValue = "";
URL url = null;
try {
url =
new URL("http://v003u23wlw.net.maximumasp.com/V2WSVideoGames.asmx");
} catch (Exception e) {
System.out.println(e);
}
SOAPMappingRegistry smr = new SOAPMappingRegistry();
StringDeserializer sd = new StringDeserializer();
smr.mapTypes(
Constants.NS_URI_SOAP_ENC,
new QName("", "Result"),
null,
null,
sd);
SOAPHTTPConnection st = new SOAPHTTPConnection();
Call call = new Call();
call.setSOAPTransport(st);
call.setSOAPMappingRegistry(smr);
call.setTargetObjectURI("http://xmlme.net/webservices/");
call.setMethodName("FindVideoGames");
call.setEncodingStyleURI("http://schemas.xmlsoap.org/soap/encoding/");
Vector params = new Vector();
params.addElement(new Parameter("NumberTwo", String.class, "sony", null));
call.setParams(params);
Response resp = null;
try {
resp =
call.invoke(url, "http://xmlme.net/webservices/FindVideoGames");
} catch (SOAPException e) {
System.err.println(
"Caught SOAPException (" + e.getFaultCode() + "): " + e.getMessage());
return retValue;
}
if (resp != null && !resp.generatedFault()) {
Parameter ret = resp.getReturnValue();
Object value = ret.getValue();
System.out.println("Value is" + 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());
}
return retValue;
}
Can any one who solved this problem help me
Thanks a lot
Raja