You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Bill Blough (Jira)" <ji...@apache.org> on 2020/04/07 17:06:00 UTC

[jira] [Updated] (AXIS2C-1223) Ws-Addressing Module, extracting information from EPR

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

Bill Blough updated AXIS2C-1223:
--------------------------------
    Fix Version/s:     (was: 1.7.0)

> 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
>            Assignee: Don Samisa Abeysinghe
>            Priority: Major
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> 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 was sent by Atlassian Jira
(v8.3.4#803005)

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