Skip to content

Filter Proxy Example

Bill Majurski edited this page May 30, 2019 · 1 revision

Filter Proxy Example

This is the example XML used to develop the Filter Proxy.

<SOAP-ENV:Envelope
  xmlns:SOAP-ENV='http://www.w3.org/2003/05/soap-envelope'
  xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  xmlns:s='http://www.w3.org/2001/XMLSchema'
  xmlns:wsa='http://www.w3.org/2005/08/addressing'
  xmlns:wsse='http://docs.oasis-open.org/wss/2004/01/o0asis-200401-wss-wssecurity-secext-1.0.xsd'
  xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd'>
 <SOAP-ENV:Header>
    <wsa:Action>urn:hl7-org:v3:PRPA_IN201306U0V02:CrossGatewayPatientDiscovery</wsa:Action>
    <wsa:MessagelD>urn:uuid:E2E5DD4A-2FFE-11E9-A926-005056A6P8F7</wsa:MessagelD>>
    <wsa:RelatesTo>e70ba0f£7-4075-4eca-bec8-444b7da25446</wsa:RelatesTo>
    <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
    <Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
        <Timestamp xmlns="http://docs.oasis-open.org/wss/2004/01/o0asis-200401-wss-wssecurity-utility-1.0.xsd" 
              wsu:Id="Timestamp-E2E552P8-2FFE-11E9-A926-O05056A6F8F7">
            <Created>2019-02-14T02:18 : 58Z</Created>
            <Expires>2019-02-14T02:23:58Z</Expires>
        </Timestamp>
        <SignatureConfirmation xmlns="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsqa" wsu:Id="Id-E2E5562C-2PPE-11E9-A926-O05056A6F8F7" Value="gOv6FWOOVUT6r3JtC2JbJ2kPmws/TPOtGwEnH6cZMpqPjc6/jBBGdY4vzveyjbLgtG92azhxDNVZojR0eX60Bwb1GVM/LdShhvwkahUBCrN9/bzTXLdoWwQX24y3pvykj+0Ae6w2yDYV5ACSvks1E+0M4Y1H2BDUEbg8+ELbvDhUjoErLemJaNGCPZ9LCXZ/1qBDR0itelSMOHCUnAc4rTsKRiP04/2S80KA2aElvugh8J8tBRMS5WArDgmQTzc8Dof4UCsf4£fABCU7TKhozA04vM5wGHh1 Prcw6MQ/ZvDqr5EDSi9XOPAdX00C1zWq3jvUpTz2QvVdSQEP2jDWHV4EW="/>
    </Security>
 </SOAP-ENV:Header>
 <SOAP-ENV:Body>
   <foo></foo>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Note /Envelope/Header/Security/Timestamp/Id - the Id attribute has a namespace prefix of wsu which is properly defined in the Envelope parent element. The Axiom bug of interest ignores this namespace definition and reports that the Id element namespace prefix, wsu, is undefined. As a result the XML parser fails. This happens deep inside of Axis2 operation.

Clone this wiki locally