Hi Folks,
I have got a problem...I have used IBM WSAD 5.1.2 to develop & publish webservices. Now, I am trying to write a single
Java class, which an apache AXIS client, calling one of these Webservices. But I am getting an error, which says "Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize".
Can you guys help me out in here?
Below, is the code I have written...(I am printing without formatting)
-----------------------------------------
public class TestClient {
public static void main(
String [] args) {
try {
String endpoint = "http://localhost:9080/EODDService/services/Company";
System.out.println("1");
Service service = new Service();
Call call = (Call) service.createCall();
System.out.println("2");
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName(new QName("", "companyGetAll"));
System.out.println("3");
String ret = (String)call.invoke( new Object[] {new Integer(1),new Integer(1),new Integer(10),"english"} );
System.out.println("4
utput="+ret);
}
catch (Exception e) {
e.printStackTrace();
}
}
}
---------------------------------------
[ February 12, 2007: Message edited by: Subhadip Chatterjee ]