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