Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error while invoking web service method from Axis 1.4 client  RSS feed

PrasadRama Vara
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am trying to invoke the web service method from Axis 1.4 client code as below

Service service = new Service();
Call call = (Call) service.createCall();
System.out.println("endpoint ===> "+endpoint.toString());

call.addParameter("status", XMLType.XSD_STRING, ParameterMode.IN);
String msg = (String)call.invoke(new Object[] {param[0]});
String res = call.getResponseMessage().getSOAPPartAsString();
System.out.println("Reply: " + msg);
System.out.println("response in SOAP format : " + res);

Below is the web service method details from WSDL file:

<operation name="listGetPersons">
<input message="tns:listGetPersonsRequest" name="input10" />
<output message="tns:listGetPersonsResponse" name="output10" />

But I am getting the below error while invoking web service method. Please help me on this and let me know what will be the root cause/solution?
Thanks in advance.

faultCode: {}Client
faultString: Unmarshalling Error: cvc-elt.1: Cannot find the declaration of element 'listGetPersons'

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!