Ich bin neu in soapclient, ich habe versucht, einige Studie online zu tun und versuchte auch auf Seife zu programmieren, aber das scheint immer noch nicht funktioniert zu mir, nur wandern jemand hier kann darauf hinweisen und vielleicht gib mir ein paar beispiele wie kann ich die soapclint benutzen um das feedback vom folgenden webserver zu bekommen?Wie SoapClient auf PHP
POST /webservices/tempconvert.asmx HTTP/1.1
Host: www.w3schools.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/CelsiusToFahrenheit"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<CelsiusToFahrenheit xmlns="http://tempuri.org/">
<Celsius>string</Celsius>
</CelsiusToFahrenheit>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<CelsiusToFahrenheitResponse xmlns="http://tempuri.org/">
<CelsiusToFahrenheitResult>string</CelsiusToFahrenheitResult>
</CelsiusToFahrenheitResponse>
</soap:Body>
</soap:Envelope>
<?php
$url = "http://www.w3schools.com/webservices/tempconvert.asmx?WSDL";
$client = new SoapClient($url);
?>
Was soll ich für die nächsten Schritte tun, damit ich die Antwort bekommen kann ??
@Pascal MARTIN du bist der supermann ... danke für das beispiel ... jetzt weiß ich viel besser wie die soapclient funktionieren. DANKE :) –
Gern geschehen :-) Viel Spaß! –
Ich sehe wieder ein Problem für Saop .. nicht sicher, ob Sie wissen, was mit meinem Code falsch läuft? Bitte klicken Sie auf diesen Link für das Problem http://stackoverflow.com/questions/2619519/soap-client-not-working-in-php danke –