Question

1
Replies
33
Views
Liam Ceaplen (LiamC)
SSE plc

SSE plc
GB
LiamC Member since 2019 3 posts
SSE plc
Posted: November 20, 2020
Last activity: December 11, 2020
Posted: 20 Nov 2020 5:00 EST
Last activity: 11 Dec 2020 3:46 EST
Solved

XML Service SOAP Name Space

Hello,

We created a Service SOAP based on a 3rd parties WSDL but we are getting an incorrect Namespace is anyone able to help with how to alter namespaces?

What we are outputting as per below 

<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">    <soap:Body>       <ns2:ReceiveOrderUpdateResponse xmlns:ns1="ANONYMIZED" xmlns:ns2="ANONYMIZED">          <ns1:CreateOrderObjectResponse>             <ns1:Status>                <ns1:ReturnCode>0</ns1:ReturnCode>                <ns1:ReturnError>Success</ns1:ReturnError>                <ns1:ReturnReason>Success</ns1:ReturnReason>             </ns1:Status>          </ns1:CreateOrderObjectResponse>       </ns2:ReceiveOrderUpdateResponse>    </soap:Body> </soap:Envelope>

Should be as per below; 

Hello,

We created a Service SOAP based on a 3rd parties WSDL but we are getting an incorrect Namespace is anyone able to help with how to alter namespaces?

What we are outputting as per below 

<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">    <soap:Body>       <ns2:ReceiveOrderUpdateResponse xmlns:ns1="ANONYMIZED" xmlns:ns2="ANONYMIZED">          <ns1:CreateOrderObjectResponse>             <ns1:Status>                <ns1:ReturnCode>0</ns1:ReturnCode>                <ns1:ReturnError>Success</ns1:ReturnError>                <ns1:ReturnReason>Success</ns1:ReturnReason>             </ns1:Status>          </ns1:CreateOrderObjectResponse>       </ns2:ReceiveOrderUpdateResponse>    </soap:Body> </soap:Envelope>

Should be as per below; 

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns2="ANONYMIZED" xmlns:tns="ANONYMIZED">     <SOAP-ENV:Body>       <tns:ReceiveOrderUpdateResponse>         <tns2:CreateOrderObjectResponse>           <tns2:Status>             <tns2:ReturnCode>0</tns2:ReturnCode>             <tns2:ReturnError>Success</tns2:ReturnError>             <tns2:ReturnReason>Success</tns2:ReturnReason>           </tns2:Status>         </tns2:CreateOrderObjectResponse>       </tns:ReceiveOrderUpdateResponse>     </SOAP-ENV:Body>   </SOAP-ENV:Envelope>  

 

Pega Platform 8.2.1 Enterprise Application Development Dev/Designer Studio Communications and Media Lead System Architect