12 years ago
Accessing mock service externally
I am trying to access a mock service created in SOAP UI from my application code.
Request from app is
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><AddProfile xmlns="http://www.epsilon.com/webservices/" xmlns:ns2="http://schemas.datacontract.org/2004/07/DBI.Model.MemberProfile" xmlns:ns3="http://schemas.datacontract.org/2004/07/DBI.Model.Common" xmlns:ns4="http://schemas.microsoft.com/2003/10/Serialization/"><req><ns2:FirstName>Me</ns2:FirstName></req></AddProfile></soap:Body></soap:Envelope>
However, I get error while making soap request as follows:
<soapenv:Body>
<soapenv:Fault>
<faultcode>Server</faultcode>
<faultstring>Failed to dispatch using script; java.lang.RuntimeException: net.sf.saxon.trans.XPathException: XPath syntax error at char 21 on line 2 in {\n//web:MessageVersion}:
Prefix web has not been declared</faultstring>
</soapenv:Fault>
</soapenv:Body>
Please let us know why SOAP UI is not able to ignore missing web namespace.
Request from app is
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><AddProfile xmlns="http://www.epsilon.com/webservices/" xmlns:ns2="http://schemas.datacontract.org/2004/07/DBI.Model.MemberProfile" xmlns:ns3="http://schemas.datacontract.org/2004/07/DBI.Model.Common" xmlns:ns4="http://schemas.microsoft.com/2003/10/Serialization/"><req><ns2:FirstName>Me</ns2:FirstName></req></AddProfile></soap:Body></soap:Envelope>
However, I get error while making soap request as follows:
<soapenv:Body>
<soapenv:Fault>
<faultcode>Server</faultcode>
<faultstring>Failed to dispatch using script; java.lang.RuntimeException: net.sf.saxon.trans.XPathException: XPath syntax error at char 21 on line 2 in {\n//web:MessageVersion}:
Prefix web has not been declared</faultstring>
</soapenv:Fault>
</soapenv:Body>
Please let us know why SOAP UI is not able to ignore missing web namespace.