[ 
https://issues.apache.org/jira/browse/CXF-8762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17610555#comment-17610555
 ] 

Avinash Dongre commented on CXF-8762:
-------------------------------------

Thanks, [~rnetuka] , [~reta] for your inputs.  The camel CXF client does the 
same as my test case, it sets the SOAPAction header 

[https://github.com/apache/camel/blob/main/components/camel-cxf/camel-cxf-soap/src/main/java/org/apache/camel/component/cxf/jaxws/DefaultCxfBinding.java#L842]

Should this be correct in camel itself? Also, is it the responsibility of the 
client to send the SOAPAction in quotes?

Earlier I thought about this not being a bug but since it used to work fine 
before this commit: 

[https://github.com/apache/cxf/pull/307/files], I wanted to treat it as a bug.

> CXF client sends the SOAPAction header without quotes
> -----------------------------------------------------
>
>                 Key: CXF-8762
>                 URL: https://issues.apache.org/jira/browse/CXF-8762
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Avinash Dongre
>            Priority: Major
>         Attachments: proposed_fix.patch
>
>
> A Camel CXF client that works similarly to 
> [this|https://github.com/avi5kdonrh/cxf/blob/a7e8f9aa48656b1b7cc6458edb3bb60da7439d96/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/interceptor/SOAPActionWithoutQuotesTest.java#L39-L43]
>  test case,  doesn't send the SOAPAction header in double quotes which breaks 
> [this|http://www.ws-i.org/Profiles/BasicProfile-1.1.html#SOAPAction_HTTP_Header]
>  specification.
> The said [test 
> case|https://github.com/avi5kdonrh/cxf/blob/cxf-soap-action/rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/interceptor/SOAPActionWithoutQuotesTest.java]
>  fails:
> org.junit.ComparisonFailure: 
> Expected :"http://foo/bar/SEI/opReq";
> Actual   :[http://foo/bar/SEI/opReq]
> It seems to be caused by this change:
> [https://github.com/apache/cxf/pull/307/files]
> Proposed fix.
> [https://github.com/apache/cxf/commit/66835e3db93ffa1cf7ab1df51ccd8c99fe6b1785?diff=split]
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to