search error

I am getting this fault when doing a search

$result = $soap->Search("-destination KIAH",10,0);	

can someone help



soap_fault Object
(
    [error_message_prefix] => 
    [mode] => 1
    [level] => 1024
    

=> NONE
[message] => wrong # args: type InFlightAircraftStruct contains "
ident string
prefix string
type string
suffix string
origin string
destination string
timeout string
timestamp int
firstPositionTime int
longitude float
latitude float
groundspeed int
altitude int
heading int
altitudeStatus string
updateType string
altitudeChange string
"
[userinfo] => stdClass Object
(
[errorInfo] => stdClass Object
(
[errorCode] => NONE
[stackTrace] => wrong # args: type InFlightAircraftStruct contains "
ident string
prefix string
type string
suffix string
origin string
destination string
timeout string
timestamp int
firstPositionTime int
longitude float
latitude float
groundspeed int
altitude int
heading int
altitudeStatus string
updateType string
altitudeChange string
"
while executing
“insert_value $d_elt [rpcvar “$itemtype$final” $elt]”
(procedure “insert_value” line 116)
invoked from within
“insert_value $d_elt [rpcvar $ti($eltname) $eltvalue]”
(procedure “SOAP::insert_value” line 175)
invoked from within
“SOAP::insert_value $retnode $result”
(procedure “SOAP::reply” line 17)
invoked from within
“SOAP::reply [dom::DOMImplementation create] $methodNamespace “${methodName}Response” $msg”
)

    )

[backtrace] => Array
    (
        [0] => Array
            (
                [file] => C:\PHP\PEAR\SOAP\Fault.php
                [line] => 49
                [function] => pear_error
                [class] => pear_error
                [type] => ::
                [args] => Array
                    (
                        [0] => wrong # args: type InFlightAircraftStruct contains "

ident string
prefix string
type string
suffix string
origin string
destination string
timeout string
timestamp int
firstPositionTime int
longitude float
latitude float
groundspeed int
altitude int
heading int
altitudeStatus string
updateType string
altitudeChange string
"
[1] => NONE
[2] =>
[3] =>
[4] => stdClass Object
(
[errorInfo] => stdClass Object
(
[errorCode] => NONE
[stackTrace] => wrong # args: type InFlightAircraftStruct contains "
ident string
prefix string
type string
suffix string
origin string
destination string
timeout string
timestamp int
firstPositionTime int
longitude float
latitude float
groundspeed int
altitude int
heading int
altitudeStatus string
updateType string
altitudeChange string
"
while executing
“insert_value $d_elt [rpcvar “$itemtype$final” $elt]”
(procedure “insert_value” line 116)
invoked from within
“insert_value $d_elt [rpcvar $ti($eltname) $eltvalue]”
(procedure “SOAP::insert_value” line 175)
invoked from within
“SOAP::insert_value $retnode $result”
(procedure “SOAP::reply” line 17)
invoked from within
“SOAP::reply [dom::DOMImplementation create] $methodNamespace “${methodName}Response” $msg”
)

                            )

                    )

            )

        [1] => Array
            (
                [file] => C:\PHP\PEAR\SOAP\Base.php
                [line] => 201
                [function] => soap_fault
                [class] => soap_fault
                [type] => ->
                [args] => Array
                    (
                        [0] => wrong # args: type InFlightAircraftStruct contains "

ident string
prefix string
type string
suffix string
origin string
destination string
timeout string
timestamp int
firstPositionTime int
longitude float
latitude float
groundspeed int
altitude int
heading int
altitudeStatus string
updateType string
altitudeChange string
"
[1] => NONE
[2] =>
[3] => stdClass Object
(
[errorInfo] => stdClass Object
(
[errorCode] => NONE
[stackTrace] => wrong # args: type InFlightAircraftStruct contains "
ident string
prefix string
type string
suffix string
origin string
destination string
timeout string
timestamp int
firstPositionTime int
longitude float
latitude float
groundspeed int
altitude int
heading int
altitudeStatus string
updateType string
altitudeChange string
"
while executing
“insert_value $d_elt [rpcvar “$itemtype$final” $elt]”
(procedure “insert_value” line 116)
invoked from within
“insert_value $d_elt [rpcvar $ti($eltname) $eltvalue]”
(procedure “SOAP::insert_value” line 175)
invoked from within
“SOAP::insert_value $retnode $result”
(procedure “SOAP::reply” line 17)
invoked from within
“SOAP::reply [dom::DOMImplementation create] $methodNamespace “${methodName}Response” $msg”
)

                            )

                        [4] => 
                        [5] => 
                    )

            )

        [2] => Array
            (
                [file] => C:\PHP\PEAR\SOAP\Client.php
                [line] => 608
                [function] => _raisesoapfault
                [class] => webservice_directflight_directflightsoap
                [type] => ->
                [args] => Array
                    (
                        [0] => wrong # args: type InFlightAircraftStruct contains "

ident string
prefix string
type string
suffix string
origin string
destination string
timeout string
timestamp int
firstPositionTime int
longitude float
latitude float
groundspeed int
altitude int
heading int
altitudeStatus string
updateType string
altitudeChange string
"
[1] => stdClass Object
(
[errorInfo] => stdClass Object
(
[errorCode] => NONE
[stackTrace] => wrong # args: type InFlightAircraftStruct contains "
ident string
prefix string
type string
suffix string
origin string
destination string
timeout string
timestamp int
firstPositionTime int
longitude float
latitude float
groundspeed int
altitude int
heading int
altitudeStatus string
updateType string
altitudeChange string
"
while executing
“insert_value $d_elt [rpcvar “$itemtype$final” $elt]”
(procedure “insert_value” line 116)
invoked from within
“insert_value $d_elt [rpcvar $ti($eltname) $eltvalue]”
(procedure “SOAP::insert_value” line 175)
invoked from within
“SOAP::insert_value $retnode $result”
(procedure “SOAP::reply” line 17)
invoked from within
“SOAP::reply [dom::DOMImplementation create] $methodNamespace “${methodName}Response” $msg”
)

                            )

                        [2] => 
                        [3] => NONE
                    )

            )

        [3] => Array
            (
                [file] => C:\PHP\PEAR\SOAP\Client.php
                [line] => 577
                [function] => __decoderesponse
                [class] => webservice_directflight_directflightsoap
                [type] => ->
                [args] => Array
                    (
                        [0] => soap_value Object
                            (
                                [value] => Array
                                    (
                                        [0] => soap_value Object
                                            (
                                                [value] => NONE
                                                [name] => faultcode
                                                [type] => string
                                                [namespace] => [schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)
                                                [type_namespace] => 
                                                [attributes] => Array
                                                    (
                                                    )

                                                [arrayType] => 
                                                [options] => Array
                                                    (
                                                    )

                                                [nqn] => qname Object
                                                    (
                                                        [name] => faultcode
                                                        [ns] => 
                                                        [namespace] => [schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)
                                                    )

                                                [tqn] => qname Object
                                                    (
                                                        [name] => string
                                                        [ns] => 
                                                        [namespace] => 
                                                    )

                                                [type_prefix] => 
                                            )

                                        [1] => soap_value Object
                                            (
                                                [value] => wrong # args: type InFlightAircraftStruct contains "

ident string
prefix string
type string
suffix string
origin string
destination string
timeout string
timestamp int
firstPositionTime int
longitude float
latitude float
groundspeed int
altitude int
heading int
altitudeStatus string
updateType string
altitudeChange string
"
[name] => faultstring
[type] => string
[namespace] => schemas.xmlsoap.org/soap/envelope/
[type_namespace] =>
[attributes] => Array
(
)

                                                [arrayType] => 
                                                [options] => Array
                                                    (
                                                    )

                                                [nqn] => qname Object
                                                    (
                                                        [name] => faultstring
                                                        [ns] => 
                                                        [namespace] => [schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)
                                                    )

                                                [tqn] => qname Object
                                                    (
                                                        [name] => string
                                                        [ns] => 
                                                        [namespace] => 
                                                    )

                                                [type_prefix] => 
                                            )

                                        [2] => soap_value Object
                                            (
                                                [value] => Array
                                                    (
                                                        [0] => soap_value Object
                                                            (
                                                                [value] => Array
                                                                    (
                                                                        [0] => soap_value Object
                                                                            (
                                                                                [value] => NONE
                                                                                [name] => errorCode
                                                                                [type] => string
                                                                                [namespace] => urn:FlightAwareSOAP-ErrorInfo
                                                                                [type_namespace] => 
                                                                                [attributes] => Array
                                                                                    (
                                                                                    )

                                                                                [arrayType] => 
                                                                                [options] => Array
                                                                                    (
                                                                                    )

                                                                                [nqn] => qname Object
                                                                                    (
                                                                                        [name] => errorCode
                                                                                        [ns] => 
                                                                                        [namespace] => urn:FlightAwareSOAP-ErrorInfo
                                                                                    )

                                                                                [tqn] => qname Object
                                                                                    (
                                                                                        [name] => string
                                                                                        [ns] => 
                                                                                        [namespace] => 
                                                                                    )

                                                                                [type_prefix] => 
                                                                            )

                                                                        [1] => soap_value Object
                                                                            (
                                                                                [value] => wrong # args: type InFlightAircraftStruct contains "

ident string
prefix string
type string
suffix string
origin string
destination string
timeout string
timestamp int
firstPositionTime int
longitude float
latitude float
groundspeed int
altitude int
heading int
altitudeStatus string
updateType string
altitudeChange string
"
while executing
“insert_value $d_elt [rpcvar “$itemtype$final” $elt]”
(procedure “insert_value” line 116)
invoked from within
“insert_value $d_elt [rpcvar $ti($eltname) $eltvalue]”
(procedure “SOAP::insert_value” line 175)
invoked from within
“SOAP::insert_value $retnode $result”
(procedure “SOAP::reply” line 17)
invoked from within
“SOAP::reply [dom::DOMImplementation create] $methodNamespace “${methodName}Response” $msg”
[name] => stackTrace
[type] => string
[namespace] => urn:FlightAwareSOAP-ErrorInfo
[type_namespace] =>
[attributes] => Array
(
)

                                                                                [arrayType] => 
                                                                                [options] => Array
                                                                                    (
                                                                                    )

                                                                                [nqn] => qname Object
                                                                                    (
                                                                                        [name] => stackTrace
                                                                                        [ns] => 
                                                                                        [namespace] => urn:FlightAwareSOAP-ErrorInfo
                                                                                    )

                                                                                [tqn] => qname Object
                                                                                    (
                                                                                        [name] => string
                                                                                        [ns] => 
                                                                                        [namespace] => 
                                                                                    )

                                                                                [type_prefix] => 
                                                                            )

                                                                    )

                                                                [name] => errorInfo
                                                                [type] => Struct
                                                                [namespace] => urn:FlightAwareSOAP-ErrorInfo
                                                                [type_namespace] => 
                                                                [attributes] => Array
                                                                    (
                                                                    )

                                                                [arrayType] => 
                                                                [options] => Array
                                                                    (
                                                                    )

                                                                [nqn] => qname Object
                                                                    (
                                                                        [name] => errorInfo
                                                                        [ns] => 
                                                                        [namespace] => urn:FlightAwareSOAP-ErrorInfo
                                                                    )

                                                                [tqn] => qname Object
                                                                    (
                                                                        [name] => Struct
                                                                        [ns] => 
                                                                        [namespace] => 
                                                                    )

                                                                [type_prefix] => 
                                                            )

                                                    )

                                                [name] => detail
                                                [type] => Struct
                                                [namespace] => [schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)
                                                [type_namespace] => 
                                                [attributes] => Array
                                                    (
                                                    )

                                                [arrayType] => 
                                                [options] => Array
                                                    (
                                                    )

                                                [nqn] => qname Object
                                                    (
                                                        [name] => detail
                                                        [ns] => 
                                                        [namespace] => [schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)
                                                    )

                                                [tqn] => qname Object
                                                    (
                                                        [name] => Struct
                                                        [ns] => 
                                                        [namespace] => 
                                                    )

                                                [type_prefix] => 
                                            )

                                    )

                                [name] => Fault
                                [type] => Struct
                                [namespace] => [schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)
                                [type_namespace] => 
                                [attributes] => Array
                                    (
                                    )

                                [arrayType] => 
                                [options] => Array
                                    (
                                    )

                                [nqn] => qname Object
                                    (
                                        [name] => Fault
                                        [ns] => 
                                        [namespace] => [schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)
                                    )

                                [tqn] => qname Object
                                    (
                                        [name] => Struct
                                        [ns] => 
                                        [namespace] => 
                                    )

                                [type_prefix] => 
                            )

                    )

            )

        [4] => Array
            (
                [file] => C:\PHP\PEAR\SOAP\Client.php
                [line] => 312
                [function] => __parse
                [class] => webservice_directflight_directflightsoap
                [type] => ->
                [args] => Array
                    (
                        [0] => 

NONEwrong # args: type InFlightAircraftStruct contains "
ident string
prefix string
type string
suffix string
origin string
destination string
timeout string
timestamp int
firstPositionTime int
longitude float
latitude float
groundspeed int
altitude int
heading int
altitudeStatus string
updateType string
altitudeChange string
"NONEwrong # args: type InFlightAircraftStruct contains "
ident string
prefix string
type string
suffix string
origin string
destination string
timeout string
timestamp int
firstPositionTime int
longitude float
latitude float
groundspeed int
altitude int
heading int
altitudeStatus string
updateType string
altitudeChange string
"
while executing
“insert_value $d_elt [rpcvar “$itemtype$final” $elt]”
(procedure “insert_value” line 116)
invoked from within
“insert_value $d_elt [rpcvar $ti($eltname) $eltvalue]”
(procedure “SOAP::insert_value” line 175)
invoked from within
“SOAP::insert_value $retnode $result”
(procedure “SOAP::reply” line 17)
invoked from within
“SOAP::reply [dom::DOMImplementation create] $methodNamespace “${methodName}Response” $msg”
[1] => UTF-8
[2] =>
)

            )

        [5] => Array
            (
                [file] => C:\PHP\PEAR\SOAP\WSDL.php(614) : eval()'d code
                [line] => 38
                [function] => call
                [class] => webservice_directflight_directflightsoap
                [type] => ->
                [args] => Array
                    (
                        [0] => Search
                        [1] => Array
                            (
                                [query] => -destination KIAH
                                [howMany] => 10
                                [offset] => 0
                            )

                        [2] => Array
                            (
                                [namespace] => FlightAwareDirectFlight
                                [soapaction] => FlightAwareDirectFlight
                                [style] => rpc
                                [use] => encoded
                            )

                    )

            )

        [6] => Array
            (
                [file] => D:\web\pb\flightaware\allairports.php
                [line] => 14
                [function] => search
                [class] => webservice_directflight_directflightsoap
                [type] => ->
                [args] => Array
                    (
                        [0] => -destination KIAH
                        [1] => 10
                        [2] => 0
                    )

            )

    )

[callback] => 

)


Please try running your query again. This may have been a bug on our side.

Hey mduell seems like it started working now. Thanks a lot.

Hi, same error is happening to me, please advice

SOAP_Fault Object ( [error_message_prefix] => [mode] => 1 [level] => 1024


 => HTTP [message] => 
Server Error
Thu Oct 01 14:46:52 EDT 2009
The server encountered an internal error when handling your page. 

Tcl-Webserver/3.5.1 May 27, 2004
Tcl version 8.4.18 

    


    

Send email to [webmaster@juliet.flightaware.com](mailto:webmaster@juliet.flightaware.com). 

Home [userinfo] => [backtrace] => Array ( [0] => Array ( [file] => /home4/widgetdi/public_html/SOAP/Fault.php [line] => 64 [function] => PEAR_Error [class] => PEAR_Error [type] => -> [args] => Array ( [0] => 

Server Error
Thu Oct 01 14:46:52 EDT 2009
The server encountered an internal error when handling your page. 

Tcl-Webserver/3.5.1 May 27, 2004
Tcl version 8.4.18 

    


    

Send email to [webmaster@juliet.flightaware.com](mailto:webmaster@juliet.flightaware.com). 

Home [1] => HTTP [2] => [3] => [4] => ) ) [1] => Array ( [file] => /home4/widgetdi/public_html/SOAP/Base.php [line] => 130 [function] => SOAP_Fault [class] => SOAP_Fault [object] => SOAP_Fault Object *RECURSION* [type] => -> [args] => Array ( [0] => 

Server Error
Thu Oct 01 14:46:52 EDT 2009

What was your query?

Here is the whole file

<?php

    require_once('SOAP/Client.php');

    $DirectFlight_Authentication = array(
             'user'          => 'wisam',
            'pass'          => 'XXXXXXXXXXXXXXXXXXXX',
    );

$wsdl_url = 'http://flightaware.com/commercial/flightxml/data/wsdl1.xml';
$WSDL = new SOAP_WSDL($wsdl_url,$DirectFlight_Authentication);
$soap = $WSDL->getProxy();

$result = $soap->Enroute('KIAH',10,'airline',0);

   print_r ($result); 


php?>

My membership is not paid yet, but I do not think that is the reason behind the error

You need to get a FlightXML key and use that as the password for the FlightXML service. There’s no initial charge but we need a credit card on file to cover the queries you make over the next month.

I got one but I used XXXXX in the example because I did not want to post it in public, however here it is

Activation Key:	0b42fd289f5a86a700b7655d9215b9c430356046

note:
I did not pay money for it, I got it just after I signed up, please let me know if I need and how to pay in order to activate it.

The activation key is for activating your FlightAware account; the FlightXML key is seperate. You need to obtain a FlightXML key at the link I provided.

I tried to pay more than one time and using different credit cards it did not work, I get this massage:
The address doenst match the address on your credit card (I am sure I am writing the right address)

Do you accept Paypal?? I just want to test it.

Please call customer service at 1-800-713-8570 between 7a-7p ET and they can help you with your billing issue.