<?php
	class customer{
		var $gender;
		var $firstname;
		var $lastname;
		var $dob;
		var $emailaddress;
		var $telephone;
		var $mobile;
		var $newsletter;
		var $second_emailaddress;
		var $second_telephone;
		var $reserve_newsletter;
		var $subscription_newsletter;
		var $type;
		var $street_address;
		var $city;
		var $state;
		var $country;
		var $suburb;
		var $company;
		var $password;
		var $postcode;
		var $admin_id;
		var $customer_id;
		var $default_address_id;
	}
	$customer=new customer();
	/*$client = new SoapClient(null, array('location' => "http://localhost/osCommRes/soap/subscription_server.php",
                                    'uri'      => "http://subscription_uri/"));*/
	$client=new SoapClient("subscription.wsdl");

	
	$customer->gender="M";
	$customer->firstname="Test Edit";
	$customer->lastname="Test Edit";
	$customer->dob="1978-05-05";
	$customer->emailaddress="root@localhost.com";
	$customer->street_address="test street1";
	$customer->city="test city";
	$customer->state="Queensland";
	$customer->country=13;
	$customer->password="123456";
	$customer->postcode="626123";
	$customer->company="TEST";
	$customer->suburb="test";
	$customer->telephone="1111111122";
	$customer->second_telephone="22222222";
	$customer->second_emailaddress="second@info.com";
	$customer->mobile="+98900";
	$customer->newsletter="1";
	$customer->reserve_newsletter="1";
	$customer->subscription_newsletter="1";
	$customer->type="V";
	$customer->admin_id=1;
	$customer->customer_id=0;
	$customer->default_address_id=7;
	
	$customer1=new customer();
	echo $client->ValidateSubscription(array("userID"=>1,"subscriptionID"=>20));
	//$result= $client->ValidateSubscriptionMember(array("emailaddress"=>"root@localhost.com","password"=>"admin"));
	
	if ($result!="no"){
		for ($icnt=0;$icnt<count($result);$icnt++){
			echo $result[$icnt] . '<br>';
		}
	}
	//echo $client->AddCustomer($customer);
?>
