I have a very simple wsdl (below) that I expect to load using SoapUI
and get a proper request. But the request generated by SoapUI does
not contain an element for the one and only method defined in the
wsdl. Something is obviously wrong in the wsdl but I don't know what
it is.
Any help is greatly appreciated!
The generated SoapUI request:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<aValue>?</aValue>
</soapenv:Body>
</soapenv:Envelope>
Notice it does not nest the <aValue> element inside the operation.
In fact there is no element corresponding to the operation. Why?
The wsdl:
<?xml version="1.0" encoding="UTF-8" ?>
<definitions
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://hello.ws.admin.ccr.com/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://hello.ws.admin.ccr.com/"
name="HelloService">
<message name="addTwoRequest">
<part name="aValue" type="xsd:string" />
</message>
<message name="addTwoResponse">
<part name="result" type="xsd:string" />
</message>
<portType name="Hello">
<operation name="addTwo">
<input message="tns:addTwoRequest" />
<output message="tns:addTwoResponse" />
</operation>
</portType>
<binding name="HelloPortBinding" type="tns:Hello">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<operation name="addTwo">
<soap:operation soapAction="" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
</binding>
<service name="HelloService">
<port name="HelloPort" binding="tns:HelloPortBinding">
<soap:address
location="http://localhost:8080/simplews/hello" />
</port>
</service>
</definitions>