Question
Government Agency
SG
Last activity: 27 Jun 2023 13:33 EDT
Pega Soap:Envelope
Query based on Pega 7.3.1
This is the Soap Response generated from my application, expected result.
<?xml version="1.0"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
What it ended up as was: (response received by external party calling the API)
<?xml version="1.0"?><soap:Envelopexmlns:soap=http://schemas.xmlsoap.org/soap/envelope/xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/xmlns:xsi=http://www.w3.org/2001/XMLSchema-instancexmlns:xsd=http://www.w3.org/2001/XMLSchema>
1. What are the possible reasons why the soap response from Pega logs differs so much with the version received by external party?
2. From Pega, the soap:response was in multiple lines meaning there is a line break (\n). A parser of the response message perhaps strip away with "\n" resulting in a malformed XML with error.
How do I fix this issue?
Thank you.