What I need to do is create the xml
- Code: Select all
<soapenv:Body>
<req:FareSearchRQ>
<req:Date req:Qualifier="DEPARTURE">2013-12-07</req:Date>
</req:FareSearchRQ>
</soapenv:Body>
but I am having trouble.
I can either get
- Code: Select all
<req:Date>2013-12-07</req:Date>
or
- Code: Select all
<req:Date req:Qualifier="DEPARTURE"/>
In my php code to get this I create an array with like this
- Code: Select all
$params = array(
'FareSearchRQ' => array(
"Date" => array("Qualifier" => "DEPARTURE")
)
); //This creates the first
$params = array(
'FareSearchRQ' => array(
"Date" => "2013-12-07"
)
); //This creates the second
How would I create an array to create the xml shown above?

