~sigh~ Stuck in the office c/o snow and traffic...

Been battering my head against this maintaining session when consuming .NET web services using CFMX for the last hour and a half.

setMaintainSession didn't work and I can't seem to work out how to push the cookie.jsessionid back to the web service or set it as a constant in the web service object.

So (he asks grovelling) does anyone have any thoughts how I can either set the web service object constant or push it back with my requests. I've tried using the soap_udfs to add a Request Header and that appeared not to work either or I used the wrong header... Anyone know .NET web services?

regards

Stephen


Stephen Moretti wrote:
Heh heh.... Not the first time....

Shame it appears to imply that I'm a CF novice, when in fact I'm actually a .NET/webservice novice and my problem isn't helped by the fact that the developers of the .NET webservice are less expert themselves, but hey ho...

In response to my other question from yesterday as noone else seems to know the answers ;o) :

> I've had a bit of a look, but can't see anything, so do you know if
> there is an equivalent to php's "Webservice.CookieContainer = New
> System.Net.CookieContainer" in CFMX???
>
The Axis equivalent to cookiecontainer is setMaintainSession, which you should see in the top level of your webservice object. The following URLs should be of assistance (took me an age to find!), but I have to say I haven't tried the suggestions properly yet.


http://www.dur.ac.uk/barry.cornelius/Java/web.services.using.axis/onefile/
http://shemnon.com/speling/archives/000098.html
http://ws.apache.org/axis/java/apiDocs/org/apache/axis/client/Service.html#setMaintainSession(boolean)



My only concern is this statement :
"Calling setMaintainSession will only affect future instantiations of the Call object, not those that already exist"


Does that mean that it only affects future calls to methods or future creations of the web service object?? Well I'll have a play and let you know what I find out.

Regards

Stephen

Peter Harrison wrote:

Hey Stephen, your name is in print...
http://www.sys-con.com/coldfusion/article.cfm?id=695&count=5049&tot=2&page=2



- Peter


----- Original Message ----- From: "Stephen Moretti" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 14, 2004 2:55 PM
Subject: Re: [ cf-dev ] Accessing .NET webservices session management




Also, getResponseHeader() will give me a soap header if I know its
namespace and name, but is there anyway to find out what headers there
are in a returned object??



To answer this part of my own email....

webservice.getHeaders() will return an array of header information....
I missed this cos the webservice I'm hitting has no headers!



http://otn.oracle.com/sample_code/tech/java/codesnippet/webservices/soapheader/index.html



All in java, but quite interesting all the same...

Regards

Stephen



-- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



Reply via email to