Reply to Re: SOAP interface query

Your name:

Reply:


Posted by Stephen on 07/03/06 10:20

Stephen wote:
> David Haynes wote:
> > Stephen wrote:
> > > I've got a problem with a PHP program that i've written using the
> > > standard SOAP client with a WSDL file.
> > > When calling one of the functions on the SOAP server i'm occasionally
> > > receiving a response containing a pound sign encoded as £. This
> > > causes my program to report 'Looks like we got no XML document' and not
> > > process the response.
> > > The SOAP server is provided by a third party and appears to be Perl
> > > SOAPLite. They insist that the pound is being encoded correctly.
> > >
> > > I'm using PHP 5.1.4 from the command line running on Windows 2000.
> > >
> > >
> > > Is there any way around this problem?
> > >
> > >
> > > Thanks in advance,
> > > Stephen
> > >
> > Stephen,
> > Try using nuSOAP instead. I know it's a bit of a pain to switch, but I
> > found nuSOAP works a little bit better with the perl SOAP implementation.
> >
> > -david-
>
>
> Thanks. I'll give nuSOAP a try.
>
> regards,
> Stephen

I've had a go with nuSOAP and i'm still having no joy. The function
call returns false when I try to bring back the request containing the
pound sign.

The offending line looks like this:

<commentText xsi:type="xsd:string">this is a &pound; pound
sign</commentText>

The xml headers on the response file are:

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

regards,
Stephen

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация