[SOAP] SOAP-ERROR: Parsing Schema: unresolved element 'ref' attribute

[email protected] (Jamesas)
Newsgroups php.soap
Message-ID <[email protected]>
I am write the following function to access the soap webservice 

but i get the error as following

Error:
WSDL

Error Details:
SOAP-ERROR: Parsing Schema: unresolved element 'ref' attribute


Notice:  Undefined variable: client in
F:\xampp\htdocs\tj\functions\travel_functions.php on line 513



Fatal error:  Call to a member function __getLastRequest() on a non-object
in F:\xampp\htdocs\tj\functions\travel_functions.php

program is follows


	function
bookRoom($hotel_id,$check_in,$check_out,$rooms,$first_name,$last_name,$Guest,$bedtype,$smoke,$splreq,$address,$city,$state,$zip,$country,$areacode,$homephone,$workphone,$fax,$email,$totalcharge,$ccnum,$ccexpdate,$ccaddress,$cczip,$cclastname,$ccfirstname,$ccipaddress,$sitename,$tollfreeno,$ccsecuritycode)
	{
		error_reporting(E_ALL);
		$ini = ini_set("soap.wsdl_cache_enabled","0"); 
		try 
		{
			$client = new
SoapClient("https://twedixml.test.travelworm.com/xmls/service1.asmx?wsdl",
array("trace" => true, "exceptions" => true, 'soap_version' => SOAP_1_1));
			$parameter = array(
				'UserName' => $this->username,
				'UserID' => $this->userid,
				'HotelID' => $hotel_id,
				'CIDate' => $check_in,
				'CODate' => $check_out,
				'Rooms' => $rooms,
				'FirstName' => $first_name,
				'LastName' => $last_name,
				'Guests' => $Guest,
				'BedType' => $bedtype,
				'Smoking' => $smoke,
				'SpecReq' => $splreq,
				'Add' => $address,
				'City' => $city,
				'State' => $state,
				'Zip' => $zip,
				'Country' => $country,
				'AreaCode' => $areacode,
				'HPhone' => $homephone,
				'WPhone' => $workphone,
				'Fax' => $fax,
				'Email' => $email,
				'TotalCharge' => $totalcharge,
				'CCNum' => $ccnum,
				'CCExp' => $ccexpdate,
				'CCAdd' => $ccaddress,
				'CCZip' => $cczip,
				'CCLName' => $cclastname,
				'CCFName' => $ccfirstname,
				'IPAddress' => $ccipaddress,
				'SiteName' => $sitename,
				'TollFree' => $tollfreeno,
				'cardSecurityCode' => $ccsecuritycode);
			$result = $client->BookRoomToXmlFromStringParams2($parameter);
			$res=$client->__getLastResponse();
		}
		catch (SoapFault $ex)
		{
			echo "Error:
" . nl2br($ex->faultcode) . '
Error Details:
'. nl2br($ex->faultstring) . '
';
			echo("
REQUEST :
" . htmlspecialchars($client->__getLastRequest()) . "
");
			echo("
RESPONSE:
" .htmlspecialchars($client->__getLastResponse()) . "
");
			return "ERROR ".nl2br($ex->faultstring);
		} 
		return $res;
//		return $this->HotelsInformationToXML_xml($res);
	}

-- 
View this message in context: http://www.nabble.com/SOAP-ERROR%3A-Parsing-Schema%3A-unresolved-element-%27ref%27-attribute-tp15479449p15479449.html
Sent from the Php - Soap mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.