Hi Patrick, Can you please check the EPR you send your request to, cause looking at ypur exception it looks like XFire responded with the WSDL (Thats where the definitions element came from instead of the SOAP envelop).
Thanks, Keith. On 10/3/07, Patrick Houbaux <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have generated a client stub using WSDL2Java using XMLBeans against > the following WSDL apparently created with XFire: > http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface?wsdl > > When I invoke the only method from this webservice with the AXIS2 > generated stub I'm getting the following exception: > > org.apache.axis2.AxisFault: First Element must contain the local name, > Envelope , but found definitions > 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 > defaultnamespace.Update_BeamInterfaceInterfaceStub.executeWorkflow > (Update_BeamInterfaceInterfaceStub.java:144) > at com.eurostep.test.TestFiperUB.main(TestFiperUB.java:45) > Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element > must contain the local name, Envelope , but found definitions > 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) > ... 6 more > > What does it mean? > Are AXIS2 and XFire compatible? > > To me it seems the XFire server doesn't return a correct SOAP message. > Am I right? > > Thanks for any help. > > Cheers, > Patrick. > > This message contains information that may be privileged or confidential > and is the property of Eurostep Group. It is intended only for the person to > whom it is addressed. If you are not the intended recipient, you are not > authorized to read, print, retain, copy, disseminate, distribute, or use > this message or any part thereof. If you receive this message in error, > please notify the sender immediately and delete all copies of this message. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Keith Chapman WSO2 Inc. Oxygen for Web Services Developers. http://wso2.org/
