Hi,
You can force the content type while sending a message out using
"messageType" and "ContentType" Axis2 level properties. Please check
whether this works for your scenario. This might not work if the message
content is not compatible with the formatter associated to the content type
you are forcibly setting.
..
..
<property name="messageType" value="text/xml" scope="axis2"/>
<property name="ContentType" value="text/xml" scope="axis2"/>
<send>
<endpoint>
<address uri="http://localhost:9000/endpoint1" />
</endpoint>
</send>
AND
..
..
<property name="messageType" value="application/xml" scope="axis2"/>
<property name="ContentType" value="application/xml" scope="axis2"/>
<send>
<endpoint>
<address uri="http://localhost:9000/endpoint2" />
</endpoint>
</send>
Thanks,
Sadeep
On Tue, Jan 24, 2012 at 9:47 AM, Hiranya Jayathilaka
<[email protected]>wrote:
> I believe these endpoints are being invoked through some proxy service. If
> so what is the content type of the requests sent to the proxy service?
>
> Thanks,
> Hiranya
>
> On Tue, Jan 24, 2012 at 7:03 AM, Abid Khan <[email protected]> wrote:
>
> > Hello all,
> >
> > Please help me in following scenario. (I am using synapse 1.2)
> >
> > I have two different endpoint, the application on one endpoint accepts
> > "Content-Type=application/xml", and second application on the other
> > endpoint accepts "Content-Type=text/xml".
> >
> > Those application are external application and are running for several
> > years, is there any way I can configure Synapse to send content type
> > properly to their respective endpoint.
> >
> > A prompt response will be much appreciated.
> >
> > Regards,
> > Abid
> >
>
>
>
> --
> Hiranya Jayathilaka
> Associate Technical Lead;
> WSO2 Inc.; http://wso2.org
> E-mail: [email protected]; Mobile: +94 77 633 3491
> Blog: http://techfeast-hiranya.blogspot.com
>
--
Sadeep Jayasumana****
Email: [email protected]****
Phone: +94-77-2266507