You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Avin <pe...@rediffmail.com> on 2005/04/19 01:03:05 UTC

No Deserializer found to deserialize a 'http://schemas.xmlsoap.org/soap/encoding

Here is my code: I get an error saying No Deserializer found to
deserialize a 'http://schemas.xmlsoap.org/soap/encoding
/:string' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.

Please advice on what do I need to do
======================================
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;

import java.net.*;

public class Traffic {
public static void main(String [] args) throws Exception {


try{

Service service = new Service();
Call call = (Call)service.createCall();

String endpoint = "http://services.xmethods.net:80/soap/servlet/rpcrouter";
call.setTargetEndpointAddress(new URL(endpoint));
call.setOperationName( new QName("urn:xmethods-CATraffic", "getTraffic") );

//call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);

String hwnum = "101"; // get a highway number

System.out.println("hehre");

//System.out.println("Here"+call.invoke(new Object [] {new
String(hwnum)}));
String answer =
(String)call.invoke(new Object [] {new String(hwnum)});

System.out.println("Got result : " + answer);

}catch(Exception e){
System.out.println(e);
}
}
}
-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/