[jira] [Created] (CXF-8212) Reference parameters are not sent as SOAP Headers

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (CXF-8212) Reference parameters are not sent as SOAP Headers

Ivan Topić (Jira)
M Grechuhin created CXF-8212:
--------------------------------

             Summary: Reference parameters are not sent as SOAP Headers
                 Key: CXF-8212
                 URL: https://issues.apache.org/jira/browse/CXF-8212
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 3.3.5
            Reporter: M Grechuhin


The reference parameters are not sent as soap headers.

This could be seen on samples/callback: the reference parameters testParameter1 and testParameter2 are present in the endpoint reference:
{code:xml}
    <wsa:ReferenceParameters>
        <testParameter1>testValue1</testParameter1>
        <testParameter2>testValue2</testParameter2>
    </wsa:ReferenceParameters>
{code}
And are expected to be sent as soap headers, but none of them could be seen in the soap request:
{code:xml}
<soap:Envelope
        xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
        <soap:Body>
                <ns2:callback_message
                        xmlns="http://www.w3.org/2005/08/addressing"
                        xmlns:ns2="http://apache.org/callback">maks</ns2:callback_message>
        </soap:Body>
</soap:Envelope>
{code}
 
 As stated in javadoc of javax.xml.ws.EndpointReference.getPort:
{quote}If there are any reference parameters in the {{EndpointReference}} instance, then those reference parameters MUST appear as SOAP headers, indicating them to be reference parameters, on all messages sent to the endpoint.
{quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)