how to convert Content-Type from text/xml to application/xml over jasontoxml policy

Not applicable
 
0 1 3,141
1 REPLY 1

sarthak
Participant V

Use AssignMessage policy to do it. You can learn more here

Somethings like this will work.

<Set>     
    <Headers>      
        <Header name="Content-Type">application/xml</Header>     
    </Headers> 
</Set>

BTW jsonToXML policy will automatically convert Content-type from application/json to application/xml