Hi,
I'm trying to add a namespace to the SOAP Body and Header.
I send the request:
<?xml version="1.0" encoding="utf-8" ?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Body>
<n1:Air_MultiAvailability xmlns:n1="http://my.url.com/SAR_07">
But I would like to send:
<?xml version="1.0" encoding="utf-8" ?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Header xmlns="http://webservices.amadeus.com/definitions
"></soap:Header>
<env:Body xmlns="http://my.url.com/SAR_07">
<Air_MultiAvailability>
I have tested the last one and it works.
So I need several things:
_add namespaces to the Header and Body tags,
_plus the Header tag is empty, it does not contain any element (I have seen
lots of example that add element to the header but not just an empty
header):
<soap:Header xmlns="http://webservices.amadeus.com/definitions
"></soap:Header>
Thanks for any help.
···
--
David ALPHEN