G
Geoffrey Summerhayes
I'm writing on a wsdl parser in javascript and the relevant portions
of the file I'm trying to parse is
<?xml version="1.0" encoding="utf-8" ?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="http://localhost/Test/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
targetNamespace="http://localhost/Test/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdlortType name="Test">
<wsdlperation name="TestFn">
<wsdl:input message="tns:TestFnIn" />
<wsdlutput message="tns:TestFnOut" />
</wsdlperation>
</wsdlortType>
<wsdl:message name="TestFnIn">
<wsdlart name="parameters" element="tns:TestFn" />
</wsdl:message>
What's a correct way of finding the message element
given the input element? Trimming off the prefix doesn't
feel right.
of the file I'm trying to parse is
<?xml version="1.0" encoding="utf-8" ?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="http://localhost/Test/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
targetNamespace="http://localhost/Test/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdlortType name="Test">
<wsdlperation name="TestFn">
<wsdl:input message="tns:TestFnIn" />
<wsdlutput message="tns:TestFnOut" />
</wsdlperation>
</wsdlortType>
<wsdl:message name="TestFnIn">
<wsdlart name="parameters" element="tns:TestFn" />
</wsdl:message>
What's a correct way of finding the message element
given the input element? Trimming off the prefix doesn't
feel right.