IBM Support

webMethods Knowlegebase : XPath Editor does not generate correct document. (1756137)

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

[{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPWU","label":"IBM CentraSite"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"CentraSite (INM)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Windows Server 2008"}],"Version":"9.6"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
20 March 2025

UID

ibm17208611