hi there !
i want to get started with nusoap. i wrote a small client...
<?php
require_once('nusoaplib/nusoap.php');
$wsdlfile="http://www.comunio.de/soapservice.php?wsdl";
$sclient=new soapclient($wsdlfile,'wsdl');
$sclient->call("getuserid",array("drg.de"));
$theresponse = $sclient->response;
echo '<xmp>'.$theresponse.'</xmp>';
php?>
... that gives the following response:
- <xmp>
HTTP/1.1 200 OK Date: Fri, 09 Sep 2005 23:07:33 GMT Server: Apache/2.0.49 X-SOAP-Server: NuSOAP/0.7.1 (1.2) Content-Length: 522 Vary: Accept-Encoding Connection: close Content-Type: text/xml; charset=ISO-8859-1
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
- <SOAP-ENV:Body>
- <ns1:getuseridResponse xmlns:ns1="urn:soapservicewsdl">
<return xsi:type="xsd:integer">459694</return>
</ns1:getuseridResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</xmp>
it seems correct, but i'm only interested in the integer given back ("45694"). can anybody PLEASE show me how to extend my client so that i have the value in a new variable ? please help me, i'm looking quite a time for the solution but i simply don't understand how to make it... 🙁
thanks a lot,
chris