The problem is in the SOAP response of the web service. The WSDL of your web service defines a message called "getInfoResponse" with one part called "info". As the WSDL style used is RPC/encoded, the SOAP response should consist of an element called "getInfoResponse" (the message name) containing an element called "info" (the part name). However, in the SOAP response of the web service, the element containing the result is called "return" instead of "info". This explains the error message that you get.
From the error message it seems that the runtime cannot find the "info" element within the "getInfoResponse" element. This might be a problem with the output of your web service. Could you post the literal XML response that the runtime receives from your web service? You can let the runtime log the XML that is sent to and received from web services by setting the log level of the "Webservices" module to DEBUG.
The following request gets sent by Mendix:
<?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <axis2ns2:getInfo xmlns:axis2ns2="urn:EducationLevel"> <name xsi:type="xsd:string">John Smith</name> </axis2ns2:getInfo> </soapenv:Body> </soapenv:Envelope>
And it receives the following response:
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns4="urn:EducationLevel" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <ns4:getInfoResponse> <return xsi:type="xsd:string">High school (with Advanced Physics)</return> </ns4:getInfoResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
This is what I expected and works in other SOAP clients. Any ideas?
This is the wsdl of the qa app, maybe it is of any use. It seems like the
<wsdl:...> <xds:...> is missing in your tags. I've only used wsdl's generated by the modeler and have never done it with php, so maybe I'm saying something very stupid. ;)