Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6114571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:59:25+00:00 2026-05-23T14:59:25+00:00

This is my xml file <OTA_HotelDestinationsRQ Version=1.0> <POS> <Source> <UniqueId Id=login:pass /> </Source> </POS>

  • 0

This is my xml file

 <OTA_HotelDestinationsRQ Version="1.0">
       <POS>
        <Source>
            <UniqueId Id="login:pass" />
        </Source>
       </POS>
      <DestinationInformation LanguageCode="EN" />
</OTA_HotelDestinationsRQ>

I have converted this xml into an array and i wrote client request in php. It is giving Invalid XML as a response. Could you please help me.

$ary=array(
     "OTA_HotelDestinationsRQ"=>array("Version"=>"1.0"),
     "POS"=>array(
          "Source"=>array(
               "UniqueId"=>array("Id"=>"login:pass")
          )
     ),
     "DestinationInformation"=>array("Version"=>"EN")
);

$wsdl="http://acceptance.travelstreet.com/hotelsv3/components/Hotels_DestinationsWS.cfc?wsdl";
$client=new SoapClient($wsdl,array('trace' => 1));
try
{
     $res=$client->OTA_HotelDestinationsRQ($ary);
     //$res=$client->__call("OTA_HotelDestinationsRQ",array($ary));
}
catch (SoapFault $Exception)
{
     echo 'SoapFault Exception';
}
echo $res;
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:59:25+00:00Added an answer on May 23, 2026 at 2:59 pm

    Do you have an XML doctype defined at the top of your request?

    I also would suggest generating your SOAP request in a more object-oriented way. You can plug your soap URL into apigenerator.com and using the SOAPClient class it generates.

    Then you could make a request class with all the paramaters from the web service like:

    class mySOAPRequest
    {
    public function makeRequestObject($param1, $param2)
    {
    $this->param1 = $param1;
    $this->param2 = $param2;
    }
    }
    

    And to make the actual soap request, you would generate a new mySOAPRequest object and pass it into a new object of the class from API Generator, like:

    $mySoapConnection = new SoapClientFromAPIGenerator();
    $mySoapRequest = new mySoapRequest();
    
    $mySoapConnection->whateverSOAPMethod($mySoapReqest->makeRequestObject($param1, $param2));
    

    That’s how I normally build SOAP requests

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this xml file <?xml version=1.0 encoding=UTF-8?> <bo:C837ClaimParent xsi:type=bo:C837ClaimParent xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:bo=http://somelongpathHere/process/bo> <claimAux> ...
I have this simple XML file : <?xml version=1.0 encoding=utf-8 ?> <Artists> <artist artistId=1>
I have this XML at http://localhost/file.xml : <?xml version=1.0 encoding=utf-8?> <val:Root xmlns:val=http://www.hw-group.com/XMLSchema/ste/values.xsd> <Agent> <Version>2.0.3</Version>
I have this xml file: <?xml version=1.0 encoding=UTF-8?> <Favorites> <favorite id=1> <title>My first favorite</title>
I have a xml file like this <?xml version=1.0 encoding=UTF-8?> <gallery > <gallerydata> <galleryname>
I have xml file like this <?xml version=1.0 encoding=UTF-8?> <specification xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:noNamespaceSchemaLocation=file://Desktop/normal.xsd> <university> <refstr>bdvl_te_skrm_stc</refstr>
I Have this XML File <?xml version=1.0 standalone=yes?> <Root> <Object> <referenceName>People</referenceName> <query>select * from
i have this xml file <?xml version=1.0 encoding=utf-8?> <CRM> <Unit ID=1 Name=آذربایجان شرقی> <city
I have this XML file that I parse into its elements and create a
I have this XML file which I parse into an ArrayList In this ArrayList

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.