ArrayOfMapView type
section .....
- <s:complexType
name="ArrayOfMapView">
- <s:sequence>
<s:element
minOccurs="0" maxOccurs="unbounded" name="MapView" nillable="true"
type="s0:MapView" />
</s:sequence>
</s:complexType>
MapView type
section ..... i
think.
-
<s:complexType name="ViewByScale">
-
<s:complexContent mixed="false">
- <s:extension
base="s0:MapView">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" default="0" name="MapScale"
type="s:double" />
<s:element minOccurs="0" maxOccurs="1"
name="CenterPoint" type="s0:LatLong" />
</s:sequence>
</s:extension>
</s:complexContent>
</s:complexType>
<s:complexType name="MapView" abstract="true"
/>
- <s:complexType name="ViewByBoundingLocations">
-
<s:complexContent mixed="false">
- <s:extension
base="s0:MapView">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Locations"
type="s0:ArrayOfLocation" />
</s:sequence>
</s:extension>
</s:complexContent>
</s:complexType>
.................
- <s:complexType name="ViewByBoundingRectangle">
-
<s:complexContent mixed="false">
- <s:extension
base="s0:MapView">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="BoundingRectangle"
type="s0:LatLongRectangle" />
</s:sequence>
</s:extension>
</s:complexContent>
</s:complexType>
............
- <s:complexType name="ViewByHeightWidth">
-
<s:complexContent mixed="false">
- <s:extension
base="s0:MapView">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" default="0" name="Height"
type="s:double" />
<s:element minOccurs="0" maxOccurs="1"
default="0" name="Width" type="s:double" />
<s:element
minOccurs="0" maxOccurs="1" name="CenterPoint" type="s0:LatLong" />
</s:sequence>
</s:extension>
</s:complexContent>
</s:complexType>
How does one build an
array on the 'MapView' type section when its
references in three place. I checked a dotnet applicaiton and its using the
"Viewbyscale" but I tried this code and got an "xml errors" anyone
have any ideas?
sent soap msg error:
<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:si="http://soapinterop.org/xsd"><SOAP-ENV:Body><GetMap
xmlns="http://s.mappoint.net/mappoint-30/"><specification><DataSourceName>MapPoint.NA</DataSourceName><HighlightedEntityIDs><int>0</int></HighlightedEntityIDs><Options><RouteHighlightColor>DefaultColor</RouteHighlightColor><ConstructionDelayHighlightColor>DefaultColor</ConstructionDelayHighlightColor><ConstructionClosureHighlightColor>DefaultColor</ConstructionClosureHighlightColor><FontSize>Smaller</FontSize><Format><MimeType>image/gif</MimeType><Height>500</Height><Width>500</Width></Format><IsOverviewMap>true</IsOverviewMap><ReturnType>ReturnUrl</ReturnType><PanHorizontal>0</PanHorizontal><PanVertical>0</PanVertical><Style>DefaultStyle</Style><Zoom>1</Zoom></Options><Pushpins><Pushpin><IconDataSource>MapPoint.Icons</IconDataSource><IconName>0</IconName><Label>CenterPoint</Label><LatLong><Latitude>59.0399093</Latitude><Longitude>-158.4504713</Longitude></LatLong><PinID>pin0</PinID><ReturnsHotArea>true</ReturnsHotArea><LabelNearbyRoads>true</LabelNearbyRoads></Pushpin></Pushpins>
<Views><MapView></MapView></Views></specification></GetMap></SOAP-ENV:Body></SOAP-ENV:Envelope>
...................
my code
$LatLong = array( 'Latitude' => 59.0399093
,'Longitude' => -158.4504713);
$MapScale = array('MapScale' =>
20000,'CenterPoint' => $LatLong);
$MapView = array('MapView' =>
$MapScale);
$ArrayOfMapView = array('MapView' =>
$MapScale);
$Pushpin = array(
'IconDataSource' => 'MapPoint.Icons',
'IconName'
=>'0',
'Label' =>'CenterPoint',
'LatLong' =>$LatLong,
'PinID' =>'pin0',
'ReturnsHotArea'=>
'FALSE',
'LabelNearbyRoads' => 'FALSE'
);
$ArrayOfPushpin = array('Pushpin' =>
$Pushpin);
$ImageFormat = array( 'MimeType' =>
'image/gif',
'Height' => 500,
'Width'
=> 500 );
$MapOptions = array(
'RouteHighlightColor' =>
'DefaultColor',
'ConstructionDelayHighlightColor' =>
'DefaultColor',
'ConstructionClosureHighlightColor' =>
'DefaultColor',
'FontSize' =>
'Smaller',
'Format' =>
$ImageFormat,
'IsOverviewMap' =>
'FALSE',
'ReturnType' =>
'ReturnUrl',
'PanHorizontal' =>
0.0,
'PanVertical' =>
0.0,
'Style' =>
'DefaultStyle',
'Zoom' => 1 );
$HighlightedEntityIDs =
array('int'=>0);
$MapSpecification = array(
'DataSourceName' => 'MapPoint.NA',
'HighlightedEntityIDs'
=> $HighlightedEntityIDs,
'Options' => $MapOptions,
'Pushpins'
=> $ArrayOfPushpin,
'Views' =>
$ArrayOfMapView);
$GetMap = array('specification' =>
$MapSpecification);
$result = $client->call('GetMap', array('parameters'
=> $GetMap));
> -----Original Message-----
> From:
nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx
> [mailto:nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx]On
Behalf Of Scott
> Nichol
> Sent: Wednesday, March 31, 2004 4:15
PM
> To: nusoap-general@xxxxxxxxxxxxxxxxxxxxx
> Subject: Re:
[Nusoap-general] Final version 0.6.6 and more MapPoint
>
>
>
James,
>
> Do you work with Jason Roscoe? He has asked many
questions,
> including some regarding MapPoint.
>
> Here is
what soon will be wsdlclient8.php...
>
> <?php
>
/*
> * $Id: $
> *
> * WSDL client
sample.
> *
> * Service: WSDL
> * Payload:
document/literal
> * Transport: http
> * Authentication:
digest
> */
> require_once('../lib/nusoap.php');
>
$proxyhost = isset($_POST['proxyhost']) ? $_POST['proxyhost'] : '';
>
$proxyport = isset($_POST['proxyport']) ? $_POST['proxyport'] : '';
>
$proxyusername = isset($_POST['proxyusername']) ?
>
$_POST['proxyusername'] : '';
> $proxypassword =
isset($_POST['proxypassword']) ?
> $_POST['proxypassword'] : '';
>
//echo 'You must set your username and password in the source';
>
//exit();
> $username = '36297';
> $password = 'M5!cSdMUQf';
>
$client = new
> soapclient("http://staging.mappoint.net/standard-30/mappoint.wsdl",
true,
> $proxyhost, $proxyport,
$proxyusername, $proxypassword);
> $err = $client->getError();
>
if ($err) {
> echo '<h2>Constructor
error</h2><pre>' . $err . '</pre>';
> }
>
$client->setCredentials($username, $password, 'digest');
> $address =
array(
> 'AddressLine' => '563 Park Avenue',
>
'PrimaryCity' => 'New York',
> 'SecondaryCity' =>
'Brooklyn',
> 'Subdivision' => '',
> 'PostalCode'
=> '',
> 'CountryRegion' => 'US',
>
'FormattedAddress' => ''
> );
> $findRange = array(
>
'StartIndex' => 0,
> 'Count' => 10
> );
>
$findResultMask = 'AddressFlag';
> $findOptions = array(
>
'Range' => $findRange,
> 'SearchContext' => 1,
>
'ResultMask' => $findResultMask,
> 'ThresholdScore' =>
0.85
> );
> $findAddressSpecification = array(
>
'DataSourceName' => 'MapPoint.NA',
> 'InputAddress' =>
$address,
> 'Options' => $findOptions
> );
>
$findAddress = array('specification' => $findAddressSpecification);
>
$result = $client->call('FindAddress', array('parameters' =>
>
$findAddress));
> // Check for a fault
> if ($client->fault)
{
> echo '<h2>Fault</h2><pre>';
>
print_r($result);
> echo '</pre>';
> } else
{
> // Check for errors
> $err =
$client->getError();
> if ($err) {
> // Display
the error
> echo '<h2>Error</h2><pre>' .
$err . '</pre>';
> } else {
> // Display the
result
> echo
'<h2>Result</h2><pre>';
>
print_r($result);
> echo '</pre>';
>
}
> }
> echo '<h2>Request</h2><pre>' .
htmlspecialchars($client->request,
> ENT_QUOTES) .
'</pre>';
> echo '<h2>Response</h2><pre>'
.
> htmlspecialchars($client->response, ENT_QUOTES) .
'</pre>';
> echo '<h2>Debug</h2><pre>' .
htmlspecialchars($client->debug_str,
> ENT_QUOTES) .
'</pre>';
> ?>
>
> 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.
>
>
>
-------------------------------------------------------
> This SF.Net
email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented
by Daniel Robbins, President and CEO of
> GenToo technologies. Learn
everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick
>
_______________________________________________
> Nusoap-general mailing
list
> Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/nusoap-general
>