473,387 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

SOAP envelope change from Content-Type: text/xml to text/html

Hello,

I'm running PHP 5.2 on gentoo distribution. I'm testing SOAP new
extensions, but I'm facing a strange problem... I built a little class
and used setClass() and handle() to make PHP handle interconnectivity,
but for some ugly reason when I update a public method, the SOAP
envelope changed from:

HTTP/1.1 200 OK
....
Content-Type: text/xml; charset=utf-8

to:

HTTP/1.1 200 OK
....
Content-Type: text/html; charset=ISO-8859-1

In other words, the Content-Type changed from XML to HTML !! Has
anyone hit with this ??

Thanks,

Sebastián Araya

Apr 4 '06 #1
1 6582
Sebastian Araya wrote:
I'm running PHP 5.2 on gentoo distribution. I'm testing SOAP new
extensions, but I'm facing a strange problem... I built a little class
and used setClass() and handle() to make PHP handle interconnectivity,
but for some ugly reason when I update a public method, the SOAP
envelope changed from:


Perhaps that the method outputs some white space. Test case:

The following returns text/xml as the content type:
<?php
header("Content-Type: text/xml");
?>

The following throws a warning (headers already sent), but when warnings
aren't displayed (e.g. because of the setting of the display_errors
directive or the error_reporting level), it just results in the content type
being set to text/html:

<?php
print ' ';
header("Content-Type: text/xml");
?>
JW
Apr 4 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stephen Chell | last post by:
I'm using SAAJ 1.2 (from jwsdp-1.3) and JDK 1.4.2_03. I've written a client application that uses the SAAJ api to send a SOAP message to a servlet. The servlet successfully receives the message...
0
by: Blaine Everingham | last post by:
Hello, I have installed SOAP::Lite 0.60 and am running a simple test to see the XML output. I noticed that the output indicated it's using the www.w3.org/1999/XMLSchema instead of the prefered...
0
by: circuit_breaker | last post by:
Hi, I have a .NET WebService that accepts 3 parameters. Using the same request below but with only 2 parameters, it works, but not with one, three and so on... <?xml version="1.0"...
5
by: mark kurten | last post by:
i have a requirement to send a soap message to a web service. i'm familiar with the soap toolkit using vb. i need to generate a xml document which i think i can do, but i don't know how to...
0
by: craig | last post by:
Hi, I'm new to all this and having tremendous difficulty trying to deserialize the following: <soap-env:Envelope...
0
by: Hans Kesting | last post by:
Hi, I'm trying to create a client for some webservice. BUT I have only limited information: * no WSDL available ("expected Q1-06") (it seems to be written in Java) * I don't have access (yet)...
16
by: MR | last post by:
my soap messages to a remote site are failing. as far as i can tell the only differences between what my SOAP message looks liek and what they want are in the SOAP envelope SInce they don't have a...
0
by: Daniel | last post by:
Hi, I need help signing SOAP/XML. Have been stuck with this for a couple of days now. I get the following error message from the server: "The security token could not be authenticated or...
3
by: Joshua Beall | last post by:
Hi All, I've got the following PHP code: $service = new SoapClient("http://www.webservicex.net/length.asmx? wsdl"); $result = $service->ChangeLengthUnit(10,"Inches","Centimeters");...
0
by: nappingcub | last post by:
This is my first time coding a web service in .NET and ran into a slight snag that I was hoping that anyone could help me out on. I'm using the generic Hello World web service that is stubbed out on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.