Hi Ramaswamy,
Is there any possibility of sharing your WSDL with us ? if so that will
make our job easier to find the issue and fix that
Thanks
Deepal
I’ve used WSDL2Java tool client to generate client stubs for a service
I want to consume.
I used adb and Jibx binding options. I generated junit test also using
–t option. When I run the tests I get the following exception:
I have created my own test client. When I run it , I get the same
exception. Since I’m a newbie to axis2, any help to overcome this
issue will make me feel
Good about Axis2
First Element must contain the local name, Envelope , but found
ErrorMessage
org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope , but found ErrorMessage
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:89)
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
com.ebay.www.soaframework.services.AccountServiceStub.getAccountDetails(AccountServiceStub.java:156)
at
com.ebay.www.soaframework.services.AccountServiceTest.testgetAccountDetails(AccountServiceTest.java:23)
Caused by: org.apache.axiom.soap.SOAPProcessingException: First
Element must contain the local name, Envelope , but found ErrorMessage
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:219)
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:177)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:163)
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:161)
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:110)
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)
... 21 more
Thanks,
Pudur Ramaswamy
SDK Engineering Team
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
phone: (408) 967-0242
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]