I'm attempting to use SOAPClient to query the NOAA SOAP API for some specific information. A typical query to the service goes something like this, according to this blog post:
$client = new SoapClient('http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl#NDFDgen');
$result = $client->NDFDgen(40.7893,-96.6938,'glance','2007-04-20T00:00','2007-04-21T00:00',NULL);
Nice and easy. However, taking a look at the documentation shows that the last param. can take an array of booleans that is sent to the server to turn on specific things in the response. When done correctly, the query ends up looking like this.
So of course, I try something like...
$client = new SoapClient('http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl#NDFDgen');
$result = $client->NDFDgen(40.7893,-96.6938,'time-series','2007-04-20T00:00','2007-04-21T00:00', array('mint' => 1, 'maxt' => 1));
Notice that I also had to change param 3 to 'time-series', as 'glance' simply hardcodes what it returns (ignoring the fifth param completely). In any case the above code causes the server sends back a blank response. I've tried various other things in that sixth param with no luck.
So, what's the big idea? How do I give the API an 'array of booleans' like it expects?