Link to home
Start Free TrialLog in
Avatar of pillmill
pillmill

asked on

soap wsdl error, nusoap

I am getting the following error when trying
to use my SOAP service from a nusoap generated
wsdl (shown below). How do I fix this?

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost/stockserver.php' : Premature end of data in tag html line 2 in C:\wamp\www\stockclient.php:3 Stack trace: #0 C:\wamp\www\stockclient.php(3): SoapClient->SoapClient('http://localhos...')
<definitions targetNamespace="urn:stockquote">
<types>
<xsd:schema targetNamespace="urn:stockquote">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
</xsd:schema>
</types>
<message name="getStockQuoteRequest">
<part name="symbol" type="xsd:string"/>
</message>
<message name="getStockQuoteResponse">
<part name="return" type="xsd:decimal"/>
</message>
<portType name="stockserverPortType">
<operation name="getStockQuote">
<input message="tns:getStockQuoteRequest"/>
<output message="tns:getStockQuoteResponse"/>
</operation>
</portType>
<binding name="stockserverBinding" type="tns:stockserverPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="getStockQuote">
<soap:operation soapAction="urn:stockquote#getStockQuote" style="rpc"/
<input>
<soap:body use="encoded" namespace="urn:stockquote" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded" namespace="urn:stockquote" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<service name="stockserver">
<port name="stockserverPort" binding="tns:stockserverBinding">
<soap:address location="http://localhost/stockserver.php"/>
</port>
</service>
</definitions>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of robertark
robertark

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial