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.ph p:3 Stack trace: #0 C:\wamp\www\stockclient.ph p(3): SoapClient->SoapClient('http://localhos...')
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.ph
<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>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.