473,320 Members | 1,861 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,320 software developers and data experts.

set cookie in nusoap web service, IE behaves diff than Firefox

Searched on google for any info relating to this before posting here but
found none.

I set up a web service using nusoap on apache php 4.3.8 on windows with
error_reporting = E_ALL and had that service set a cookie in the client
browser as the first output.
Works fine in IE6 and the service returns the state of the cookie in the
client browser but in firefox 1.0 the exact same service gives a notice
error about an undefined variable like so:

<b>Notice</b>: Undefined index: Content-Type in <b>i:program filesapache
groupapachehtdocs nusoaplib
nusoap.php</b> on line <b>2468</b>

took a look at line 2468 in nusoap.php and as the notice says it's about the
content type header:

2468 if(strpos($this->headers['Content-Type'],'=')){

so since the exact same string, as follows, was sent from both IE and
firefox:
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:n="urn:getsetcookie7wsdl"><soap:Body
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><n:getsetcook
ie7><name xsi:type="xsd:string">Department
4</name></n:getsetcookie7></soap:Body></soap:Envelope>

I'm wondering if anyone can shed light on why there would be a difference
in the response from nusoap.

It mystifies me. It is the exact same code running on the server
(apparently) processing the exact same input (windiff shows it to be
identical).
I can see from the input that neither sends the content type header so why
the different response to a message from IE to one from Firefox?

Thanks for your insight,
Johnny

Jul 17 '05 #1
2 4689
Johnny wrote:
Searched on google for any info relating to this before posting here but
found none.

I set up a web service using nusoap on apache php 4.3.8 on windows with
error_reporting = E_ALL and had that service set a cookie in the client
browser as the first output.
Works fine in IE6 and the service returns the state of the cookie in the
client browser but in firefox 1.0 the exact same service gives a notice
error about an undefined variable like so:

<b>Notice</b>: Undefined index: Content-Type in <b>i:program filesapache
groupapachehtdocs nusoaplib
nusoap.php</b> on line <b>2468</b>

took a look at line 2468 in nusoap.php and as the notice says it's about
the content type header:

2468 if(strpos($this->headers['Content-Type'],'=')){


I've studiously avoided SOAP, but reading what you've said here it doesn't
appear to be a SOAP related issue. If it works with one browser but not
another, it rather implies that $this->headers refers to the headers sent
in the request. I don't think 'Content-Type' is required in the request.
Try quietening the error reporting (any output before you try to set a
cookie will flush the headers and therefore make it impossible to set the
cookie).

HTH

C.
Jul 17 '05 #2

"Colin McKinnon" <co**************@andthis.mms3.com> wrote in message
news:d5*******************@news.demon.co.uk...
Johnny wrote:
Searched on google for any info relating to this before posting here but
found none.

I set up a web service using nusoap on apache php 4.3.8 on windows with
error_reporting = E_ALL and had that service set a cookie in the client
browser as the first output.
Works fine in IE6 and the service returns the state of the cookie in the
client browser but in firefox 1.0 the exact same service gives a notice
error about an undefined variable like so:

<b>Notice</b>: Undefined index: Content-Type in <b>i:program filesapache groupapachehtdocs nusoaplib
nusoap.php</b> on line <b>2468</b>

took a look at line 2468 in nusoap.php and as the notice says it's about
the content type header:

2468 if(strpos($this->headers['Content-Type'],'=')){


I've studiously avoided SOAP, but reading what you've said here it doesn't
appear to be a SOAP related issue. If it works with one browser but not
another, it rather implies that $this->headers refers to the headers sent
in the request. I don't think 'Content-Type' is required in the request.
Try quietening the error reporting (any output before you try to set a
cookie will flush the headers and therefore make it impossible to set the
cookie).

HTH

C.


Thanks Colin.
I had seen from the error messages coming back from the soap server that
the warning level was causing the problem but I'm still wondering how
sending the same messages to the soap server could cause diffferent
behavior. My guess is that IE warps the soap message with something that has
the content type and that Firefox doesn't. Oh well. Thanks for your reply.
Jul 17 '05 #3

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

Similar topics

2
by: Larry Sankey | last post by:
Hello. I am having what is probably the simplest problem there is with Nusoap. I have to admit I'm new to this stuff, but I have some programming experience and what I'm doing *shouldn't* be hard....
0
by: Ward G | last post by:
Hi, Below is a basic webservice using the NuSOAP class. When I run the code to register the service, I get the nice html page generated by nusoap, offering a link to view the WSDL for my...
5
by: Mark C | last post by:
I have a memory allocation problem in PHP using NuSOAP and the built in XML parser. The code below is called in a loop and executed about 1900 times before it failed. I am using nusoap.php,v 1.76...
0
by: Dom | last post by:
Hi, I'm developing a PHP client that consumes a Web Service written in Java-Axis. I'm using NuSoap toolkit. Now I have the need to send IPaddress (together with the SOAP request) to the Web...
8
by: krisrajz | last post by:
Please observe the pages below: session1.asp <% Session("test")="TESTING" Response.Redirect "session2.asp" %> session2.asp
1
by: Sigrid | last post by:
Hi! I'm trying to develop a .net application (xml web service client, using SoapHttpClientProtocol), but i can't get any response from xml web service (php, NuSOAP), server url is:...
6
amine
by: amine | last post by:
Hello People, I created a WebService in .NET on my machine with following methode: <WebMethod(Description:="test")> _ Public Function sayHello(ByVal myName As String, ByVal myID As Integer)...
3
by: WayneH | last post by:
Hi - I'm trying to use javascript to determine if a user's browser has cookies enabled or not. To test: copy this code into a file with a 'html' extension, and load it into your IE browser...
7
by: craig.keightley | last post by:
I have access to the following web service but always retreive the same error:- Array ( =soapenv:Server.userException =se.brodit.ws.InvalidUserException =Array ( =webserver
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.