I don't know of any examples. I steer clear of SOAP headers. For me, they are
best left to support layered add-ons to SOAP.
A simple, made up example, which might be flawed, would be
function Foo($name) {
global $server;
$headers = $server->requestHeaders;
if (ereg("<id>([^<]+)</id>", $headers, $r) === FALSE) {
$id = md5(rand());
} else {
$id = $r[1];
}
$server->responseHeaders = "<id>$id</id>";
}
Scott Nichol
Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message -----
From: "Pawan Mehta" <pmehta@xxxxxxxxxxxxxxx>
To: "Scott Nichol" <snicholnews@xxxxxxxxxxxxxxx>;
<nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, December 07, 2005 11:41 PM
Subject: RE: [Nusoap-general] Server header access
That's what I want to know but how to do this. Give me an example for
setting response headers or redirect me to some url where I can see the
example.
Pawan Mehta
-----Original Message-----
From: nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx
[mailto:nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
Nichol
Sent: Thursday, December 08, 2005 7:46 AM
To: nusoap-general@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Nusoap-general] Server header access
I forgot the most important part: if you want to send SOAP headers from
the server, just set the $responseHeaders field of the server. As with
the client, the headers may be a string or associative array.
Scott Nichol
Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message -----
From: "Scott Nichol" <snicholnews@xxxxxxxxxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, December 07, 2005 9:12 PM
Subject: Re: [Nusoap-general] Server header access
>>>>
I have created a soap client and soap server using php.
Next step is my php client send a request to php server using soap and
then the php server is going to reply with the session id in the header
if there is no session id at the top of header.
<<<<
Do you mean SOAP header or HTTP header?
What do you mean by "if there is no session id at the top of header"?
>>>>
We can set the headers in client and but how to set the value of session
at the server side???
<<<<
>From this I would guess you mean SOAP header.
Is the idea that you want to use SOAP headers for session maintenance,
rather than HTTP cookies?
Do you have some requirement that SOAP headers be used, rather than
communicating the session id within the SOAP body (or HTTP cookies)?
Scott Nichol
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
_______________________________________________
Nusoap-general mailing list
Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/nusoap-general
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|