Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
win
Description
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