Note that there are some explanatory texts on larger screens.

plurals
  1. POSoap request is not working
    primarykey
    data
    text
    <pre><code>//PHP CODE &lt;?php $xmlData='&lt;OTA_HotelDestinationsRQ Version="1.0"&gt; &lt;POS&gt; &lt;Source&gt; &lt;UniqueId Id="user:password" /&gt; &lt;/Source&gt; &lt;/POS&gt; &lt;DestinationInformation LanguageCode="EN" /&gt; &lt;/OTA_HotelDestinationsRQ&gt;'; $wsdl="http://acceptance.travelstreet.com/hotelsv3/components/Hotels_DestinationsWS.cfc?wsdl"; $client=new SoapClient($wsdl,array('trace' =&gt; 1)); try { $res=$client-&gt;__call("OTA_HotelDestinationsRQ",array($xmlData)); } catch (SoapFault $Exception) { echo 'SoapFault Exception'; } echo $res; ?&gt; </code></pre> <p>It is showing Internal Server error</p> <p>Later on i have changed above xml into array using xml2array class and i kept the result in one variable like</p> <p><code>$iArray=xml2array($xmlData);</code> Using this i have coded like:</p> <pre><code>&lt;?php $xmlData='&lt;OTA_HotelDestinationsRQ Version="1.0"&gt; &lt;POS&gt; &lt;Source&gt; &lt;UniqueId Id="user:password" /&gt; &lt;/Source&gt; &lt;/POS&gt; &lt;DestinationInformation LanguageCode="EN" /&gt; &lt;/OTA_HotelDestinationsRQ&gt;'; $wsdl="http://acceptance.travelstreet.com/hotelsv3/components/Hotels_DestinationsWS.cfc?wsdl"; $client=new SoapClient($wsdl,array('trace' =&gt; 1)); try { $res=$client-&gt;__call("OTA_HotelDestinationsRQ",$iArray); // (or) also check with bellow statement $res=$client-&gt;OTA_HotelDestinationsRQ($iArray); } catch (SoapFault $Exception) { echo 'SoapFault Exception'; } echo $res; ?&gt; </code></pre> <p>It is showing Invalid Xml error</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload