axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Billon (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2C-1223) Ws-Addressing Module, extracting information from EPR
Date Wed, 02 Jul 2008 09:52:44 GMT
Ws-Addressing Module, extracting information from EPR
-----------------------------------------------------

                 Key: AXIS2C-1223
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1223
             Project: Axis2-C
          Issue Type: Bug
          Components: core/addressing
    Affects Versions: 1.4.0, 1.4.1
         Environment: Linux, Windows
            Reporter: Julien Billon


According to the WS-Addressing specification, an EndPoint Reference (EPR) can be specified
in the <wsa:ReplyTo> node. In the WS-Addressing Module, the function axis2_addr_in_extract_epr_information()
is responsible for extracting the datas from an EPR.
But if we look more closely at this function (around line 600), we see that the reference
parameters are parsed and ... that's all ! these parameters are never stored in the EPR structure.

Example :

With a message like

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope\" xmlns:wsa="http://www.w3.org/2005/08/addressing">
     <soapenv:Header>
          <wsa:To>http://example.com/services/echo</wsa:To>
          <wsa:Action>http://example.com/OTA_PINGRQ</wsa:Action>
          <wsa:MessageID>6dc6e535-1a70-4544-9715-26f06cdcf7bb</wsa:MessageID>
          <wsa:ReplyTo>
               <wsa:Address>http://requester.com</wsa:Address>
               <wsa:ReferenceParameters><test>example</test></wsa:ReferenceParameters>
          </wsa:ReplyTo>
     </soapenv:Header>
     <soapenv:Body><TEST>XMLBody</TEST></soapenv:Body>
</soapenv:Envelope>

We call the ws-addressing module to extract information from the soap header. Then if we call
axis2_msg_ctx_get_reply_to() and axis2_endpoint_ref_get_ref_param_list() this last function
always return NULL.

Patch :
File addr_in_handler.c Line 600
REPLACE om_ele = (axiom_element_t *) axiom_node_get_data_element(om_node, env); 
BY axis2_endpoint_ref_add_ref_param(endpoint_ref, env, om_node);

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message