I request everyone to please, please help me out of this problem mentioning below.
Scenario : I had Develop and deployed simple webservice consisting of two operations
1.Public void sayHelloBackOneWay(java.lang.String)
-It prints one line at server
2.Public
String sayHi(java.lang.String)
-It prints one line at server
-return one string to the client.
I had also written the client side to invoke this method through stub.
Tools : eclips3.1,Axis2.1, jakarta-tomcat-5,
Problem :
The method 1(sayHelloBackOneWay) execute successfully as it did not return any value to client and also print the output at serverside.
The problem arises when i call the second method (sayHi) as it return one string to the client, but it prints the output on the server side.
Code :
Output log:
Exception in
thread "main" java.lang.NoSuchMethodError: org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder: method <init>(Ljavax/xml/stream/XMLStreamReader
V not found
at org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:53)
at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:160)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:111)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:87)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:326)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at hello.HelloImplStub.sayHi(HelloImplStub.java:196)
at hello.ClientVersion2.main(ClientVersion2.java:23)