wowebservice sessions
wowebservice sessions
- Subject: wowebservice sessions
- From: Mike Schrag <email@hidden>
- Date: Thu, 16 Feb 2006 23:45:01 -0500
So I know I can get the WOContext and thus a WOSession from the Axis
MessageContext, but it appears to be a new session every request. I
have told axis to maintain sessions, so cookie handling should be
enabled, and I have set my session to put the sessionid in a cookie.
However, appendToResponse on the session is never called for a
WebServiceRequest, so _appendCookiesToRequest (or whatever the method
is) is not called. WebServiceRequestHandler DOES appear to look for
the wosid cookie, but I can't actually tell 1) if WO is SETTING it
properly, and 2) if Axis is sending it back. I did skip the skinned
cat swung over the head step, though -- maybe I need to go back to
that first? If anyone knows the right settings on client and server
for this to work, I'd greatly appreciate it.
And while I'm at it, if I return a complex type or have a complex
type as a param to a web service method, I found I had to manually
register the type with
WOWebServiceRegistrar.registerFactoriesForClassWithQName it. I'm
curious why I have to do this given that WSDL generation is
automatic, so WO clearly knows both the QName of the type and the
full class name? Is there a smarter way to do this?
By the way, I documented my WS pain in the hasn't-really-caught-on-WO-
Wikibook for anyone who might come along after me.
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden