logo       
Bookmark and Share

MapPoint wsdl: msg#00003

php.nusoap.general

Subject: MapPoint wsdl

Got a wsdl question for those who have all the answers, I'm trying to build a parameter array for the "GetMap" function.

the WSDL file ... http://staging.mappoint.net/standard-30/mappoint.wsdl

GetMap type section ......

- <s:element name="GetMap">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="specification" type="s0:MapSpecification" />
  </s:sequence>
  </s:complexType>
  </s:element>
- <s:complexType name="MapSpecification">
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="DataSourceName" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="HighlightedEntityIDs" type="s0:ArrayOfInt" />
  <s:element minOccurs="0" maxOccurs="1" name="Options" type="s0:MapOptions" />
  <s:element minOccurs="0" maxOccurs="1" name="Pushpins" type="s0:ArrayOfPushpin" />
  <s:element minOccurs="0" maxOccurs="1" name="Route" type="s0:Route" />

( i'm ok with there other parameters.... its the "View")

  <s:element minOccurs="0" maxOccurs="1" name="Views" type="s0:ArrayOfMapView" />
  </s:sequence>
  </s:complexType>


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
>

__________________________________________________________________________
Disclaimer: This e-mail message is intended only for the personal use of 
the recipient(s) named above.  If you are not an intended recipient, you 
may not review, copy or distribute this message. If you have received this
communication in error, please notify us immediately by e-mail and delete 
the original message.
This e-mail expresses views only of the sender, which are not to be 
attributed to Rite Aid Corporation and may not be copied or distributed 
without this statement.
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise