You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Jan Reynaerts (JIRA)" <ji...@apache.org> on 2008/03/19 15:59:32 UTC

[jira] Created: (SM-1281) Preserving or configuring content-type of http-header

Preserving or configuring content-type of http-header
-----------------------------------------------------

                 Key: SM-1281
                 URL: https://issues.apache.org/activemq/browse/SM-1281
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-http, servicemix-jsr181
            Reporter: Jan Reynaerts
            Assignee: Thomas Termin


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.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1281) Preserving or configuring content-type of http-header

Posted by "Jan Reynaerts (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42605#action_42605 ] 

Jan Reynaerts commented on SM-1281:
-----------------------------------

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

> Preserving or configuring content-type of http-header
> -----------------------------------------------------
>
>                 Key: SM-1281
>                 URL: https://issues.apache.org/activemq/browse/SM-1281
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-http, servicemix-jsr181
>            Reporter: Jan Reynaerts
>            Assignee: Thomas Termin
>         Attachments: HttpEndpoint.java, ProviderProcessor.java
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Resolved: (SM-1281) Preserving or configuring content-type of http-header

Posted by Thomas Termin <tt...@blue-elephant-systems.com>.
Hi Jean,

I've commited your changes. Could you please test it so that I can close
the issue.

Regards,
Thomas Termin

Thomas Termin (JIRA) wrote:
>      [ https://issues.apache.org/activemq/browse/SM-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> 
> Thomas Termin resolved SM-1281.
> -------------------------------
> 
>     Fix Version/s: 3.2.2
>        Resolution: Fixed
> 
> 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
> 
> 
>>Preserving or configuring content-type of http-header
>>-----------------------------------------------------
>>
>>                Key: SM-1281
>>                URL: https://issues.apache.org/activemq/browse/SM-1281
>>            Project: ServiceMix
>>         Issue Type: Bug
>>         Components: servicemix-http, servicemix-jsr181
>>           Reporter: Jan Reynaerts
>>           Assignee: Thomas Termin
>>            Fix For: 3.2.2
>>
>>        Attachments: HttpEndpoint.java, ProviderProcessor.java
>>
>>
>>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.
> 
> 


-- 
Thomas Termin
_______________________________
blue elephant systems GmbH
Wollgrasweg 49
D-70599 Stuttgart

Tel    :  (+49) 0711 - 45 10 17 676
Fax    :  (+49) 0711 - 45 10 17 573
WWW    :  http://www.blue-elephant-systems.com
Email  :  Thomas.Termin@blue-elephant-systems.com

blue elephant systems GmbH
Firmensitz      : Wollgrasweg 49, D-70599 Stuttgart
Registergericht : Amtsgericht Stuttgart, HRB 24106
Geschäftsführer : Holger Dietrich, Thomas Gentsch, Joachim Hoernle


[jira] Resolved: (SM-1281) Preserving or configuring content-type of http-header

Posted by "Thomas Termin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Termin resolved SM-1281.
-------------------------------

    Fix Version/s: 3.2.2
       Resolution: Fixed

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

> Preserving or configuring content-type of http-header
> -----------------------------------------------------
>
>                 Key: SM-1281
>                 URL: https://issues.apache.org/activemq/browse/SM-1281
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-http, servicemix-jsr181
>            Reporter: Jan Reynaerts
>            Assignee: Thomas Termin
>             Fix For: 3.2.2
>
>         Attachments: HttpEndpoint.java, ProviderProcessor.java
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1281) Preserving or configuring content-type of http-header

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41783#action_41783 ] 

Guillaume Nodet commented on SM-1281:
-------------------------------------

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

> Preserving or configuring content-type of http-header
> -----------------------------------------------------
>
>                 Key: SM-1281
>                 URL: https://issues.apache.org/activemq/browse/SM-1281
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-http, servicemix-jsr181
>            Reporter: Jan Reynaerts
>            Assignee: Thomas Termin
>         Attachments: HttpEndpoint.java, ProviderProcessor.java
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1281) Preserving or configuring content-type of http-header

Posted by "Thomas Termin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41784#action_41784 ] 

Thomas Termin commented on SM-1281:
-----------------------------------

Guillaume:

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

> Preserving or configuring content-type of http-header
> -----------------------------------------------------
>
>                 Key: SM-1281
>                 URL: https://issues.apache.org/activemq/browse/SM-1281
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-http, servicemix-jsr181
>            Reporter: Jan Reynaerts
>            Assignee: Thomas Termin
>         Attachments: HttpEndpoint.java, ProviderProcessor.java
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SM-1281) Preserving or configuring content-type of http-header

Posted by "Jan Reynaerts (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Reynaerts updated SM-1281:
------------------------------

    Attachment: HttpEndpoint.java
                ProviderProcessor.java

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

> Preserving or configuring content-type of http-header
> -----------------------------------------------------
>
>                 Key: SM-1281
>                 URL: https://issues.apache.org/activemq/browse/SM-1281
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-http, servicemix-jsr181
>            Reporter: Jan Reynaerts
>            Assignee: Thomas Termin
>         Attachments: HttpEndpoint.java, ProviderProcessor.java
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1281) Preserving or configuring content-type of http-header

Posted by "Thomas Termin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41723#action_41723 ] 

Thomas Termin commented on SM-1281:
-----------------------------------

Can't find the patch. :-)

> Preserving or configuring content-type of http-header
> -----------------------------------------------------
>
>                 Key: SM-1281
>                 URL: https://issues.apache.org/activemq/browse/SM-1281
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-http, servicemix-jsr181
>            Reporter: Jan Reynaerts
>            Assignee: Thomas Termin
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Work started: (SM-1281) Preserving or configuring content-type of http-header

Posted by "Thomas Termin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on SM-1281 started by Thomas Termin.

> Preserving or configuring content-type of http-header
> -----------------------------------------------------
>
>                 Key: SM-1281
>                 URL: https://issues.apache.org/activemq/browse/SM-1281
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-http, servicemix-jsr181
>            Reporter: Jan Reynaerts
>            Assignee: Thomas Termin
>         Attachments: HttpEndpoint.java, ProviderProcessor.java
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SM-1281) Preserving or configuring content-type of http-header

Posted by "Jan Reynaerts (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Reynaerts updated SM-1281:
------------------------------


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

> Preserving or configuring content-type of http-header
> -----------------------------------------------------
>
>                 Key: SM-1281
>                 URL: https://issues.apache.org/activemq/browse/SM-1281
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-http, servicemix-jsr181
>            Reporter: Jan Reynaerts
>            Assignee: Thomas Termin
>         Attachments: HttpEndpoint.java, ProviderProcessor.java
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.