on 03-11-2020 7:12 AM
Hi Experts,
I have Rest to proxy sync scenario, issue i am facing is when PO sends back a response to 3rd party or even when I test it using SOAP UI, the default XML declaration is not going out, which is causing issues as a response is failing on 3rd party as they expect XML declaration which is "<?xml version="1.0" encoding="utf-8"?>".
i have even used XSLT mapping which i can confirm is working as I can see changes in reflected in message monitor payloads, even in payload i can see XML declaration exists but when a message gets delivered to 3rd party/SOAP UI it gets truncated automatically.
Can you please help and let me know if some setting needs to be done on PO server, we are on PO 7.5. I even checked other system all are having the same behavior.
My output is :
<ServiceResponse>
<Record/>
</ServiceResponse>
Expected output is:
<?xml version="1.0" encoding="utf-8"?>
<ServiceResponse>
<Record/>
</ServiceResponse>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Change the Sender Channel output Message format to Binary or JSON in General
Add Content-Type - text/xml;charset=utf-8 in Result HTTP Header in Sender adapter.
Imagen:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solution to this problem -
Change the Sender Channel output Message format to Binary or JSON in General
Add Content-Type - text/xml;charset=utf-8 in Result HTTP Header in Sender adapter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ankush,
Have you tried to use the Adapter module in your reciever channel?
i guess you can give a try like below,
In your channel Proxy Channel use the MessageTransformBean module.
Module name: AF_Modules/MessageTransformBean
Parameter: Transform.ContentType
Value: text/xml;charset=utf-8
Regards,
Bhaskar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.