SABUN çalışmıyor

0 Cevap php

I trying to work with SOAP, but it doesn't work. I tried localhost and another server. For example: soap.xml:

POST /InStock HTTP/1.1
Host: www.example.org
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn

<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">

<soap:Body xmlns:m="http://www.example.org/stock">
  <m:GetStockPrice>
    <m:StockName>IBM</m:StockName>
  </m:GetStockPrice>
</soap:Body>

</soap:Envelope>

ve sonuç:

XML Parsing Error: syntax error Location: http://w3.localhost/soap/soap.xml Line Number 1, Column 1:POST /InStock HTTP/1.1 ^

phpinfo:

soap
Soap Client     enabled
Soap Server     enabled 

apache mime.types

application/fastsoap
application/soap+fastinfoset
application/soap+xml

Ben de NuSOAP ile denedim, ama example.php bana bu hatayı gösterir:

Fatal error: Cannot redeclare class soapclient in C:\xampp\htdocs\w3\soap\nusoap.php on line 3896

Benim İngilizce için herhangi bir yardım ve özür için teşekkürler.

0 Cevap