help with soapvar and xml list

This is a discussion on help with soapvar and xml list within the PHP General forums, part of the PHP Programming Forums category; I'm trying to create a request with a list. Here is what the request should be: <?xml version=&...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-06-2007
Nathan Wheeler
 
Posts: n/a
Default help with soapvar and xml list

I'm trying to create a request with a list. Here is what the request
should be:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<OFSFAAByAirportPairPerHour xmlns="http://ws.oag.com">
<SecurityToken>string</SecurityToken>
<DepartureDateTime>string</DepartureDateTime>
<DepAirportCode>string</DepAirportCode>
<ArrAirportCode>string</ArrAirportCode>
* <CarrierCodeFilterList>
<CarrierCode>string</CarrierCode>
<CarrierCode>string</CarrierCode>
</CarrierCodeFilterList>*
<ServiceTypeIndicator>short</ServiceTypeIndicator>
<GMTLocalTimeIndicator>short</GMTLocalTimeIndicator>
<IncludeCodeShareDisclosure>boolean</IncludeCodeShareDisclosure>
<SchedStatusIndicator>short</SchedStatusIndicator>
<DataSource>short</DataSource>
<ResultXML>string</ResultXML>
</OFSFAAByAirportPairPerHour>
</soap:Body>
</soap:Envelope>

So I can get everything except the CarrierCodeFilterList right. How
would I use SoapVar or something else to create that? Here is an excerpt
of what I'm using for the rest:

$params->SecurityToken = new SoapVar($sectoken, XSD_STRING, 'string',
"http://www.w3.org/2001/XMLSchema");
$params->DepartureDateTime = new SoapVar('2007-06-06', XSD_STRING,
'string', "http://www.w3.org/2001/XMLSchema");
$params->DepAirportCode = new SoapVar('BOI', XSD_STRING, 'string',
"http://www.w3.org/2001/XMLSchema");
$client = new SoapClient('file.wsdl');
$airresult = $client->OFSByAirportPairPerHour($air);
$airport = $airresult->OFSByAirportPairPerHourResult;

It gives me an error about the specified type was not recognized for the
CarrierCodeFilterList so I can't even use __getLastRequest.

Thanks!
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:20 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0