axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dayananda Eswar (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AXIS2-5644) Must Understand check failed for header
Date Tue, 15 Apr 2014 08:53:16 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-5644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dayananda Eswar updated AXIS2-5644:
-----------------------------------

    Description: 
I am writing a web service client application using axis2-1.5.5.
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)

We have tested this using SoapUI and request, response are as below.

Request :

<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:From>
            <eb:PartyId eb:type="urn:x12.org.IO5:01">Abacus Testing</eb:PartyId>
         </eb:From>
         <eb:To>
            <eb:PartyId eb:type="urn:x12.org.IO5:01">AbacusHost</eb:PartyId>
         </eb:To>
         <eb:ConversationId>201404091021@abacus.com.sg</eb:ConversationId>
         <eb:Service eb:type="SabreXML">SessionCreateRQ</eb:Service>
         <eb:Action>SessionCreateRQ</eb:Action>
         <eb:CPAID>XXXX</eb:CPAID>
         <eb:MessageData>
            <eb:MessageId>mid:201404091021awc.abacus.com.sg</eb:MessageId>
            <eb:Timestamp>2014-04-09T09-50-55Z</eb:Timestamp>
            <eb:TimeToLive>2014-04-10T09-50-55Z</eb:TimeToLive>
         </eb:MessageData>
      </eb:MessageHeader>
      <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext">
         <wsse:UsernameToken>
            <wsse:Username>GGGG</wsse:Username>
            <wsse:Password>XXXX</wsse:Password>
            <Organization>YYYY</Organization>
            <Domain>Default</Domain>
         </wsse:UsernameToken>
      </wsse:Security>
   </soap-env:Header>
   <soap-env:Body>
      <SessionCreateRQ>
         <POS>
            <Source PseudoCityCode="GGGG"/>
         </POS>
      </SessionCreateRQ>
   </soap-env:Body>
</soap-env:Envelope>


Response:

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
   <soap-env:Header>
      <eb:MessageHeader eb:version="1.0" soap-env:mustUnderstand="1" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader">
         <eb:From>
            <eb:PartyId eb:type="urn:x12.org.IO5:01">AbacusHost</eb:PartyId>
         </eb:From>
         <eb:To>
            <eb:PartyId eb:type="urn:x12.org.IO5:01">Abacus Testing</eb:PartyId>
         </eb:To>
         <eb:CPAId>FFFF</eb:CPAId>
         <eb:ConversationId>201404091021@abacus.com.sg</eb:ConversationId>
         <eb:Service eb:type="sabreXML">Session</eb:Service>
         <eb:Action>SessionCreateRS</eb:Action>
         <eb:MessageData>
            <eb:MessageId>84bc8496-c169-40bb-b71d-b0d8b9e47dd7@19</eb:MessageId>
            <eb:Timestamp>2014-04-15T08:51:34</eb:Timestamp>
            <eb:RefToMessageId>mid:201404091021awc.abacus.com.sg</eb:RefToMessageId>
         </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\/RESD!ICESMSLB\/RES.LB!-3674353388726285775!1568155!0</wsse:BinarySecurityToken>
      </wsse:Security>
   </soap-env:Header>
   <soap-env:Body>
      <SessionCreateRS version="1" status="Approved" xmlns="http://www.opentravel.org/OTA/2002/11">
         <ConversationId>201404091021@abacus.com.sg</ConversationId>
      </SessionCreateRS>
   </soap-env:Body>
</soap-env:Envelope>

  was:
I am writing a web service client application using axis2-1.5.5.
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)


> Must Understand check failed for header
> ---------------------------------------
>
>                 Key: AXIS2-5644
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5644
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.5.5
>         Environment: Windows, Tomcat
>            Reporter: Dayananda Eswar
>            Priority: Critical
>
> I am writing a web service client application using axis2-1.5.5.
> 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)
> We have tested this using SoapUI and request, response are as below.
> Request :
> <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:From>
>             <eb:PartyId eb:type="urn:x12.org.IO5:01">Abacus Testing</eb:PartyId>
>          </eb:From>
>          <eb:To>
>             <eb:PartyId eb:type="urn:x12.org.IO5:01">AbacusHost</eb:PartyId>
>          </eb:To>
>          <eb:ConversationId>201404091021@abacus.com.sg</eb:ConversationId>
>          <eb:Service eb:type="SabreXML">SessionCreateRQ</eb:Service>
>          <eb:Action>SessionCreateRQ</eb:Action>
>          <eb:CPAID>XXXX</eb:CPAID>
>          <eb:MessageData>
>             <eb:MessageId>mid:201404091021awc.abacus.com.sg</eb:MessageId>
>             <eb:Timestamp>2014-04-09T09-50-55Z</eb:Timestamp>
>             <eb:TimeToLive>2014-04-10T09-50-55Z</eb:TimeToLive>
>          </eb:MessageData>
>       </eb:MessageHeader>
>       <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext">
>          <wsse:UsernameToken>
>             <wsse:Username>GGGG</wsse:Username>
>             <wsse:Password>XXXX</wsse:Password>
>             <Organization>YYYY</Organization>
>             <Domain>Default</Domain>
>          </wsse:UsernameToken>
>       </wsse:Security>
>    </soap-env:Header>
>    <soap-env:Body>
>       <SessionCreateRQ>
>          <POS>
>             <Source PseudoCityCode="GGGG"/>
>          </POS>
>       </SessionCreateRQ>
>    </soap-env:Body>
> </soap-env:Envelope>
> Response:
> <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
>    <soap-env:Header>
>       <eb:MessageHeader eb:version="1.0" soap-env:mustUnderstand="1" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader">
>          <eb:From>
>             <eb:PartyId eb:type="urn:x12.org.IO5:01">AbacusHost</eb:PartyId>
>          </eb:From>
>          <eb:To>
>             <eb:PartyId eb:type="urn:x12.org.IO5:01">Abacus Testing</eb:PartyId>
>          </eb:To>
>          <eb:CPAId>FFFF</eb:CPAId>
>          <eb:ConversationId>201404091021@abacus.com.sg</eb:ConversationId>
>          <eb:Service eb:type="sabreXML">Session</eb:Service>
>          <eb:Action>SessionCreateRS</eb:Action>
>          <eb:MessageData>
>             <eb:MessageId>84bc8496-c169-40bb-b71d-b0d8b9e47dd7@19</eb:MessageId>
>             <eb:Timestamp>2014-04-15T08:51:34</eb:Timestamp>
>             <eb:RefToMessageId>mid:201404091021awc.abacus.com.sg</eb:RefToMessageId>
>          </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\/RESD!ICESMSLB\/RES.LB!-3674353388726285775!1568155!0</wsse:BinarySecurityToken>
>       </wsse:Security>
>    </soap-env:Header>
>    <soap-env:Body>
>       <SessionCreateRS version="1" status="Approved" xmlns="http://www.opentravel.org/OTA/2002/11">
>          <ConversationId>201404091021@abacus.com.sg</ConversationId>
>       </SessionCreateRS>
>    </soap-env:Body>
> </soap-env:Envelope>



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message