logo       

Re: abstract type using noose causing error: msg#00051

php.nusoap.general

Subject: Re: abstract type using noose causing error

Does anyone know how to implement this syntax with nusoap?
The type that nusoap is giving me the error is the "abstract element"
Thanks for any help. Is this a bug?
 
This is the request being sent (Wrong)
Views><MapView/></Views></specification></GetMap></SOAP-ENV:Body></SOAP-ENV:Envelope>
 
This is what needs to be generated
...
<Views>
<MapView xsi:type="ViewByHeightWidth">
..
</MapView>
</Views>
...
Will this line get processed by nusoap?
 
<s:complexType name="MapView" abstract="true" />
 
 
The code I'm using is giving me an error becuase I'm unable to get the abstract MapView type to have the correct syntax.  Thank you for any help. The username and password need to be set before it will work but the wsdl is available.
 
Thanks again.
 
Matt
 
<pre>
<?php
require_once('./nusoap.php');
$username = 'USERNAME';
$password = 'PASSWORD';
$client = new soapclient("http://staging.mappoint.net/standard-30/mappoint.wsdl", true);
$client->setCredentials($username, $password, 'digest');

$myViews[] = array(
 'Height' => 200,
 'Width'  => 300,
 'CenterPoint' => array(
    'Latitude' => 40,
    'Longitude' => -120
   )
);
$mapSpec = array(
 'DataSourceName' => "MapPoint.NA",
 'Views' => $myViews);
$map = array('specification' => $mapSpec);
$mapImages = $client->call('GetMap', array('parameters' => $map));
print_r($mapImages);
echo '<h2>Request</h2>' . htmlspecialchars($client->request, ENT_QUOTES) . '';
echo '<h2>Response</h2>'. htmlspecialchars($client->response, ENT_QUOTES) . '';
echo '<h2>Debug</h2>' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '';
?>
</pre>


Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway - Enter today
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise