with which data binding you get this exception? Could you please send your client code?
thanks, Amila. On Jan 31, 2008 7:28 AM, Ramaswamy, Pudur <[EMAIL PROTECTED]> wrote: > 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] > > phone: (408) 967-0242 > > > -- Amila Suriarachchi, WSO2 Inc.
