Forum Discussion

zwembroek's avatar
zwembroek
Occasional Contributor
14 years ago

Auto Generated Soap Envelop not valid: NameSpace Issue

I have a very simple wsdl which I use to create a mock service. The easiest WSDL i could think of. SoapUI creates a default request for me, which I validate also using SoapUI. This automatically generated envelop is not valid however (using alt+v or using a script). Looking at it, I also believe it is not valid as there is no namespace defined for the body. So, why does SoapUI generate this request? Is it a valid envelope or not? Thanks for comments.

Soap Envelope:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<PersonRequest>?</PersonRequest>
</soapenv:Body>
</soapenv:Envelope>

WSDL:
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:sch="http://aquima.com/schema/test/1.0/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://aquima.com/schema/test/1.0/"
targetNamespace="http://aquima.com/schema/test/1.0/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

<wsdl:types />

<wsdl:message name="PersonRequest">
<wsdl:part name="PersonRequest" type="xs:string" >
</wsdl:part>
</wsdl:message>

<wsdl:message name="PersonResponse">
<wsdl:part name="PersonResponse" type="xs:string" >
</wsdl:part>
</wsdl:message>

<wsdl:portType name="PersonDetails">
<wsdl:operation name="GetPerson">
<wsdl:input message="tns:PersonRequest" name="PersonRequest"/>
<wsdl:output message="tns:PersonResponse" name="PersonResponse"/>
</wsdl:operation>
</wsdl:portType>

<wsdl:binding name="PersonDetailsSoap11" type="tns:PersonDetails">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="GetPerson">
<soap:operation soapAction="/GetPerson"/>
<wsdl:input name="PersonRequest">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="PersonResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>

<wsdl:service name="PersonDetailsService">
<wsdl:port binding="tns:PersonDetailsSoap11" name="PersonDetailsSoap11">
<soap:address location="/mockPersonDetailsSoap11"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
No RepliesBe the first to reply