Forum Discussion
janig
14 years agoNew Contributor
My problem is not mising xml tag.
I can see that soap responses in case of origina webservice and mockservice are not the same.
Request to original web service gives me next response:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><CelsiusToFahrenheitResponse xmlns="http://tempuri.org/"><CelsiusToFahrenheitResult>68</CelsiusToFahrenheitResult></CelsiusToFahrenheitResponse></soap:Body></soap:Envelope>
Request to mockservice gives me next response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:CelsiusToFahrenheitResponse>
<tem:CelsiusToFahrenheitResult>30</tem:CelsiusToFahrenheitResult>
</tem:CelsiusToFahrenheitResponse>
</soapenv:Body>
</soapenv:Envelope>
So in first case I retrieve the temperature value with:
//CelsiusToFahrenheitResponse/CelsiusToFahrenheitResult
in the second case with:
//tem:CelsiusToFahrenheitResponse/tem:CelsiusToFahrenheitResult
Why mockservice does not give the same response as original web service?
Thanx,
Jani
I can see that soap responses in case of origina webservice and mockservice are not the same.
Request to original web service gives me next response:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><CelsiusToFahrenheitResponse xmlns="http://tempuri.org/"><CelsiusToFahrenheitResult>68</CelsiusToFahrenheitResult></CelsiusToFahrenheitResponse></soap:Body></soap:Envelope>
Request to mockservice gives me next response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:CelsiusToFahrenheitResponse>
<tem:CelsiusToFahrenheitResult>30</tem:CelsiusToFahrenheitResult>
</tem:CelsiusToFahrenheitResponse>
</soapenv:Body>
</soapenv:Envelope>
So in first case I retrieve the temperature value with:
//CelsiusToFahrenheitResponse/CelsiusToFahrenheitResult
in the second case with:
//tem:CelsiusToFahrenheitResponse/tem:CelsiusToFahrenheitResult
Why mockservice does not give the same response as original web service?
Thanx,
Jani
Related Content
- 7 years agominoseah629
- 8 years agoKnowledge
Recent Discussions
- 4 days agosmilnik