Using axis2-1.5.2 xmlBean databinding able to send and receive a request. But axis2 is failing when processing the response with --------------------------------------------------------------------------------------------------------------------------------
Key: AXIS2-4863 URL: https://issues.apache.org/jira/browse/AXIS2-4863 Project: Axis2 Issue Type: Bug Components: Addressing Affects Versions: 1.5.2 Environment: this is running a client only on widnows. The server is developed by a different provider. Reporter: Mack Fata I am writing a web service client application using axis2-1.5.2 with xmlBeans databinding generated classes from WSDL. I am able to send a request and get back a response, but AXIS2 is failing when processing the response with the following error: org.apache.axis2.AxisFault: Must Understand check failed for header http://www.ebxml.org/namespaces/messageHeader : MessageHeader at org.apache.axis2.engine.AxisEngine.checkMustUnderstand(AxisEngine.java:97) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:364) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at com.sabre.usg.xmlBeans.client.SessionCreateRQServiceStub.sessionCreateRQ(SessionCreateRQServiceStub.java:203) at com.sabre.usg.xmlBeans.client.XMLTestClient.main(XMLTestClient.java:143) I have captured the request and response using TCP/IP Monitor, any idea why is this failing? Request: <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header> <MessageHeader xmlns="http://www.ebxml.org/namespaces/messageHeader" xmlns:axis2ns1="http://www.ebxml.org/namespaces/messageHeader" soapenv:mustUnderstand="1" axis2ns1:version="1.0"> <From> <PartyId xmlns:axis2ns2="http://www.ebxml.org/namespaces/messageHeader" axis2ns2:type="urn:x12.org:IO5:01">999999</PartyId> </From> <To> <PartyId xmlns:axis2ns3="http://www.ebxml.org/namespaces/messageHeader" axis2ns3:type="urn:x12.org:IO5:01">123123</PartyId> </To> <ConversationId>ACS_Svc_Test2009-10-28-94929</ConversationId> <Service xmlns:axis2ns4="http://www.ebxml.org/namespaces/messageHeader" axis2ns4:type="string">Session</Service> <Action>SessionCreateRQ</Action> </MessageHeader> <Security xmlns="http://schemas.xmlsoap.org/ws/2002/12/secext" soapenv:mustUnderstand="0"> <UsernameToken> <Username>xxxxxx</Username> <Password>xxxxxx</Password> <Organization xmlns="">AAS</Organization> <Domain xmlns="">AA</Domain> </UsernameToken> </Security> </soapenv:Header> <soapenv:Body> <ns:SessionCreateRQ xmlns:ns="http://www.opentravel.org/OTA/2002/11"> <ns:POS> <ns:Source PseudoCityCode="DFW"/> </ns:POS> </ns:SessionCreateRQ> </soapenv:Body> </soapenv:Envelope> Response: <?xml version="1.0" encoding="UTF-8"?> <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"> <soap-env:Header> <eb:MessageHeader xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" eb:version="1.0" soap-env:mustUnderstand="1"> <eb:From> <eb:PartyId eb:type="urn:x12.org:IO5:01">123123</eb:PartyId> </eb:From> <eb:To> <eb:PartyId eb:type="urn:x12.org:IO5:01">999999</eb:PartyId> </eb:To> <eb:ConversationId>ACS_Svc_Test2009-10-28-94929</eb:ConversationId> <eb:Service eb:type="sabreXML">Session</eb:Service> <eb:Action>SessionCreateRS</eb:Action> <eb:MessageData> <eb:MessageId>3fb14fcb-8912-4127-9f22-ed259c3ae...@32</eb:MessageId> <eb:Timestamp>2010-10-25T13:21:39</eb:Timestamp> </eb:MessageData> </eb:MessageHeader> <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext"> <wsse:BinarySecurityToken valueType="String" EncodingType="wsse:Base64Binary">Shared/IDL:IceSess\/SessMgr:1\.0.IDL/Common/!ICESMS\/STSA!ICESMSLB\/STS.LB!-4123025345599211264!757424!0</wsse:BinarySecurityToken> </wsse:Security> </soap-env:Header> <soap-env:Body> <SessionCreateRS xmlns="http://www.opentravel.org/OTA/2002/11" version="1" status="Approved"> <ConversationId>ACS_Svc_Test2009-10-28-94929</ConversationId> </SessionCreateRS> </soap-env:Body> </soap-env:Envelope> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org