i am new to web service plz help me im tried the following code error_reporting(E_ALL); $ini = ini_set("soap.wsdl_cache_enabled","0"); //set up the service client using WSDL echo "Connecting to server using WSDL\n"; $client = new SoapClient("http://demo.touricoholidays.com/ws/HotelsService.asmx?WSDL",array('trace' => 1)); //var_dump($client->__getFunctions()); //var_dump($client->__getTypes()); $x["username"]="ofstays"; $x["password"]="111111"; $x["culture"]="en_US"; $x["version"]='4.5'; //$x = new SoapVar($x, SOAP_ENC_OBJECT, "AuthenticationHeader","http://www.itworks.nl/"); $header=new SoapHeader('http://www.touricoholidays.com/','LoginHeader',$x); $client->__setSoapHeaders(array($header)); echo "SoapHeaders set sucessfully\n"; $roominfo = array('AdultsNum' => 1,'ChildNum' => 1,'ChildAges' => 8); $parameter = array('sDestination' => 'NYC', 'sHotelCityName' => '', 'sHotelLocationName' => '', 'sHotelName' => '', 'dtCheckIn' => '2007-11-20', 'dtCheckOut' => '2007-12-01', 'roomsInformation' => $roominfo, 'maxPrice' => 0, 'starLevel' => 2, 'fAvailableOnly' => 1); //$result2 = $client->__soapCall('Hello',$params2, NULL,$header,$output_headers); $result = $client->SearchHotels($parameter); echo("REQUEST :\n" . $client->__getLastRequest() . "\n\n"); echo("RESPONSE:\n" .$client->__getLastResponse() . "\n\n"); for accessing the following wsdl − <wsdl:definitions targetNamespace="http://tourico.com/webservices/"> − <wsdl:types> − <s:schema elementFormDefault="qualified" targetNamespace="http://tourico.com/webservices/"> <s:import namespace="http://tourico.com/webservices/TWS_HotelList.xsd"/> <s:import namespace="http://tourico.com/travelservices/"/> <s:import namespace="http://tourico.com/webservices/TWS_HotelDetails.xsd"/> <s:import namespace="http://tourico.com/webservices/TWS_RGInfo.xsd"/> <s:import schemaLocation="http://demo.touricoholidays.com/ws/HotelsService.asmx?schema=TWS_HotelDetails" namespace="http://tourico.com/webservices/TWS_HotelDetails.xsd"/> <s:import schemaLocation="http://demo.touricoholidays.com/ws/HotelsService.asmx?schema=TWS_RGInfo" namespace="http://tourico.com/webservices/TWS_RGInfo.xsd"/> <s:import schemaLocation="http://demo.touricoholidays.com/ws/HotelsService.asmx?schema=TWS_HotelList" namespace="http://tourico.com/webservices/TWS_HotelList.xsd"/> − <s:element name="SearchHotels"> − <s:complexType> − <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="sDestination" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="sHotelCityName" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="sHotelLocationName" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="sHotelName" type="s:string"/> <s:element minOccurs="1" maxOccurs="1" name="dtCheckIn" type="s:date"/> <s:element minOccurs="1" maxOccurs="1" name="dtCheckOut" type="s:date"/> <s:element minOccurs="0" maxOccurs="1" name="roomsInformation" type="tns:ArrayOfRoomInfo"/> <s:element minOccurs="1" maxOccurs="1" name="maxPrice" type="s:decimal"/> <s:element minOccurs="1" maxOccurs="1" name="starLevel" type="s:decimal"/> <s:element minOccurs="1" maxOccurs="1" name="fAvailableOnly" type="s:boolean"/> </s:sequence> </s:complexType> </s:element> − <s:complexType name="ArrayOfRoomInfo"> − <s:sequence> <s:element minOccurs="0" maxOccurs="unbounded" name="RoomInfo" nillable="true" type="tns:RoomInfo"/> </s:sequence> </s:complexType> − <s:complexType name="RoomInfo"> − <s:sequence> <s:element minOccurs="1" maxOccurs="1" name="AdultsNum" type="s:int"/> <s:element minOccurs="1" maxOccurs="1" name="ChildNum" type="s:int"/> <s:element minOccurs="0" maxOccurs="1" name="ChildAges" type="tns:ArrayOfInt"/> </s:sequence> </s:complexType> − <s:complexType name="ArrayOfInt"> − <s:sequence> <s:element minOccurs="0" maxOccurs="unbounded" name="ChildAge" type="s:int"/> </s:sequence> </s:complexType> − <s:element name="SearchHotelsResponse"> − <s:complexType> − <s:sequence> − <s:element minOccurs="0" maxOccurs="1" name="SearchHotelsResult"> − <s:complexType> − <s:sequence> <s:any namespace="http://tourico.com/webservices/TWS_HotelList.xsd"/> </s:sequence> </s:complexType> </s:element> </s:sequence> </s:complexType> </s:element> <s:element name="LoginHeader" type="s1:LoginHeader"/> − <s:element name="SearchHotelsByID"> − <s:complexType> − <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="clHotelIdInfo" type="tns:ArrayOfHotelIdInfo"/> <s:element minOccurs="1" maxOccurs="1" name="dtCheckIn" type="s:date"/> <s:element minOccurs="1" maxOccurs="1" name="dtCheckOut" type="s:date"/> <s:element minOccurs="0" maxOccurs="1" name="roomsInformation" type="tns:ArrayOfRoomInfo"/> <s:element minOccurs="1" maxOccurs="1" name="maxPrice" type="s:decimal"/> <s:element minOccurs="1" maxOccurs="1" name="starLevel" type="s:decimal"/> </s:sequence> </s:complexType> </s:element> − <s:complexType name="ArrayOfHotelIdInfo"> − <s:sequence> <s:element minOccurs="0" maxOccurs="unbounded" name="HotelIdInfo" nillable="true" type="tns:HotelIdInfo"/> </s:sequence> </s:complexType> − <s:complexType name="HotelIdInfo"> <s:attribute name="id" type="s:string"/> </s:complexType> − <s:element name="SearchHotelsByIDResponse"> − <s:complexType> − <s:sequence> − <s:element minOccurs="0" maxOccurs="1" name="SearchHotelsByIDResult"> − <s:complexType> − <s:sequence> <s:any namespace="http://tourico.com/webservices/TWS_HotelList.xsd"/> </s:sequence> </s:complexType> </s:element> </s:sequence> </s:complexType> </s:element> − <s:element name="CheckAvailabilityAndPrices"> − <s:complexType> − <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="clHotelIdInfo" type="tns:ArrayOfHotelIdInfo"/> <s:element minOccurs="1" maxOccurs="1" name="dtCheckIn" type="s:date"/> <s:element minOccurs="1" maxOccurs="1" name="dtCheckOut" type="s:date"/> <s:element minOccurs="0" maxOccurs="1" name="roomsInformation" type="tns:ArrayOfRoomInfo"/> <s:element minOccurs="1" maxOccurs="1" name="maxPrice" type="s:decimal"/> <s:element minOccurs="1" maxOccurs="1" name="starLevel" type="s:decimal"/> </s:sequence> </s:complexType> </s:element> − <s:element name="CheckAvailabilityAndPricesResponse"> − <s:complexType> − <s:sequence> − <s:element minOccurs="0" maxOccurs="1" name="CheckAvailabilityAndPricesResult"> − <s:complexType> − <s:sequence> <s:any namespace="http://tourico.com/webservices/TWS_HotelList.xsd"/> </s:sequence> </s:complexType> </s:element> </s:sequence> </s:complexType> </s:element> − <s:element name="GetHotelDetails"> − <s:complexType> − <s:sequence> <s:element minOccurs="1" maxOccurs="1" name="HotelID" type="s:int"/> <s:element minOccurs="0" maxOccurs="1" name="provider" type="s:string"/> </s:sequence> </s:complexType> </s:element> − <s:element name="GetHotelDetailsResponse"> − <s:complexType> − <s:sequence> − <s:element minOccurs="0" maxOccurs="1" name="GetHotelDetailsResult"> − <s:complexType> − <s:sequence> <s:any namespace="http://tourico.com/webservices/TWS_HotelDetails.xsd"/> </s:sequence> </s:complexType> </s:element> </s:sequence> </s:complexType> </s:element> − <s:element name="BookHotel"> − <s:complexType> − <s:sequence> <s:element minOccurs="1" maxOccurs="1" name="recordLocatorId" type="s:int"/> − <s:element minOccurs="0" maxOccurs="1" name="hl"> − <s:complexType> − <s:sequence> <s:any namespace="http://tourico.com/webservices/TWS_HotelList.xsd"/> </s:sequence> </s:complexType> </s:element> <s:element minOccurs="0" maxOccurs="1" name="selectedAdditions" type="tns:ArrayOfRoomSelectionInfo"/> <s:element minOccurs="0" maxOccurs="1" name="provider" type="s:string"/> <s:element minOccurs="1" maxOccurs="1" name="paymentType" type="tns:PaymentTypes"/> <s:element minOccurs="0" maxOccurs="1" name="cci" type="tns:CreditCardInfo"/> <s:element minOccurs="0" maxOccurs="1" name="AgentRefNumber" type="s:string"/> </s:sequence> </s:complexType> </s:element> − <s:complexType name="ArrayOfRoomSelectionInfo"> − <s:sequence> <s:element minOccurs="0" maxOccurs="unbounded" name="RoomSelectionInfo" nillable="true" type="tns:RoomSelectionInfo"/> </s:sequence> </s:complexType> − <s:complexType name="RoomSelectionInfo"> − <s:sequence> <s:element minOccurs="1" maxOccurs="1" name="roomId" type="s:int"/> <s:element minOccurs="0" maxOccurs="1" name="contactPassenger" type="tns:GuestInfo"/> <s:element minOccurs="0" maxOccurs="1" name="selectedBoardBase" type="tns:BoardBaseInfo"/> <s:element minOccurs="0" maxOccurs="1" name="selectedSupplement" type="tns:ArrayOfSupplementInfo"/> <s:element minOccurs="1" maxOccurs="1" name="bedType" type="tns:BedTypes"/> <s:element minOccurs="0" maxOccurs="1" name="occupancyId" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="note" type="s:string"/> </s:sequence> </s:complexType> − <s:complexType name="GuestInfo"> − <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="firstName" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="middleName" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="lastName" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="homePhone" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="mobilePhone" type="s:string"/> </s:sequence> </s:complexType> − <s:complexType name="ClientInfo"> − <s:complexContent mixed="false"> − <s:extension base="tns:GuestInfo"> − <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="address" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="city" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="stateCode" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="zip" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="countryCode" type="s:string"/> </s:sequence> </s:extension> </s:complexContent> </s:complexType> − <s:complexType name="BoardBaseInfo"> − <s:complexContent mixed="false"> <s:extension base="tns:SelectionInfo"/> </s:complexContent> </s:complexType> − <s:complexType name="SelectionInfo" abstract="true"> − <s:sequence> <s:element minOccurs="1" maxOccurs="1" name="id" type="s:int"/> <s:element minOccurs="1" maxOccurs="1" name="price" type="s:double"/> </s:sequence> </s:complexType> − <s:complexType name="SupplementInfo"> − <s:complexContent mixed="false"> <s:extension base="tns:SelectionInfo"/> </s:complexContent> </s:complexType> − <s:complexType name="ArrayOfSupplementInfo"> − <s:sequence> <s:element minOccurs="0" maxOccurs="unbounded" name="SupplementInfo" nillable="true" type="tns:SupplementInfo"/> </s:sequence> </s:complexType> − <s:simpleType name="BedTypes"> − <s:restriction base="s:string"> <s:enumeration value="NotRelevant"/> <s:enumeration value="TwinBeds"/> <s:enumeration value="DoubleBed"/> </s:restriction> </s:simpleType> − <s:simpleType name="PaymentTypes"> − <s:restriction base="s:string"> <s:enumeration value="CreditCard"/> <s:enumeration value="Obligo"/> </s:restriction> </s:simpleType> − <s:complexType name="CreditCardInfo"> − <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="number" type="s:string"/> <s:element minOccurs="1" maxOccurs="1" name="expirationDate" type="s:date"/> <s:element minOccurs="0" maxOccurs="1" name="securityIssue" type="s:string"/> <s:element minOccurs="1" maxOccurs="1" name="company" type="tns:CreditCompanyTypes"/> <s:element minOccurs="1" maxOccurs="1" name="isClientCard" type="s:boolean"/> <s:element minOccurs="0" maxOccurs="1" name="owner" type="tns:ClientInfo"/> </s:sequence> </s:complexType> − <s:simpleType name="CreditCompanyTypes"> − <s:restriction base="s:string"> <s:enumeration value="None"/> <s:enumeration value="AmericanExpress"/> <s:enumeration value="MasterCard"/> <s:enumeration value="Visa"/> </s:restriction> </s:simpleType> − <s:element name="BookHotelResponse"> − <s:complexType> − <s:sequence> − <s:element minOccurs="0" maxOccurs="1" name="BookHotelResult"> − <s:complexType> − <s:sequence> <s:any namespace="http://tourico.com/webservices/TWS_RGInfo.xsd"/> </s:sequence> </s:complexType> </s:element> </s:sequence> </s:complexType> </s:element> − <s:element name="BookHotelV2"> − <s:complexType> − <s:sequence> <s:element minOccurs="1" maxOccurs="1" name="recordLocatorId" type="s:int"/> <s:element minOccurs="1" maxOccurs="1" name="HotelID" type="s:int"/> <s:element minOccurs="1" maxOccurs="1" name="HotelRoomTypeID" type="s:int"/> <s:element minOccurs="1" maxOccurs="1" name="CheckIn" type="s:date"/> <s:element minOccurs="1" maxOccurs="1" name="CheckOut" type="s:date"/> <s:element minOccurs="0" maxOccurs="1" name="roomsInfo" type="tns:ArrayOfRoomReserveInfo"/> <s:element minOccurs="1" maxOccurs="1" name="paymentType" type="tns:PaymentTypes"/> <s:element minOccurs="0" maxOccurs="1" name="cci" type="tns:CreditCardInfo"/> <s:element minOccurs="0" maxOccurs="1" name="AgentRefNumber" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="ContactInfo" type="s:string"/> <s:element minOccurs="1" maxOccurs="1" name="RequestedPrice" type="s:decimal"/> <s:element minOccurs="1" maxOccurs="1" name="DeltaPrice" type="s:decimal"/> <s:element minOccurs="0" maxOccurs="1" name="Currency" type="s:string"/> <s:element minOccurs="1" maxOccurs="1" name="IsOnlyAvailable" type="s:boolean"/> </s:sequence> </s:complexType> </s:element> − <s:complexType name="ArrayOfRoomReserveInfo"> − <s:sequence> <s:element minOccurs="0" maxOccurs="unbounded" name="RoomReserveInfo" nillable="true" type="tns:RoomReserveInfo"/> </s:sequence> </s:complexType> − <s:complexType name="RoomReserveInfo"> − <s:sequence> <s:element minOccurs="1" maxOccurs="1" name="roomId" type="s:int"/> <s:element minOccurs="0" maxOccurs="1" name="contactPassenger" type="tns:GuestInfo"/> <s:element minOccurs="0" maxOccurs="1" name="selectedBoardBase" type="tns:BoardBaseInfo"/> <s:element minOccurs="0" maxOccurs="1" name="selectedSupplement" type="tns:ArrayOfSupplementInfo"/> <s:element minOccurs="1" maxOccurs="1" name="bedType" type="tns:BedTypes"/> <s:element minOccurs="0" maxOccurs="1" name="note" type="s:string"/> <s:element minOccurs="1" maxOccurs="1" name="AdultsNum" type="s:int"/> <s:element minOccurs="1" maxOccurs="1" name="ChildNum" type="s:int"/> <s:element minOccurs="0" maxOccurs="1" name="ChildAges" type="tns:ArrayOfInt"/> <s:element minOccurs="0" maxOccurs="1" name="occupId" type="s:string"/> </s:sequence> </s:complexType> − <s:element name="BookHotelV2Response"> − <s:complexType> − <s:sequence> − <s:element minOccurs="0" maxOccurs="1" name="BookHotelV2Result"> − <s:complexType> − <s:sequence> <s:any namespace="http://tourico.com/webservices/TWS_RGInfo.xsd"/> </s:sequence> </s:complexType> </s:element> </s:sequence> </s:complexType> </s:element> </s:schema> − <s:schema elementFormDefault="qualified" targetNamespace="http://tourico.com/travelservices/"> − <s:complexType name="LoginHeader"> − <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="username" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string"/> <s:element minOccurs="1" maxOccurs="1" name="culture" type="s1:Culture"/> <s:element minOccurs="0" maxOccurs="1" name="version" type="s:string"/> </s:sequence> <s:anyAttribute/> </s:complexType> − <s:simpleType name="Culture"> − <s:restriction base="s:string"> <s:enumeration value="None"/> <s:enumeration value="en_US"/> <s:enumeration value="zh_CN"/> <s:enumeration value="it_IT"/> <s:enumeration value="ja_JP"/> <s:enumeration value="de_DE"/> <s:enumeration value="fr_FR"/> <s:enumeration value="ru_RU"/> <s:enumeration value="pt_PT"/> <s:enumeration value="es_ES"/> <s:enumeration value="he_IL"/> <s:enumeration value="ko_KR"/> <s:enumeration value="pl_PL"/> <s:enumeration value="zh_TW"/> <s:enumeration value="nl_NL"/> </s:restriction> </s:simpleType> </s:schema> </wsdl:types> − <wsdl:message name="SearchHotelsSoapIn"> <wsdl:part name="parameters" element="tns:SearchHotels"/> </wsdl:message> − <wsdl:message name="SearchHotelsSoapOut"> <wsdl:part name="parameters" element="tns:SearchHotelsResponse"/> </wsdl:message> − <wsdl:message name="SearchHotelsLoginHeader"> <wsdl:part name="LoginHeader" element="tns:LoginHeader"/> </wsdl:message> − <wsdl:message name="SearchHotelsByIDSoapIn"> <wsdl:part name="parameters" element="tns:SearchHotelsByID"/> </wsdl:message> − <wsdl:message name="SearchHotelsByIDSoapOut"> <wsdl:part name="parameters" element="tns:SearchHotelsByIDResponse"/> </wsdl:message> − <wsdl:message name="SearchHotelsByIDLoginHeader"> <wsdl:part name="LoginHeader" element="tns:LoginHeader"/> </wsdl:message> − <wsdl:message name="CheckAvailabilityAndPricesSoapIn"> <wsdl:part name="parameters" element="tns:CheckAvailabilityAndPrices"/> </wsdl:message> − <wsdl:message name="CheckAvailabilityAndPricesSoapOut"> <wsdl:part name="parameters" element="tns:CheckAvailabilityAndPricesResponse"/> </wsdl:message> − <wsdl:message name="CheckAvailabilityAndPricesLoginHeader"> <wsdl:part name="LoginHeader" element="tns:LoginHeader"/> </wsdl:message> − <wsdl:message name="GetHotelDetailsSoapIn"> <wsdl:part name="parameters" element="tns:GetHotelDetails"/> </wsdl:message> − <wsdl:message name="GetHotelDetailsSoapOut"> <wsdl:part name="parameters" element="tns:GetHotelDetailsResponse"/> </wsdl:message> − <wsdl:message name="GetHotelDetailsLoginHeader"> <wsdl:part name="LoginHeader" element="tns:LoginHeader"/> </wsdl:message> − <wsdl:message name="BookHotelSoapIn"> <wsdl:part name="parameters" element="tns:BookHotel"/> </wsdl:message> − <wsdl:message name="BookHotelSoapOut"> <wsdl:part name="parameters" element="tns:BookHotelResponse"/> </wsdl:message> − <wsdl:message name="BookHotelLoginHeader"> <wsdl:part name="LoginHeader" element="tns:LoginHeader"/> </wsdl:message> − <wsdl:message name="BookHotelV2SoapIn"> <wsdl:part name="parameters" element="tns:BookHotelV2"/> </wsdl:message> − <wsdl:message name="BookHotelV2SoapOut"> <wsdl:part name="parameters" element="tns:BookHotelV2Response"/> </wsdl:message> − <wsdl:message name="BookHotelV2LoginHeader"> <wsdl:part name="LoginHeader" element="tns:LoginHeader"/> </wsdl:message> − <wsdl:portType name="HotelsServiceSoap"> − <wsdl:operation name="SearchHotels"> − <wsdl:documentation> Perform availability search for spesific destination </wsdl:documentation> <wsdl:input message="tns:SearchHotelsSoapIn"/> <wsdl:output message="tns:SearchHotelsSoapOut"/> </wsdl:operation> − <wsdl:operation name="SearchHotelsByID"> − <wsdl:documentation> Perform availability search for specific hotels;sHotels parameter contains semicolumn delimeted hotel ids </wsdl:documentation> <wsdl:input message="tns:SearchHotelsByIDSoapIn"/> <wsdl:output message="tns:SearchHotelsByIDSoapOut"/> </wsdl:operation> − <wsdl:operation name="CheckAvailabilityAndPrices"> − <wsdl:documentation> Perform availability search for specific hotels;sHotels parameter contains semicolumn delimeted hotel ids </wsdl:documentation> <wsdl:input message="tns:CheckAvailabilityAndPricesSoapIn"/> <wsdl:output message="tns:CheckAvailabilityAndPricesSoapOut"/> </wsdl:operation> − <wsdl:operation name="GetHotelDetails"> <wsdl:documentation>Returns full hotel description provided hotel id</wsdl:documentation> <wsdl:input message="tns:GetHotelDetailsSoapIn"/> <wsdl:output message="tns:GetHotelDetailsSoapOut"/> </wsdl:operation> − <wsdl:operation name="BookHotel"> − <wsdl:documentation> Create reservation(s) for selected rooms. Separate reservation created for each room </wsdl:documentation> <wsdl:input message="tns:BookHotelSoapIn"/> <wsdl:output message="tns:BookHotelSoapOut"/> </wsdl:operation> − <wsdl:operation name="BookHotelV2"> <wsdl:documentation>Create reservation(s) for selected rooms. </wsdl:documentation> <wsdl:input message="tns:BookHotelV2SoapIn"/> <wsdl:output message="tns:BookHotelV2SoapOut"/> </wsdl:operation> </wsdl:portType> − <wsdl:binding name="HotelsServiceSoap" type="tns:HotelsServiceSoap"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/> − <wsdl:operation name="SearchHotels"> <soap:operation soapAction="http://tourico.com/webservices/SearchHotels" style="document"/> − <wsdl:input> <soap:body use="literal"/> <soap:header message="tns:SearchHotelsLoginHeader" part="LoginHeader" use="literal"/> </wsdl:input> − <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> − <wsdl:operation name="SearchHotelsByID"> <soap:operation soapAction="http://tourico.com/webservices/SearchHotelsByID" style="document"/> − <wsdl:input> <soap:body use="literal"/> <soap:header message="tns:SearchHotelsByIDLoginHeader" part="LoginHeader" use="literal"/> </wsdl:input> − <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> − <wsdl:operation name="CheckAvailabilityAndPrices"> <soap:operation soapAction="http://tourico.com/webservices/CheckAvailabilityAndPrices" style="document"/> − <wsdl:input> <soap:body use="literal"/> <soap:header message="tns:CheckAvailabilityAndPricesLoginHeader" part="LoginHeader" use="literal"/> </wsdl:input> − <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> − <wsdl:operation name="GetHotelDetails"> <soap:operation soapAction="http://tourico.com/webservices/GetHotelDetails" style="document"/> − <wsdl:input> <soap:body use="literal"/> <soap:header message="tns:GetHotelDetailsLoginHeader" part="LoginHeader" use="literal"/> </wsdl:input> − <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> − <wsdl:operation name="BookHotel"> <soap:operation soapAction="http://tourico.com/webservices/BookHotel" style="document"/> − <wsdl:input> <soap:body use="literal"/> <soap:header message="tns:BookHotelLoginHeader" part="LoginHeader" use="literal"/> </wsdl:input> − <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> − <wsdl:operation name="BookHotelV2"> <soap:operation soapAction="http://tourico.com/webservices/BookHotelV2" style="document"/> − <wsdl:input> <soap:body use="literal"/> <soap:header message="tns:BookHotelV2LoginHeader" part="LoginHeader" use="literal"/> </wsdl:input> − <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> − <wsdl:binding name="HotelsServiceSoap12" type="tns:HotelsServiceSoap"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/> − <wsdl:operation name="SearchHotels"> <soap12:operation soapAction="http://tourico.com/webservices/SearchHotels" style="document"/> − <wsdl:input> <soap12:body use="literal"/> <soap12:header message="tns:SearchHotelsLoginHeader" part="LoginHeader" use="literal"/> </wsdl:input> − <wsdl:output> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> − <wsdl:operation name="SearchHotelsByID"> <soap12:operation soapAction="http://tourico.com/webservices/SearchHotelsByID" style="document"/> − <wsdl:input> <soap12:body use="literal"/> <soap12:header message="tns:SearchHotelsByIDLoginHeader" part="LoginHeader" use="literal"/> </wsdl:input> − <wsdl:output> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> − <wsdl:operation name="CheckAvailabilityAndPrices"> <soap12:operation soapAction="http://tourico.com/webservices/CheckAvailabilityAndPrices" style="document"/> − <wsdl:input> <soap12:body use="literal"/> <soap12:header message="tns:CheckAvailabilityAndPricesLoginHeader" part="LoginHeader" use="literal"/> </wsdl:input> − <wsdl:output> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> − <wsdl:operation name="GetHotelDetails"> <soap12:operation soapAction="http://tourico.com/webservices/GetHotelDetails" style="document"/> − <wsdl:input> <soap12:body use="literal"/> <soap12:header message="tns:GetHotelDetailsLoginHeader" part="LoginHeader" use="literal"/> </wsdl:input> − <wsdl:output> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> − <wsdl:operation name="BookHotel"> <soap12:operation soapAction="http://tourico.com/webservices/BookHotel" style="document"/> − <wsdl:input> <soap12:body use="literal"/> <soap12:header message="tns:BookHotelLoginHeader" part="LoginHeader" use="literal"/> </wsdl:input> − <wsdl:output> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> − <wsdl:operation name="BookHotelV2"> <soap12:operation soapAction="http://tourico.com/webservices/BookHotelV2" style="document"/> − <wsdl:input> <soap12:body use="literal"/> <soap12:header message="tns:BookHotelV2LoginHeader" part="LoginHeader" use="literal"/> </wsdl:input> − <wsdl:output> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> − <wsdl:service name="HotelsService"> − <wsdl:port name="HotelsServiceSoap" binding="tns:HotelsServiceSoap"> <soap:address location="http://demo.touricoholidays.com/ws/HotelsService.asmx"/> </wsdl:port> − <wsdl:port name="HotelsServiceSoap12" binding="tns:HotelsServiceSoap12"> <soap12:address location="http://demo.touricoholidays.com/ws/HotelsService.asmx"/> </wsdl:port> </wsdl:service> </wsdl:definitions> please help me im get the following error SoapFault exception: [soap:Server] System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> TravelService.CustomException.LoginFailedException: Login failed. -- View this message in context: http://www.nabble.com/error-while-passing-soap-header-tf4684062.html#a13384777 Sent from the Php - Soap mailing list archive at Nabble.com. -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php