Question
S&P Global
IN
Last activity: 24 Feb 2020 3:58 EST
Issue with SOAP Request Envelope
Hi,
I have built service SOAP localhost host. all the configuration are done but when i run the service soap rule to test service, SOAP request Envelope is getting generated with the name spaces as below for which i able to receive the null response from the service:
<?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">
<soap:Body>
<ns1:GetEmployeeDetailsRequest xmlns:ns1="GetEmployeeDetailsRequest">
123456<EmployeeID/>
</ns1:GetEmployeeDetailsRequest>
</soap:Body>
</soap:Envelope>
but when i modify the soap request envelope as below able to receive the response from the service:
<?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">
<soap:Body>
<ns1:GetEmployeeDetailsRequest xmlns:ns1="GetEmployeeDetailsRequest">
<EmployeeID>123456</EmployeeID>
</ns1:GetEmployeeDetailsRequest>
</soap:Body>
</soap:Envelope>
Hi,
I have built service SOAP localhost host. all the configuration are done but when i run the service soap rule to test service, SOAP request Envelope is getting generated with the name spaces as below for which i able to receive the null response from the service:
<?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">
<soap:Body>
<ns1:GetEmployeeDetailsRequest xmlns:ns1="GetEmployeeDetailsRequest">
123456<EmployeeID/>
</ns1:GetEmployeeDetailsRequest>
</soap:Body>
</soap:Envelope>
but when i modify the soap request envelope as below able to receive the response from the service:
<?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">
<soap:Body>
<ns1:GetEmployeeDetailsRequest xmlns:ns1="GetEmployeeDetailsRequest">
<EmployeeID>123456</EmployeeID>
</ns1:GetEmployeeDetailsRequest>
</soap:Body>
</soap:Envelope>
would like to know when or in which scenarios SOAP request envlope will get generated with name space? what to do with service to get the proper response from service ?
Thanks in advance.