Hello everybody !
i try do something like this,and can return a array :
$p = new soapclient('http://[myhost]/ivr_syn/ws.php?wsdl',true);
but i have to use the url like this :
http://[myhost]:8081/ws.php?wsdl (with the same content likes http://[myhost]/ivr_syn/ws.php?wsdl )
but no vale returned.
who can help me.???????
and my English is poor ,sorry.
my code:
<?
include "./nusoap.php";
$p = new soapclient('http://[myhost]/ivr_syn/ws.php?wsdl',true);
$p->soap_defencoding = 'UTF-8';
//$soap = $p->getProxy();
$com = array("userID"=>"uid100",
"userName"=>"myusername",
"userPasswd"=>"password",
"subscriberID"=>"subID123",
"subscriberName"=>"subName",
"subscriberAdminID"=>"admin123",
"subscriberAdminPasswd"=>"password",
"serviceID"=>"serviceId",
"serviceName"=>"serviceName",
"productID"=>"pdtID",
"productName"=>"pdtName",
"packageID"=>"pckID",
"packageName"=>"pckName");
$str = "
<![CDATA[<AspDataSet xmlns=\"http://webservice.enterprise.com/provisioning\" >
<data>
<itemID>service_code</itemID>
<itemName>anything, no real use</itemName>
<itemIndex>0</itemIndex>
<itemValue>123</itemValue>
<optionalFlag>1</optionalFlag>
<itemType>2</itemType>
<itemTypeDescription>service code</itemTypeDescription>
</data>
</AspDataSet>]]> ";
$arr = array("commonData"=>$com,"extendedAspData"=>$str);
$karr =array("senderID"=>"777777777","provisionType"=>"rec123","ProvisionID"=>2,"receiverID"=>3,"provisionTitle"=>"love","sentTime"=>"2006-12-12","provisionDataInfo"=>$arr,"senderCredentials"=>"test");
$ret = $p->call("ASPProvisionRequest",array("ASPProvisionRequestType"=>$karr));
var_dump($ret);
echo '<h2>Request</h2>';
echo '<pre>' . $p->request, ENT_QUOTES . '</pre>';
echo '<h2>Response</h2>';
echo '<pre>' . $p->response, ENT_QUOTES . '</pre>';
// Display the debug messages
echo '<h2>Debug</h2>';
echo '<pre>' . htmlspecialchars($p->debug_str, ENT_QUOTES) . '</pre>';
?> |