NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
soapclient url with 8081 port


Joined: 26 Dec 2006
Posts: 1
Reply with quote
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:
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>';

?>
View user's profileFind all posts by sunceenjoySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
probably you tried to change URL for WSDL in "new soapclient()" call. It does not really matter how you supply WSDL content to the library. You can even provide WSDL in a local file, it will work even faster then.
Real endpoint calls are made according to WSDL. Hense to make your server running on 8081 called, you need appropriate URLs in the WSDL.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
soapclient url with 8081 port
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic