Hello all I am having some issues getting a new Soap server working, hopefully the board can shed some light on what I am doing wrong.
Here is my WSDL
<?xml version ='1.0' encoding ='UTF-8' ?>
<definitions name='MiddleWareData'
targetNamespace='http://example.org/MiddleWareData'
xmlns:tns=' http://example.org/MiddleWareData '
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
xmlns='http://schemas.xmlsoap.org/wsdl/'>
<message name='getDataRequest'>
<part name='request' type='xsd:string'/>
</message>
<message name='getDataResponse'>
<part name='data' type='xsd:string'/>
</message>
<portType name='getDataPortType'>
<operation name='getData'>
<input message='tns:getDataRequest'/>
<output message='tns:getDataResponse'/>
</operation>
</portType>
<binding name='getDataBinding' type='tns"getDataPortType'>
<soap:binding style='rpc' transprot='http://schemas.xmlsoap.org/soap/http'/>
<operation name='getData'>
<soap:operation soapAction='urn:xmethods-middleware-Data#getData'/>
<input>
<soap:body use='encoded' namespace='urn:xmethods-middleware-Data' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
</input>
<output>
<soap:body use='encoded' namespace='urn:xmethods-middleware-Data' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
</output>
</operation>
</binding>
<service name='MiddleWareDataService'>
<port name='getDataPort' binding='getDataBinding'>
<soap:address location='http://10.1.2.171/billing/webServerTest.php'/>
</port>
</service>
</definitions>
Application code
<?PHP
ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache
$server = new SoapServer("middleWareData.wsdl");
$server->addFunction("getData");
$server->handle();
?>
This gives me the following results
−
<SOAP-ENV:Envelope>
−
<SOAP-ENV:Body>
−
<SOAP-ENV:Fault>
<faultcode>WSDL</faultcode>
−
<faultstring>
SOAP-ERROR: Parsing WSDL: Couldn't load from '/var/www/localhost/htdocs/billing/middleWareData.wsdl'
</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope
I am using php 5.1.6 with native soap enabled.
Any help would be greatly appreciated.