ヘイ。
何をしようとしている?することができます我々の例を参照してください?
私は最近、SOAPの自分自身について少し読んでてきた、と私はnuSOAPクライアントが正常に動作させることができた。私はこのコードを使用している:
- <?php
-
header('content-type: text/plain; charset=UTF-8');
-
error_reporting(E_ALL + E_NOTICE - E_STRICT - E_DEPRECATED);
-
require_once('nusoap/nusoap.php');
-
-
// Create a SOAP client and make sure it connected OK
-
$client = new nusoap_client('http://www.ecubicle.net/iptocountry.asmx?wsdl', 'wsdl');
-
$error = $client->getError();
-
if ($error)
-
{
-
echo "--- ERROR ---\n";
-
print_r($error);
-
echo "\n---\ERROR ---\n";
-
}
-
else
-
{
-
// Call the SOAP function
-
$param = array('V4IPAddress' => '<-- INSERT IP ADDRESS HERE -->');
-
$result = $client->call('FindCountryAsString', array('parameters' => $param), '', '', false, true);
-
-
// Check if there was a fault
-
if ($client->fault)
-
{
-
echo "--- FAULT ---\n";
-
print_r($result);
-
echo "\n---\FAULT ---\n";
-
}
-
else
-
{
-
// Check if there were any errors.
-
$error = $client->getError();
-
if ($error)
-
{
-
echo "--- ERROR ---\n";
-
print_r($error);
-
echo "\n---\ERROR ---\n";
-
}
-
else
-
{
-
// Display the result
-
echo "--- RESULT ---\n";
-
print_r($result);
-
echo "\n---\RESULT ---\n";
-
}
-
}
-
-
// Print debug info
-
echo <<<DEBUG
-
-
-
-------------
-
--- DEBUG ---
-
-------------
-
-
--- REQUEST ---
-
{$client->request}
-
---\REQUEST ---
-
-
--- Response ---
-
{$client->response}
-
---\Response ---
-
-
--- Debug ---
-
{$client->debug_str}
-
---\Debug ---
-
DEBUG;
-
}
-
?>
SOAPサービスが見つかりません私はオンラインで使用しています。これは、無料IPに地理的な位置のことだ。
実際にかかわらず、SOAPサーバーを置くことに多くの研究を行っていないことがあります。私は今だのみでサービスを使用してSOAPのには本当に興味が。 |