473,802 Members | 1,955 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
groupapachehtdo cs 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:Envel ope
xmlns:soap="htt p://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:ge tsetcookie7wsdl "><soap:Bod y
soap:encodingSt yle="http://schemas.xmlsoap .org/soap/encoding/"><n:getset cook
ie7><name xsi:type="xsd:s tring">Departme nt
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 4721
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
groupapachehtdo cs 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******** ***********@new s.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 groupapachehtdo cs 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
5297
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. First thing I tested the Hello (sample server and client) that are in the Readme file. No problem. Then I tried to accepting the data from the URL string (GET). That worked. Then I tried two parameters and the only output I get is the word...
0
2969
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 service. When I click it, php barfs this : Cannot modify header information - headers already sent by \nusoap.php on line 2421.
5
5389
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 2004/06/25 13:17:56 snichol Exp $. I am running PHP version 4.2.2 on RedHat 9.0 I presume I need to unallocated something other than the soapclient, but I'm nor sure what. This is the code that is called in the loop and the error message...
0
3561
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 Service ... Is there a chance to include client IPaddress to SOAP request? I'd like to include it in sucha a custom HTTP header stored as X-IPAddress... Is there any method in nusoap to set http header and include in it
8
1577
by: krisrajz | last post by:
Please observe the pages below: session1.asp <% Session("test")="TESTING" Response.Redirect "session2.asp" %> session2.asp
1
3244
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: http://dp.photopoint.ee/dp_server.php A call to web service method getBanner(int) with argument 1, getBanner(1),
6
21010
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) As String Return "Hello " & myName & " (" & myID & ")" End Function Web service works fine, I can access my function in .NET without problem.
3
2604
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 directly, through a local web server and through a remote web server. By turning cookies on/off in your browser, running the file, then clicking the 'test1' or 'test2' buttons, the displayed text should accurately inform you if your cookies are On or...
7
3806
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
9699
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10538
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, 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...
0
10305
jinu1996
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...
1
10285
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,...
0
10063
tracyyun
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...
1
7598
isladogs
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...
0
6838
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();...
0
5494
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2966
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.