ServiceMix
  1. ServiceMix
  2. SM-1281

Preserving or configuring content-type of http-header

    Details

    • Patch Info:
      Patch Available

      Description

      I have a servicemix configuration with 3 components:

      • a http-consumer component
      • a http-provider component
      • a jsr-181 component. In the jsr181 component I use a proxy, that exposes a wsdl (generated by XFire)
        Messages are sent from the http-consumer component through the jsr-181 component to the http-provider component. I want to preserve the content-type from the incoming message. To do this I use the parameters wantHeadersFromHttpIntoExchange and wantContentTypeHeaderFromExchangeIntoHttpRequest. However in the jsr181-component the content-type gets lost. Is it possible to preserve the content-type of a message during his route through servicemix?

      As a work-around (patch) we changed the code of the http-provider ( HttpEndpoint.java, ProviderProcessor.java), where we introduced a new parameter (overrideContentTypeHeader), that allows you to override the content-type.

        Activity

        Hide
        Thomas Termin added a comment -

        Can't find the patch.

        Show
        Thomas Termin added a comment - Can't find the patch.
        Hide
        Jan Reynaerts added a comment -

        I've attached the 2 patched files. I'm not sure if this is the right way to do it

        Show
        Jan Reynaerts added a comment - I've attached the 2 patched files. I'm not sure if this is the right way to do it
        Hide
        Guillaume Nodet added a comment -

        Could you please provide a patch / diff file instead ?
        See http://servicemix.apache.org/contributing.html for more informations.

        Show
        Guillaume Nodet added a comment - Could you please provide a patch / diff file instead ? See http://servicemix.apache.org/contributing.html for more informations.
        Hide
        Thomas Termin added a comment -

        Guillaume:

        I know what he wants to do. It's not much to do. I will do it this during the week.

        Show
        Thomas Termin added a comment - Guillaume: I know what he wants to do. It's not much to do. I will do it this during the week.
        Hide
        Jan Reynaerts added a comment -

        So you don't expect more information from me?
        Regards, Jan Reynaerts

        Show
        Jan Reynaerts added a comment - So you don't expect more information from me? Regards, Jan Reynaerts
        Hide
        Jan Reynaerts added a comment -

        Can you give me an indication, when this issue will be solved?

        Show
        Jan Reynaerts added a comment - Can you give me an indication, when this issue will be solved?
        Hide
        Thomas Termin added a comment -

        Fixed. Sorry for long waiting. I didn't find the time.

        Author: tterm
        Date: Mon Jul 21 01:53:35 2008
        New Revision: 678365

        URL: http://svn.apache.org/viewvc?rev=678365&view=rev
        Log:
        Preserving or configuring content-type of http-header

        Modified:
        servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/HttpEndpoint.java
        servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/processors/ProviderProcessor.java

        Show
        Thomas Termin added a comment - Fixed. Sorry for long waiting. I didn't find the time. Author: tterm Date: Mon Jul 21 01:53:35 2008 New Revision: 678365 URL: http://svn.apache.org/viewvc?rev=678365&view=rev Log: Preserving or configuring content-type of http-header Modified: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/HttpEndpoint.java servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/processors/ProviderProcessor.java

          People

          • Assignee:
            Thomas Termin
            Reporter:
            Jan Reynaerts
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development