Code: Select all
POST /io_query/queryservice.aspx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: lengthofstring
SOAPAction: "http://teuri.org/queryservice"Thanks in advance
Moderator: General Moderators
Code: Select all
POST /io_query/queryservice.aspx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: lengthofstring
SOAPAction: "http://teuri.org/queryservice"Code: Select all
//Note class is declared above
$client->__soapCall('Getresult', array(new SoapParam('1 4','user_ids'), new SoapParam('23','server_id')), array('uri'=>'http://uri.org','soapaction'=>'http://uri.org/GetResult')Code: Select all
$client->__doRequest($string,'http://192.1.1.1/Service/Service.aspx?va=GetResult','http://uri.org/GetResult','1.1')That is the php5 soap extension, http://de2.php.net/soap ?dude81 wrote:I'm using a simple SOAP-PHP5 client class available in PHP5.
Code: Select all
<?php
$client = new SoapClient('http://www.webservicex.net/geoipservice.asmx?WSDL');
$response = $client->GetGeoIP(array('IPAddress'=>'88.72.14.195'));
$georesult = $response->GetGeoIPResult;
echo "<pre>\n";
echo $georesult->IP, "\n";
echo $georesult->CountryName, "\n";
echo "</pre>\n";
?>