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>