Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-796

by sending SOAP 1.2 message servicemix-http uses content type "text/xml" instead of "application/soap+xml"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2010.02
    • servicemix-http
    • 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

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            yurish Yuri
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: