Troubleshooting
Problem
When trying to create an XPath expression using a virtual service based on the ms_sample_calc.wsdl, the generated XML document is not correct.
Document as generated in XPATH Editor:
<?xml version="1.0" encoding="UTF-8 "?>
<soapenv:Envelope>
<soapenv:Body>
<n1>data</n1>
<n2>data</n2>
<n1>data</n1>
<n2>data</n2>
<n1>data</n1>
<n2>data</n2>
<n1>data</n1>
<n2>data</n2>
</soapenv:Body>
</soapenv:Envelope>
Request as generated for 'Add' operation using XMLSpy:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<m:Add xmlns:m="http://Microsoft.Samples.Http">
<m:n1>3.14159265358979E0</m:n1>
<m:n2>3.14159265358979E0</m:n2>
</m:Add>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Note the missing <Add> element and namespace prefixes. Why are the operation related elements (Add, Subtract, Multiply, and Divide) missing in the XPATH Editor?
Document Location
Worldwide
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
20 March 2025
UID
ibm17208611