The problem is that I don't have a messageexchange in my program. I just get
the message as an object, make some updates in it, and then pass it as a
parameter to a proxy function. Someway or another this function passes it to
the http-provider component and also takes care of the response. My program
is generated by XFIRE from a wsdl. Maybe it 's possible to configure the
generation by XFire in such a way, that the content-type will be saved or
can be set again to the right value, but I don't know how?

Regards, Jan Reynaerts   


tterm wrote:
> 
> You grab all properties from the incoming exchange and set it to the
> outgoing exchange(which one you create) which should get exactly this
> property. There might be a copy method or something but I can't remember
> at the moment. Maybe gnodet knows it. :-)
> 
> yourcomponent-> gets exchange from http consumer
> yourcomponent-> creates a new excahnge to the provider
> yourcomponent -> copy all porperties
> 
> That's it I guess.
> 
> Thomas
> 
> JanReynaerts wrote:
>> Is this something that has to be done in the POJO? The only object that's
>> available there, is the message, that I received from the http consumer
>> component. It is in one way or another generated by XFIRE, so i can
>> access
>> every element of the message seperately. But there's no function
>> available
>> to copy the exchange properties. Or can I do this in an xbean.xml?
>> Regards, Jan Reynaerts 
>>  
>> 
>> tterm wrote:
>> 
>>>Again not sure but did you forget to copy the exchange properties?
>>>
>>>Thomas
>>>
>>>JanReynaerts wrote:
>>>
>>>>Thanks, setting this parameter works, although I also had to set the
>>>>parameter "wantHeadersFromHttpIntoExchange=true" in the file
>>>>component.properties of servicemix.
>>>>
>>>>However, when I put a POJO of JSR181 between the 2 http components, it
>>>>still
>>>>gives the same error. In this POJO, I pass the message comming from the
>>>>http
>>>>consumer component to a proxy. This proxy is the  http provider
>>>>component.
>>>>
>>>>Any ideas how to tackle this problem? A bypass could be to defaultly set
>>>>the
>>>>CONTENT-TYPE to "UTF-8", but I don't know if this is possible either.
>>>>
>>>>Regards,
>>>>Jan Reynaerts
>>>>
>>>>
>>>
>>>
>>>-- 
>>>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  :  [EMAIL PROTECTED]
>>>
>>>blue elephant systems GmbH
>>>Firmensitz      : Wollgrasweg 49, D-70599 Stuttgart
>>>Registergericht : Amtsgericht Stuttgart, HRB 24106
>>>Geschäftsführer : Holger Dietrich, Thomas Gentsch, Joachim Hoernle
>>>
>>>
>>>
>> 
>> 
> 
> 
> -- 
> 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  :  [EMAIL PROTECTED]
> 
> blue elephant systems GmbH
> Firmensitz      : Wollgrasweg 49, D-70599 Stuttgart
> Registergericht : Amtsgericht Stuttgart, HRB 24106
> Geschäftsführer : Holger Dietrich, Thomas Gentsch, Joachim Hoernle
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Configuring-http-component-with-encoding-property-tp15975974s12049p16024118.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to