SoapFault exception: [HTTP] Not Found in L:\home\cti.ru\www\webservice\client1.php:5
Stack trace:
#0 [internal function]: SoapClient->__doRequest('__call('getQuote', Array)
#2 L:\home\cti.ru\www\webservice\client1.php(5): SoapClient->getQuote('ibm')
#3 {main}
Коды следующие:
файл - stockquote.wsdl
CODE (xml):
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?xml version ='1.0' encoding ='UTF-8' ?>
- <definitions name='StockQuote'
- targetNamespace='http://example.org/StockQuote'
- xmlns:tns=' http://example.org/StockQuote '
- 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='getQuoteRequest'>
- <part name='symbol' type='xsd:string'/>
- </message>
- <message name='getQuoteResponse'>
- <part name='Result' type='xsd:float'/>
- </message>
- <portType name='StockQuotePortType'>
- <operation name='getQuote'>
- <input message='tns:getQuoteRequest'/>
- <output message='tns:getQuoteResponse'/>
- </operation>
- </portType>
- <binding name='StockQuoteBinding' type='tns:StockQuotePortType'>
- <soap:binding style='rpc'
- transport='http://schemas.xmlsoap.org/soap/http'/>
- <operation name='getQuote'>
- <soap:operation soapAction='urn:xmethods-delayed-quotes#getQuote'/>
- <input>
- <soap:body use='encoded' namespace='urn:xmethods-delayed-quotes'
- encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
- </input>
- <output>
- <soap:body use='encoded' namespace='urn:xmethods-delayed-quotes'
- encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
- </output>
- </operation>
- </binding>
- <service name='StockQuoteService'>
- <port name='StockQuotePort' binding='StockQuoteBinding'>
- <soap:address location='http://cti.ru/webservice/stockquote.php'/>
- </port>
- </service>
- </definitions>