Jump to content

Problem with Soap Server


anisbet

Recommended Posts

Hello all I am having some issues getting a new Soap server working, hopefully the board can shead 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.



Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.