Question

1
Replies
68
Views
SiddhabattulaSunK Member since 2017 4 posts
Cognizant
Posted: 11 months ago
Last activity: 10 months 1 week ago

How to pass XML string as an request parameter to a SOAP service

Hello,

I am using connect soap to communicate with external system.

I need to set xml string to a property and to pass as a request.

Below is how is set :

<ns1:message><InputSendConfirmationMail xmlns="http://schemas.kpn.com/eenvoudigglas/processes"><MetaData><EventType>AdministrativeChange</EventType></MetaData><Customer><CustomerNumber>9012004324</CustomerNumber></Customer></InputSendConfirmationMail></ns1:message>

But when i check in service soap request it is changing < and > to &lt; and &gt;

Below is the request which i can see in service soap request :

<ns1:message xsi:type="xsd:anyType">&lt;InputSendConfirmationMail xmlns="http://schemas.kpn.com/eenvoudigglas/processes"&gt;&lt;MetaData&gt;&lt;EventType&gt;AdministrativeChange&lt;/EventType&gt;&lt;/MetaData&gt;&lt;Customer&gt;&lt;CustomerNumber&gt;9012004324&lt;/CustomerNumber&gt;&lt;/Customer&gt;&lt;/InputSendConfirmationMail&gt;</ns1:message>

Because of this change external system is throwing error

Can someone help me to pass request to external system in correct format.

Pega Academy
Share this page LinkedIn