Barry L Beattie wrote:
Its cos .NET webservices are bollox! Sorry... I spent way way way too long trying to get access to a .NET web service with no real answer to a lot of my questions, other than Simon writing me some code that manual accessed a .NET web service and lots of hints that I should use Java (which incidently was just as bad, because of the whole cookie issue [see below]).Hi all
We're trying to connect our CF app to an ASP.NET (asmx) webservice.
Has anyone called a webservice with addRequestHeader(), sucessfully? It can't be a network problem (it works with other tools) so it's either (1) sheer incompetance on my part or (2) something funny with CF calling other webservices.
- all our CF servers have had the webservice headers hot-fix applied. I've stumped our local list (CFAussie) - aparently not many webservices are used in Australia (or they work without grief so (1) above applies here)
The problem is nothing to do with request header or anything like that. Its because .NET uses cookies - yes thats right - cookies for session management of a webservice by default and most MS developer are so wrapped up in the MS world that they forget to check these things with the real world of interoperability. (You'd never guess I'm bitter about the amount of time and energy I wasted on this would you???!!! ;))
After all that wait for code to download, it probably boils down to one method call that I found helped with session maintenance...
mywebservice = CreateObject("WebService",wsURL); mywebservice.setMaintainSession(true);
And hopefully that should do the trick! I hope it helps for you.
Regards
Stephen
-- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*
To unsubscribe, e-mail: [EMAIL PROTECTED]