by sending SOAP 1.2 message servicemix-http uses content type "text/xml"
instead of "application/soap+xml"
----------------------------------------------------------------------------------------------------------
Key: SMXCOMP-796
URL: https://issues.apache.org/activemq/browse/SMXCOMP-796
Project: ServiceMix Components
Issue Type: Bug
Components: servicemix-http
Environment: win
Reporter: Yuri
Description:
I have a http provider endpoint which is defined as below:
<http:endpoint endpoint="cxfEndpointHttpProvider"
locationURI="http://localhost:8888/soap/ReservationServiceProvider/"
role="provider"
service="serviceNamespace:ReservationServiceProvider"
soap="true"
soapVersion="1.2"/>
soapVersion can be 1.1 or 1.2
Consumer calls provider.
Expectation:
In the Header I expect Content-Type = "application/soap+xml" in case
soapVersion="1.2"
In the Header I expect Content-Type = "text/xml" in case soapVersion="1.1"
Actual result:
Using TCP/IP monitor I see what Content-Type always equals to "text/xml":
request:
POST /soap/ReservationServiceProvider/ HTTP/1.1
Content-Type: text/xml;charset=UTF-8
response:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.