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 6 4761
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-
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
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:s tring">this is a £ 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:encodingSty le="http://schemas.xmlsoap .org/soap/encoding/">
regards,
Stephen
Stephen wrote:
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:s tring">this is a £ 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:encodingSty le="http://schemas.xmlsoap .org/soap/encoding/">
regards,
Stephen
A couple of things to try then:
1. set encoding="iso-8859-1" instead of "UTF-8"
2. encode your pound sign as &#A3; or £
-david-
David Haynes wote:
Stephen wrote:
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:s tring">this is a £ 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:encodingSty le="http://schemas.xmlsoap .org/soap/encoding/">
regards,
Stephen
A couple of things to try then:
1. set encoding="iso-8859-1" instead of "UTF-8"
2. encode your pound sign as &#A3; or £
-david-
The second option would work if I could persuade the provider of the
SOAP server to change their code which is a no-goer unfortunately.
Is there a way of encoding the pound sign within the WSDL file on the
client side?
regards,
Stephen
Stephen wrote:
David Haynes wote:
>Stephen wrote:
>>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 >receivin g 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:
<commentTex t xsi:type="xsd:s tring">this is a £ pound sign</commentText>
The xml headers on the response file are:
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xsi="ht tp://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="ht tp://www.w3.org/2001/XMLSchema" SOAP-ENV:encodingSty le="http://schemas.xmlsoap .org/soap/encoding/">
regards, Stephen
A couple of things to try then: 1. set encoding="iso-8859-1" instead of "UTF-8" 2. encode your pound sign as &#A3; or £
-david-
The second option would work if I could persuade the provider of the
SOAP server to change their code which is a no-goer unfortunately.
Is there a way of encoding the pound sign within the WSDL file on the
client side?
regards,
Stephen
Not that I know of but I am not a SOAP/WSDL expert.
Just so you know, this issue is not unique to PHP. There are a whack of
posts in the various Java and SOAP forums about this problem.
The consensus seems to be that £ is only supported under certain
character encoding schemes and that specifying the encoding to
iso-8859-1 seems to help providing that the SOAP parser honours the
encoding attribute. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: c |
last post by:
We have an API that has an XML interface. We have a client who has a .NET
application and wants to use our API.
Why will SOAP make life easier for our client? It seems to me that .NET to
XML should be easy enough, but they're saying they want SOAP interface.
thanks.
c
|
by: TC |
last post by:
Hello,
I have been asked to port a VB6 / SOAP SDK app to C# .Net using web services
and do it quickly. I have a remote SOAP interface that I've referenced and
can now call methods on.
What I am unsure of is how such items below from the SOAP SDK transfer to
..Net:
.Reader.RPCResult
|
by: Martin Wimmer |
last post by:
Hello,
I´m searching for possibilities to access a database via a Web Service. Does
DB2 provide integrated mechanisms for inquiring content by a Web Service and
vice versa, i.e., making a Web service call out of a stored procedure? It
would be very kind, if you can send me URLs where I can find further
information / white papers. Especially authentification and authorisation
toppics are most important issues for me to find out.
thanks...
|
by: Brian P |
last post by:
I am working on a new program that uses a SOAP interface. I have written
a few of these before, but this time it is giving me trouble. I suspect
there is a problem with on the SOAP handler side, but since I'm not an expect
I cannot be sure.
The vendor has provided me a url to the WSDL document for the soap service.
Using the .Net WSDL utility, I generate a c# proxy class. When I'm trying
to use the methods of the soap service, I get...
|
by: Jennyfer Barco |
last post by:
Hello I need to create an interface with PeopleSoft using SOAP (Simple
Object Access Protocol). Do you have a link for a good beginning? I haven't
done anything like this.
Thanks
Jennyferd
| |
by: WebServiceSecurity |
last post by:
Hi,
I would like to know if we could use SOAP extension to modify the encypted Response(with X509 cert) from a web service before the .Net framwework decrypts it.
Thanks in advance..
Kuldeep
|
by: Frederiek |
last post by:
Hi,
I need to create a Windows service that has to access a web service
through a SOAP interface.
I am using Visual C++ 2005. Thus far I have not really created .NET
applications. Up to now I used VC++ 2005 for creating non-CLR
applications. However, it seems that the SOAP Toolkit has been
deprecated, and the alternative is to use the .NET Framework. Knowing
only very little about SOAP (and .NET) at this moment, I have a hard
|
by: =?Utf-8?B?RGFycmVsbCBIb2xpZ2Fu?= |
last post by:
I'm writing an application that needs to take data from an outside app and
send the data in an SMS message. I was hoping to use a C# web method to
allow the outside (client) application to send the data to me over SOAP, as
it's a nice clean interface.
The issue is that I need to have a thread running in the background which
sets up the SMS hardware (com port, etc) and waits for incoming data from the
web methods. I tried doing this...
|
by: =?Utf-8?B?RWFnbGVSZWRASGlnaEZseWluZ0JpcmRzLmNvbQ== |
last post by:
I have written a Web service using VS2005 and deployed it to a Web server and
it is running using HTTPS. We have a person who is writing a desktop
application using a non-Microsoft development tool. He is generating the
requests manually and is having some difficulties. I have a Windows test
harness application, also written with VS2005, that makes calls to the
service without any problems. Is there a way to capture the request messages...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |