soap wsdl error, nusoap

pillmill used Ask the Experts™
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">
<xsd:schema targetNamespace="urn:stockquote">
<xsd:import namespace=""/>
<xsd:import namespace=""/>
<message name="getStockQuoteRequest">
<part name="symbol" type="xsd:string"/>
<message name="getStockQuoteResponse">
<part name="return" type="xsd:decimal"/>
<portType name="stockserverPortType">
<operation name="getStockQuote">
<input message="tns:getStockQuoteRequest"/>
<output message="tns:getStockQuoteResponse"/>
<binding name="stockserverBinding" type="tns:stockserverPortType">
<soap:binding style="rpc" transport=""/>
<operation name="getStockQuote">
<soap:operation soapAction="urn:stockquote#getStockQuote" style="rpc"/
<soap:body use="encoded" namespace="urn:stockquote" encodingStyle=""/>
<soap:body use="encoded" namespace="urn:stockquote" encodingStyle=""/>
<service name="stockserver">
<port name="stockserverPort" binding="tns:stockserverBinding">
<soap:address location="http://localhost/stockserver.php"/>

Open in new window

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Can you paste the stockclient.php file?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial