rajtest Posted March 20, 2008 Share Posted March 20, 2008 Hi All I am Raj, Beginner in PHP. I have a small doubt, I hope i will get the solution from you people. Pb : I need to fetch the remote methods return data using nusoap. I tried and i fail in fetching. So will you please help me to solve this. I have a remote URL is "vzw.acbcoop.com/VerizonWireless/Webservices/FulfillmentService.asmx?WSDL" The methods falling under this url are AuthenticateDomainUser(emailaddress as String, password as String) AuthenticateUser(emailaddress as String, password as String) CancelOrder() CancelOrderAsync() As String CancelReplyByKey(key as String, As) CommitOrder() CommitOrderAsync() As String CommitReplyByKey(Key As String, As) FulfillmentTestMethod() As String Ping() ResrveOrder() ReserveOrderAsync() As String ReserveReplyByKey(Key As String, As) Simply i will send the code, please verify me where i am doing mistake. I am getting output for only FulfillmentTestMethod(), and for the remaining mthods i am not getting. Here is the code require_once('lib/nusoap.php'); $proxyhost = isset($_POST['proxyhost']) ? $_POST['proxyhost'] : ''; $proxyport = isset($_POST['proxyport']) ? $_POST['proxyport'] : ''; $proxyusername = isset($_POST['proxyusername']) ? $_POST['proxyusername'] : ''; $proxypassword = isset($_POST['proxypassword']) ? $_POST['proxypassword'] : ''; $client = new nusoap_client("vzw.acbcoop.com/VerizonWireless/Webservices/FulfillmentService.asmx?WSDL", 'wsdl', $proxyhost, $proxyport, $proxyusername, $proxypassword); $err = $client->getError(); if ($err) { echo '<h2>Constructor error</h2><pre>' . $err . '</pre>'; } $params = array('AgentID' => 'CRST1TEST', 'VendorAgentID' => '4', 'VendorID' => '1009', 'VendorPassword' => 'Corn3r#', 'DateOfOrder' => '01/01/2008', 'OrderNumber' => '4', 'OrderTotal' => '4', 'OrderTax' => '4', 'Shipping' => '4'); $VendorOrder = $client->call("ReserveOrder","$params"); echo "<pre>"; print_r($VendorOrder); echo "</pre>"; /***** For this i am getting response *****/ $response = $client->call('FulfillmentTestMethod'); echo "<pre>"; print_r($response); echo "</pre>"; Thanks in advance Best Regards Raj Link to comment https://forums.phpfreaks.com/topic/97038-php-webservices-need-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.