Question

1
Replies
169
Views
Siddhabattula Sunil Kumar (SiddhabattulaSunK)
Cognizant

Cognizant
IN
SiddhabattulaSunK Member since 2017 4 posts
Cognizant
Posted: November 19, 2019
Last activity: December 9, 2019
Posted: 19 Nov 2019 22:57 EST
Last activity: 9 Dec 2019 15:16 EST
Closed

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
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.