Loading ...
Sorry, an error occurred while loading the content.

Help with ns

Expand Messages
  • Luis
    Hi, How can I obtain a xml output like this:
    Message 1 of 1 , Feb 20, 2008
    • 0 Attachment
      Hi,

      How can I obtain a xml output like this:

      <soap:Body>
      <OTA_HotelDescriptiveInfoRQ
      xmlns="http://www.opentravel.org/OTA/2003/05" EchoToken="123456"
      PrimaryLangID="ES">
      <INFO>
      Other_soap_data_info ...
      </INFO>
      </OTA_HotelDescriptiveInfoRQ>
      </soap:Body>


      In my perl script I wrote this:

      $xml_soap = SOAP::Data->name('OTA_HotelDescriptiveInfoRQ')
      ->attr({'EchoToken'=>'123456',
      'PrimaryLangID'=>'ES'})
      ->value($other_soap_data_info);
      $soap -> ns('http://www.opentravel.org/OTA/2003/05');
      $soap->OTA_HotelDescriptiveInfoRQ( $xml_soap );

      But I have this:

      <soap:Body>
      <OTA_HotelDescriptiveInfoRQ
      xmlns="http://www.opentravel.org/OTA/2003/05">
      <INFO>
      Other_soap_data_info ...
      </INFO>
      </OTA_HotelDescriptiveInfoRQ>
      </soap:Body>
    Your message has been successfully submitted and would be delivered to recipients shortly.