این سورس ارسال هستش که به من دادن
<?php
require_once('lib/nusoap.php');$url="http://192.168.128.90/ws/sms.asmx?WSDL";$client=new nusoap_client($url, 'wsdl');$client->soap_defencoding = 'UTF-8';$client->decode_utf8 = true;$param=array('requestData'=> '<xmsrequest> <userid>?????</userid> <password>??????</password> <action>smssend</action> <body> <type>oto</type> <recipient mobile="9121000000" originator="500021" doerid="8" >Test</recipient> </body> </xmsrequest>'); $result = $client->call('XmsRequest', $param);echo $result["XmsRequestResult"];
if ($client->fault) { echo '<h2>Fault</h2><pre>'; print_r($result); echo '</pre>';} else { // Check for errors $err = $client->getError(); if ($err) { // Display the error echo '<h2>Error</h2><pre>' . $err . '</pre>'; } else { // Display the result echo '<h2>Result</h2><pre>'; print_r($result); echo '</pre>'; }}echo '<h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>';echo '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>';echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '</pre>';echo "\n";?>
در این کد من هیچ مشکلی ندارم من میخوام پیامک هایی که توی سامانه وجود داره رو بگیرم که کدی رو که خودم تونستم تا اینجا بنویسم این بود برای دریافت
require_once('lib/nusoap.php');$url="http://212.16.76.90/ws/sms.asmx?WSDL";$client=new nusoap_client($url,'wsdl');$client->soap_defencoding = 'UTF-8';$client->decode_utf8 = true;$param=array('requestData'=>'<xmsrequest><use rid>???</userid><password>????</password><action>smsreceive</action><body><startrow>1</startrow> <count>100</count> </body> </xmsrequest>');
$result = $client->call('XmsRequest', $param); echo $result["XmsRequestResult"];
if ($client->fault) { echo '<h2>Fault</h2><pre>'; print_r($result); echo '</pre>';} else { // Check for errors $err = $client->getError(); if ($err) { // Display the error echo '<h2>Error</h2><pre>' . $err . '</pre>'; } else { // Display the result echo '<h2>Result</h2><pre>'; //print_r($result); echo '</pre>'; }}echo '<h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>';echo '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>';echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '</pre>';echo "\n";