Comparing the debug output (which uses var_dump) of
["BoundingRectangle"]=>
array(2) {
["SouthWest"]=>
array(2) {
["Latitude"]=>
NULL
["Longitude"]=>
NULL
}
["NorthEast"]=>
array(2) {
["Latitude"]=>
NULL
["Longitude"]=>
NULL
}
}
with the code snippet
$view = array(
'BoundingRectangle' => array(
'SouthWest' => array(
'Latitude' => getLat($swLatLong), //exctract latitude
...
'Longitude' => getLong($swLatLong)
),
'NorthEast' => array(
'Latitude' => getLat($neLatLong),
'Longitude' => getLong($neLatLong)
)
)
);
I believe that getLat and getLong are returning NULL. When NuSOAP serializes
the request, the NULL values cause it to omit the 'Latitude' and 'Longitude'
elements.
You say
> I checked the
> buildMapByBoundingRectangle() function and we do have the correct values for
> SouthWest and NorthEast.
>
> What is the correct way of building the arrays so that the parser can find
> all the values?
How do you know you have the correct values for SouthWest and NorthEast? Have
you done a var_dump of $map or $mapSpecOptions before the GetMap call? The
debugging shows me that the parameter you are passing to GetMap has the right
structure. The only problem is the NULL values for latitude and longitude.
Scott Nichol
Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message -----
From: "Johan Hammar" <johan.hammar@xxxxxxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, October 07, 2004 2:14 AM
Subject: [Nusoap-general] Re: Problems with mappoint and complex types
>
> " You specifically say "we see that the sent request has the correct
> parameters but no
> " values". Are you referring to this XML snippet?
>
> " <BoundingRectangle><Southwest/><Northeast/></BoundingRectangle>
>
> Yes, that's the one.
>
> " Otherwise, the parameters you created seem to be in the request, I think.
>
> " From the debug, the reason the Southwest and Northwest elements above are
> empty is that the
> " latitude and longitude values for each are NULL. Here is the dump of the
> parameter in the
> " debugging:
>
> The problem still exist. I don't know how to construct the arrays. I checked
> the
> buildMapByBoundingRectangle() function and we do have the correct values for
> SouthWest and NorthEast.
>
> What is the correct way of building the arrays so that the parser can find
> all the values?
>
> " If there are other problems you believe you see with the request message,
> please let me
> " know.
>
> I also tried your nusoap.php file and no results were returned from
> FindAddress(). This works with nusoap 0.6.7.
>
> Thanks,
> Johan Hammar
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Nusoap-general mailing list
> Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/nusoap-general
>
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
|