Php SAX解析异常错误

Php SAX解析异常错误,php,soap,xmlhttprequest,Php,Soap,Xmlhttprequest,我正在通过发送XML请求调用PHP SOAP中的web服务,但我不知道发生了什么,我遇到了以下错误。虽然我浏览了web,但没有得到任何答案。请帮助任何人。 错误如下: soapenv:Server.userExceptionorg.xml.sax.SAXParseException: The prefix "xsi" for attribute "xsi:type" associated with an element type "hb:getHotelValuedAvail" is not b

我正在通过发送XML请求调用PHP SOAP中的web服务,但我不知道发生了什么,我遇到了以下错误。虽然我浏览了web,但没有得到任何答案。请帮助任何人。 错误如下:

soapenv:Server.userExceptionorg.xml.sax.SAXParseException: The prefix "xsi" for attribute "xsi:type" associated with an element type "hb:getHotelValuedAvail" is not bound.
我使用的代码如下所示:-

$user = "Username";
$pass = "Password";
$destino = "Test.wsdl";
$objClient = new SoapClient($destino, array('trace' => true,'exceptions' => 0, 'encoding' => 'UTF-8'));
$xml = '<hb:getHotelValuedAvail xmlns:hb="http://axis.frontend.hydra.hotelbeds.com" xsi:type="xsd:string"><HotelValuedAvailRQ echoToken="DummyEchoToken" sessionId="DummySessionId" xmlns="http://www.hotelbeds.com/schemas/2005/06/messages" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hotelbeds.com/schemas/2005/06/messages HotelValuedAvailRQ.xsd"><Language>ENG</Language><Credentials><User>'.$user.'</User><Password>'.$pass.'</Password></Credentials><PaginationData pageNumber="1" itemsPerPage="999"/><CheckInDate date="20121013"/><CheckOutDate date="20121015"/><Destination code="PMI" type="SIMPLE"/><OccupancyList><HotelOccupancy>          <RoomCount>1</RoomCount><Occupancy><AdultCount>2</AdultCount><ChildCount>0</ChildCount></Occupancy></HotelOccupancy></OccupancyList></HotelValuedAvailRQ></hb:getHotelValuedAvail>';

$soapvar = new SoapVar($xml, XSD_ANYXML);
$objResponse = $objClient->__soapCall("getHotelValuedAvail", array($soapvar)); 
print_r($objClient->__getLastResponse());
$user=“Username”;
$pass=“Password”;
$destino=“Test.wsdl”;
$objClient=newsoapclient($destino,array('trace'=>true,'exceptions'=>0,'encoding'=>UTF-8');
$xml='ENG.$user.'.$pass.'120';
$soapvar=newsoapvar($xml,XSD_ANYXML);
$objResponse=$objClient->uu soapCall(“getHotelValuedAvail”,数组($soapvar));
打印($objClient->uu getLastResponse());

我为此浪费了很多天。即使请求支持,也找不到帮助

为了了解这个问题,您查阅了哪些文档?它有什么不足之处?你已经做了什么来解决这个问题?嘿,本,我已经查看了我的客户提供的HotelBed文档,虽然我使用的是相同的格式,但我不明白为什么它不起作用。