# search error

**URL:** <https://discussions.flightaware.com/t/search-error/5068>\
**Category:** AeroAPI\
**Created:** [April 1, 2008, 11:02am UTC](https://discussions.flightaware.com/t/search-error/5068 "2008-04-01T11:02:43Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![prioritybags](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@prioritybags](https://discussions.flightaware.com/u/prioritybags)\
**Post date:** [April 1, 2008, 11:02am UTC](https://discussions.flightaware.com/t/search-error/5068/1 "2008-04-01T11:02:43Z")

</div>

I am getting this fault when doing a search

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

```

can someone help

```auto

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/](http://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] => 

```

)

```auto

```

---

<div class="post-metadata">

**Author:** ![mduell](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/mduell/32/115680_2.png) [@mduell](https://discussions.flightaware.com/u/mduell)\
**Post date:** [April 1, 2008, 11:58pm UTC](https://discussions.flightaware.com/t/search-error/5068/2 "2008-04-01T23:58:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![prioritybags](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@prioritybags](https://discussions.flightaware.com/u/prioritybags)\
**Post date:** [April 2, 2008, 12:57pm UTC](https://discussions.flightaware.com/t/search-error/5068/3 "2008-04-02T12:57:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wisam](https://avatars.discourse-cdn.com/v4/letter/w/df705f/32.png) [@wisam](https://discussions.flightaware.com/u/wisam)\
**Post date:** [October 1, 2009, 6:56pm UTC](https://discussions.flightaware.com/t/search-error/5068/4 "2009-10-01T18:56:04Z")

</div>

Hi, same error is happening to me, please advice

SOAP\_Fault Object ( [error\_message\_prefix] =\> [mode] =\> 1 [level] =\> 1024

```auto

 => 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
```

---

<div class="post-metadata">

**Author:** ![mduell](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/mduell/32/115680_2.png) [@mduell](https://discussions.flightaware.com/u/mduell)\
**Post date:** [October 1, 2009, 7:52pm UTC](https://discussions.flightaware.com/t/search-error/5068/5 "2009-10-01T19:52:15Z")

</div>

What was your query?

---

<div class="post-metadata">

**Author:** ![wisam](https://avatars.discourse-cdn.com/v4/letter/w/df705f/32.png) [@wisam](https://discussions.flightaware.com/u/wisam)\
**Post date:** [October 2, 2009, 1:05pm UTC](https://discussions.flightaware.com/t/search-error/5068/6 "2009-10-02T13:05:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mduell](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/mduell/32/115680_2.png) [@mduell](https://discussions.flightaware.com/u/mduell)\
**Post date:** [October 2, 2009, 1:28pm UTC](https://discussions.flightaware.com/t/search-error/5068/7 "2009-10-02T13:28:35Z")

</div>

You need to get a [FlightXML key](http://flightaware.com/commercial/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.

---

<div class="post-metadata">

**Author:** ![wisam](https://avatars.discourse-cdn.com/v4/letter/w/df705f/32.png) [@wisam](https://discussions.flightaware.com/u/wisam)\
**Post date:** [October 2, 2009, 1:33pm UTC](https://discussions.flightaware.com/t/search-error/5068/8 "2009-10-02T13:33:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mduell](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/mduell/32/115680_2.png) [@mduell](https://discussions.flightaware.com/u/mduell)\
**Post date:** [October 2, 2009, 3:56pm UTC](https://discussions.flightaware.com/t/search-error/5068/9 "2009-10-02T15:56:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![wisam](https://avatars.discourse-cdn.com/v4/letter/w/df705f/32.png) [@wisam](https://discussions.flightaware.com/u/wisam)\
**Post date:** [October 6, 2009, 4:19pm UTC](https://discussions.flightaware.com/t/search-error/5068/10 "2009-10-06T16:19:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dbaker](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/dbaker/32/97166_2.png) [@dbaker](https://discussions.flightaware.com/u/dbaker)\
**Post date:** [October 6, 2009, 4:25pm UTC](https://discussions.flightaware.com/t/search-error/5068/11 "2009-10-06T16:25:41Z")

</div>

> [@wisam](#):
>
> 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.
