Hi Greg,

This WSDL file contains two non-breaking spaces (0xc2 0xa0), those are not
handled by libxml2.
As result libxml2 creates TEXT nodes and WSDL parser fails.

Thanks. Dmitry

> -----Original Message-----
> From: Greg Beaver [mailto:[EMAIL PROTECTED] 
> Sent: Friday, February 03, 2006 7:23 PM
> To: internals@lists.php.net
> Subject: [PHP-DEV] is this a bug in the soap extension?
> 
> 
> Hi all,
> 
> When I load the simple example for geocoding with this code:
> 
> <?php
>    // Create new instance of the SoapClient class
>    // You'll need to download the WSDL file from:
>    // http://geocoder.us/dist/eg/clients/GeoCoder.wsdl
>    $client = new SoapClient("geocoder.wsdl");
>    // Retrieve the address coordinates
>    $result = $client->geocode("411 Woody Hayes Dr, Columbus, OH");
>    // Dump the returned object
>    var_dump($result);
> ?>
> 
> I get a SoapFault unexpected text element.  This is in PHP 
> 5.1.0RC4, 5.1.2, 5.1.3-dev latest CVS (I don't have 5.0 
> hanging around to test with)
> 
> Could someone with SOAP extension know-how take a look at the wsdl at:
> 
> http://geocoder.us/dist/eg/clients/GeoCoder.wsdl
> 
> and let me know if there really is a problem with it?  If so, 
> I'll report the problem to geocoder, otherwise I'll open a 
> php bug.  My quick scan does not detect any obvious problems 
> in the wsdl, but I rarely work with SOAP.
> 
> Thanks,
> Greg
> 
> -- 
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to