# is this a bug in the soap extension?

- Thread: https://externals.io/message/21787
- Original archive: https://news-web.php.net/php.internals/21787
- Started by Greg Beaver on 2006-02-03T16:23:29+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #21787 — Greg Beaver — 2006-02-03T16:23:29+00:00

URL: https://externals.io/message/21787#21787

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

---

## #21800 — Dmitry Stogov — 2006-02-06T15:21:00+00:00

URL: https://externals.io/message/21787#21800 · In reply to: #21787

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:cellog@php.net] 
> 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
