I am trying to call a courier api with specified method. I am able to connect with the api using soapclient but getting following error:
Object reference not set to an instance of an object
I am using following code and data
$proxy = new SoapClient($my_api_url);
$params = array(
"UserName" => '****',
"Password" => '****',
"OrderNumber" => '41111',
"ClientName" => 'My Name',
"ContactNumber1" => '123456789',
"EmailAddress" => 'testapi@rohitdhiman.in',
"ShippingAddress1" => 'site 15'
);
$result = $proxy->BayOneAddOrder($params);
print_r($result);