Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > axis web services and httpsession

Reply
Thread Tools

axis web services and httpsession

 
 
alex_f
Guest
Posts: n/a
 
      09-27-2006
Hi
I have a big problem to retrieve httpSession (javax.servlet.http) in a
web service (written with axis).
In the client-side class I use setMantainSession(true) with both
service and call objects.
Webservice class implements ServiceLifecycle interface and I've written
both init and destroy methods: init() sets ServletEndpointContext
object and destroy reset it.
I try to retrieve the session with ServletEndpointContext .getSession()
method: at this point session is empty (it seems that a new httpSession
object has been created).
I tried also to retrieve HttpServletRequest first (using
MessageContext.getCurrentContext().getProperty(HTT PConstants.MC_HTTP_SERVLETREQUEST)),
but httpSession is always empty.
I deploy web services by a server-config.wsdd.xml file: I set scope for
my service as session but it does not work because I don't found
element that I need but webservice information (session type and
service name). Request scope does not work too, because the session is
empty.
I have no more ideas. Can anyone help me?
Do I write also a client-config.wsdd?
Please help me!!!
Thanks.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New book on web services and Apache Axis available kent@cpttm.org.mo Java 0 01-15-2006 07:34 AM
New book on web services and Apache Axis available kent@cpttm.org.mo Java 0 01-15-2006 07:34 AM
Calling a Web Service using Axis, from within an Axis Web Service running under Tomcat hocho888 Java 1 04-29-2005 08:26 PM
web services with axis and package names Generale Cluster Java 0 03-08-2005 11:31 AM
AXIS jars org.apache.axis.wsi.* and org.apache.axis.transport.jms.* unkwb@web.de Java 0 02-23-2005 04:02 PM



Advertisments