You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by "Box, Chris" <ch...@qwest.com> on 2000/09/19 19:08:22 UTC

Session scope

I am setting up a SOAP Service using the "Session" scope and the session
does not seem to be maintained (i.e. Session scope seems to work no
differently than Request scope). I was able to get this working by adding
support for Netscape-type cookies to
org.apache.soap.transport.SOAPHTTPConnection, but since I haven't worked
with SOAP much, I was wondering if I was just missing something when I set
SOAP up regarding Session scope that would make it work without modifying
the code?

Thanks,
Chris

Re: Session scope

Posted by Rich Johns <rj...@vignette.com>.
No, I don't think it's in the CVS, but it was posted to the group.

George I Matkovits wrote:

> Great, it is in the CVs then?
> Regards - George
>
> Rich Johns wrote:
>
> > Be happy to, but I've already submitted it some time ago. It should be in
> > the archives. If searching the archive is inconvenient, I can always put
> > the package together again. Also, you should know that these mods were
> > made to xml-soap 1.2 from apache.
> >
> > George I Matkovits wrote:
> >
> > > Would you like to post your 'raw' code as is. It might be very educational for some of us.
> > > Regards - George
> > >
> > > Rich Johns wrote:
> > >
> > > > I don't think you're missing anything at least wrt  the current version of apache-soap.
> > > > I had to do the same thing. I also modified the Call.java and Response.java classes
> > > > to allow access to the headers so I could get at the cookies. Oh, and I also had to
> > > > modify RPCRouter.java to pass the HttpSession to the service class using reflection.
> > > > As a result, my service classes can maintain session with a client over multiple SOAP calls.
> > > >
> > > > My hope is that this sort of thing is comprehended in the design work that's going
> > > > on right now among the main soap guys. The way I modified it, and perhaps the
> > > > way you modified it, is http specific, and they are trying to make it transport agnostic.
> > > > I could be wrong. I've had to kind of keep my head down lately, so I may be out
> > > > of touch a bit.
> > > >
> > > > "Box, Chris" wrote:
> > > >
> > > > > I am setting up a SOAP Service using the "Session" scope and the session
> > > > > does not seem to be maintained (i.e. Session scope seems to work no
> > > > > differently than Request scope). I was able to get this working by adding
> > > > > support for Netscape-type cookies to
> > > > > org.apache.soap.transport.SOAPHTTPConnection, but since I haven't worked
> > > > > with SOAP much, I was wondering if I was just missing something when I set
> > > > > SOAP up regarding Session scope that would make it work without modifying
> > > > > the code?
> > > > >
> > > > > Thanks,
> > > > > Chris


Re: Session scope

Posted by Rich Johns <rj...@vignette.com>.
No, I don't think it's in the CVS, but it was posted to the group.

George I Matkovits wrote:

> Great, it is in the CVs then?
> Regards - George
>
> Rich Johns wrote:
>
> > Be happy to, but I've already submitted it some time ago. It should be in
> > the archives. If searching the archive is inconvenient, I can always put
> > the package together again. Also, you should know that these mods were
> > made to xml-soap 1.2 from apache.
> >
> > George I Matkovits wrote:
> >
> > > Would you like to post your 'raw' code as is. It might be very educational for some of us.
> > > Regards - George
> > >
> > > Rich Johns wrote:
> > >
> > > > I don't think you're missing anything at least wrt  the current version of apache-soap.
> > > > I had to do the same thing. I also modified the Call.java and Response.java classes
> > > > to allow access to the headers so I could get at the cookies. Oh, and I also had to
> > > > modify RPCRouter.java to pass the HttpSession to the service class using reflection.
> > > > As a result, my service classes can maintain session with a client over multiple SOAP calls.
> > > >
> > > > My hope is that this sort of thing is comprehended in the design work that's going
> > > > on right now among the main soap guys. The way I modified it, and perhaps the
> > > > way you modified it, is http specific, and they are trying to make it transport agnostic.
> > > > I could be wrong. I've had to kind of keep my head down lately, so I may be out
> > > > of touch a bit.
> > > >
> > > > "Box, Chris" wrote:
> > > >
> > > > > I am setting up a SOAP Service using the "Session" scope and the session
> > > > > does not seem to be maintained (i.e. Session scope seems to work no
> > > > > differently than Request scope). I was able to get this working by adding
> > > > > support for Netscape-type cookies to
> > > > > org.apache.soap.transport.SOAPHTTPConnection, but since I haven't worked
> > > > > with SOAP much, I was wondering if I was just missing something when I set
> > > > > SOAP up regarding Session scope that would make it work without modifying
> > > > > the code?
> > > > >
> > > > > Thanks,
> > > > > Chris


Re: Session scope

Posted by George I Matkovits <ma...@uswest.net>.
Great, it is in the CVs then?
Regards - George

Rich Johns wrote:

> Be happy to, but I've already submitted it some time ago. It should be in
> the archives. If searching the archive is inconvenient, I can always put
> the package together again. Also, you should know that these mods were
> made to xml-soap 1.2 from apache.
>
> George I Matkovits wrote:
>
> > Would you like to post your 'raw' code as is. It might be very educational for some of us.
> > Regards - George
> >
> > Rich Johns wrote:
> >
> > > I don't think you're missing anything at least wrt  the current version of apache-soap.
> > > I had to do the same thing. I also modified the Call.java and Response.java classes
> > > to allow access to the headers so I could get at the cookies. Oh, and I also had to
> > > modify RPCRouter.java to pass the HttpSession to the service class using reflection.
> > > As a result, my service classes can maintain session with a client over multiple SOAP calls.
> > >
> > > My hope is that this sort of thing is comprehended in the design work that's going
> > > on right now among the main soap guys. The way I modified it, and perhaps the
> > > way you modified it, is http specific, and they are trying to make it transport agnostic.
> > > I could be wrong. I've had to kind of keep my head down lately, so I may be out
> > > of touch a bit.
> > >
> > > "Box, Chris" wrote:
> > >
> > > > I am setting up a SOAP Service using the "Session" scope and the session
> > > > does not seem to be maintained (i.e. Session scope seems to work no
> > > > differently than Request scope). I was able to get this working by adding
> > > > support for Netscape-type cookies to
> > > > org.apache.soap.transport.SOAPHTTPConnection, but since I haven't worked
> > > > with SOAP much, I was wondering if I was just missing something when I set
> > > > SOAP up regarding Session scope that would make it work without modifying
> > > > the code?
> > > >
> > > > Thanks,
> > > > Chris


Re: Session scope

Posted by George I Matkovits <ma...@uswest.net>.
Great, it is in the CVs then?
Regards - George

Rich Johns wrote:

> Be happy to, but I've already submitted it some time ago. It should be in
> the archives. If searching the archive is inconvenient, I can always put
> the package together again. Also, you should know that these mods were
> made to xml-soap 1.2 from apache.
>
> George I Matkovits wrote:
>
> > Would you like to post your 'raw' code as is. It might be very educational for some of us.
> > Regards - George
> >
> > Rich Johns wrote:
> >
> > > I don't think you're missing anything at least wrt  the current version of apache-soap.
> > > I had to do the same thing. I also modified the Call.java and Response.java classes
> > > to allow access to the headers so I could get at the cookies. Oh, and I also had to
> > > modify RPCRouter.java to pass the HttpSession to the service class using reflection.
> > > As a result, my service classes can maintain session with a client over multiple SOAP calls.
> > >
> > > My hope is that this sort of thing is comprehended in the design work that's going
> > > on right now among the main soap guys. The way I modified it, and perhaps the
> > > way you modified it, is http specific, and they are trying to make it transport agnostic.
> > > I could be wrong. I've had to kind of keep my head down lately, so I may be out
> > > of touch a bit.
> > >
> > > "Box, Chris" wrote:
> > >
> > > > I am setting up a SOAP Service using the "Session" scope and the session
> > > > does not seem to be maintained (i.e. Session scope seems to work no
> > > > differently than Request scope). I was able to get this working by adding
> > > > support for Netscape-type cookies to
> > > > org.apache.soap.transport.SOAPHTTPConnection, but since I haven't worked
> > > > with SOAP much, I was wondering if I was just missing something when I set
> > > > SOAP up regarding Session scope that would make it work without modifying
> > > > the code?
> > > >
> > > > Thanks,
> > > > Chris


Re: Session scope

Posted by Rich Johns <rj...@vignette.com>.
Be happy to, but I've already submitted it some time ago. It should be in
the archives. If searching the archive is inconvenient, I can always put
the package together again. Also, you should know that these mods were
made to xml-soap 1.2 from apache.

George I Matkovits wrote:

> Would you like to post your 'raw' code as is. It might be very educational for some of us.
> Regards - George
>
> Rich Johns wrote:
>
> > I don't think you're missing anything at least wrt  the current version of apache-soap.
> > I had to do the same thing. I also modified the Call.java and Response.java classes
> > to allow access to the headers so I could get at the cookies. Oh, and I also had to
> > modify RPCRouter.java to pass the HttpSession to the service class using reflection.
> > As a result, my service classes can maintain session with a client over multiple SOAP calls.
> >
> > My hope is that this sort of thing is comprehended in the design work that's going
> > on right now among the main soap guys. The way I modified it, and perhaps the
> > way you modified it, is http specific, and they are trying to make it transport agnostic.
> > I could be wrong. I've had to kind of keep my head down lately, so I may be out
> > of touch a bit.
> >
> > "Box, Chris" wrote:
> >
> > > I am setting up a SOAP Service using the "Session" scope and the session
> > > does not seem to be maintained (i.e. Session scope seems to work no
> > > differently than Request scope). I was able to get this working by adding
> > > support for Netscape-type cookies to
> > > org.apache.soap.transport.SOAPHTTPConnection, but since I haven't worked
> > > with SOAP much, I was wondering if I was just missing something when I set
> > > SOAP up regarding Session scope that would make it work without modifying
> > > the code?
> > >
> > > Thanks,
> > > Chris


Re: Session scope

Posted by Rich Johns <rj...@vignette.com>.
Be happy to, but I've already submitted it some time ago. It should be in
the archives. If searching the archive is inconvenient, I can always put
the package together again. Also, you should know that these mods were
made to xml-soap 1.2 from apache.

George I Matkovits wrote:

> Would you like to post your 'raw' code as is. It might be very educational for some of us.
> Regards - George
>
> Rich Johns wrote:
>
> > I don't think you're missing anything at least wrt  the current version of apache-soap.
> > I had to do the same thing. I also modified the Call.java and Response.java classes
> > to allow access to the headers so I could get at the cookies. Oh, and I also had to
> > modify RPCRouter.java to pass the HttpSession to the service class using reflection.
> > As a result, my service classes can maintain session with a client over multiple SOAP calls.
> >
> > My hope is that this sort of thing is comprehended in the design work that's going
> > on right now among the main soap guys. The way I modified it, and perhaps the
> > way you modified it, is http specific, and they are trying to make it transport agnostic.
> > I could be wrong. I've had to kind of keep my head down lately, so I may be out
> > of touch a bit.
> >
> > "Box, Chris" wrote:
> >
> > > I am setting up a SOAP Service using the "Session" scope and the session
> > > does not seem to be maintained (i.e. Session scope seems to work no
> > > differently than Request scope). I was able to get this working by adding
> > > support for Netscape-type cookies to
> > > org.apache.soap.transport.SOAPHTTPConnection, but since I haven't worked
> > > with SOAP much, I was wondering if I was just missing something when I set
> > > SOAP up regarding Session scope that would make it work without modifying
> > > the code?
> > >
> > > Thanks,
> > > Chris


Re: Session scope

Posted by George I Matkovits <ma...@uswest.net>.
Would you like to post your 'raw' code as is. It might be very educational for some of us.
Regards - George

Rich Johns wrote:

> I don't think you're missing anything at least wrt  the current version of apache-soap.
> I had to do the same thing. I also modified the Call.java and Response.java classes
> to allow access to the headers so I could get at the cookies. Oh, and I also had to
> modify RPCRouter.java to pass the HttpSession to the service class using reflection.
> As a result, my service classes can maintain session with a client over multiple SOAP calls.
>
> My hope is that this sort of thing is comprehended in the design work that's going
> on right now among the main soap guys. The way I modified it, and perhaps the
> way you modified it, is http specific, and they are trying to make it transport agnostic.
> I could be wrong. I've had to kind of keep my head down lately, so I may be out
> of touch a bit.
>
> "Box, Chris" wrote:
>
> > I am setting up a SOAP Service using the "Session" scope and the session
> > does not seem to be maintained (i.e. Session scope seems to work no
> > differently than Request scope). I was able to get this working by adding
> > support for Netscape-type cookies to
> > org.apache.soap.transport.SOAPHTTPConnection, but since I haven't worked
> > with SOAP much, I was wondering if I was just missing something when I set
> > SOAP up regarding Session scope that would make it work without modifying
> > the code?
> >
> > Thanks,
> > Chris


Re: Session scope

Posted by George I Matkovits <ma...@uswest.net>.
Would you like to post your 'raw' code as is. It might be very educational for some of us.
Regards - George

Rich Johns wrote:

> I don't think you're missing anything at least wrt  the current version of apache-soap.
> I had to do the same thing. I also modified the Call.java and Response.java classes
> to allow access to the headers so I could get at the cookies. Oh, and I also had to
> modify RPCRouter.java to pass the HttpSession to the service class using reflection.
> As a result, my service classes can maintain session with a client over multiple SOAP calls.
>
> My hope is that this sort of thing is comprehended in the design work that's going
> on right now among the main soap guys. The way I modified it, and perhaps the
> way you modified it, is http specific, and they are trying to make it transport agnostic.
> I could be wrong. I've had to kind of keep my head down lately, so I may be out
> of touch a bit.
>
> "Box, Chris" wrote:
>
> > I am setting up a SOAP Service using the "Session" scope and the session
> > does not seem to be maintained (i.e. Session scope seems to work no
> > differently than Request scope). I was able to get this working by adding
> > support for Netscape-type cookies to
> > org.apache.soap.transport.SOAPHTTPConnection, but since I haven't worked
> > with SOAP much, I was wondering if I was just missing something when I set
> > SOAP up regarding Session scope that would make it work without modifying
> > the code?
> >
> > Thanks,
> > Chris


Re: Session scope

Posted by Rich Johns <rj...@vignette.com>.
I don't think you're missing anything at least wrt  the current version of apache-soap.
I had to do the same thing. I also modified the Call.java and Response.java classes
to allow access to the headers so I could get at the cookies. Oh, and I also had to
modify RPCRouter.java to pass the HttpSession to the service class using reflection.
As a result, my service classes can maintain session with a client over multiple SOAP calls.

My hope is that this sort of thing is comprehended in the design work that's going
on right now among the main soap guys. The way I modified it, and perhaps the
way you modified it, is http specific, and they are trying to make it transport agnostic.
I could be wrong. I've had to kind of keep my head down lately, so I may be out
of touch a bit.

"Box, Chris" wrote:

> I am setting up a SOAP Service using the "Session" scope and the session
> does not seem to be maintained (i.e. Session scope seems to work no
> differently than Request scope). I was able to get this working by adding
> support for Netscape-type cookies to
> org.apache.soap.transport.SOAPHTTPConnection, but since I haven't worked
> with SOAP much, I was wondering if I was just missing something when I set
> SOAP up regarding Session scope that would make it work without modifying
> the code?
>
> Thanks,
> Chris


Re: Session scope

Posted by Rich Johns <rj...@vignette.com>.
I don't think you're missing anything at least wrt  the current version of apache-soap.
I had to do the same thing. I also modified the Call.java and Response.java classes
to allow access to the headers so I could get at the cookies. Oh, and I also had to
modify RPCRouter.java to pass the HttpSession to the service class using reflection.
As a result, my service classes can maintain session with a client over multiple SOAP calls.

My hope is that this sort of thing is comprehended in the design work that's going
on right now among the main soap guys. The way I modified it, and perhaps the
way you modified it, is http specific, and they are trying to make it transport agnostic.
I could be wrong. I've had to kind of keep my head down lately, so I may be out
of touch a bit.

"Box, Chris" wrote:

> I am setting up a SOAP Service using the "Session" scope and the session
> does not seem to be maintained (i.e. Session scope seems to work no
> differently than Request scope). I was able to get this working by adding
> support for Netscape-type cookies to
> org.apache.soap.transport.SOAPHTTPConnection, but since I haven't worked
> with SOAP much, I was wondering if I was just missing something when I set
> SOAP up regarding Session scope that would make it work without modifying
> the code?
>
> Thanks,
> Chris