Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / December 2004

Tip: Looking for answers? Try searching our database.

Web Service stubs and cookies

Thread view: 
Mikael Thorsson - 07 Dec 2004 14:07 GMT
Hello All, and sorry for cross-posting! Not sure where this fits in...

I've generated some web service client stubs from a WSDL using
jwsdp-1.5 (jax-rpc). So far so good. However, the server application
that I'm calling, uses a cookie to identify which "session" a
particular web service call refers to.

The nice people at the Big Server Company have written a VB.NET
example that shows how to set the cookie in the HTTP POST that is the
result of a call to one of the stub functions. They do something like
this:

myStubClassObject.CookieContainer.SetCookies(uri, cookie)

I would like to do this in Java, but I can't find anything in Sun's
base classes that comes even close to this.

If this is not possible in Sun Java, how can I work around it? I guess
I would have to create my own HttpURLConnection and generate the web
service call myself... but that kind of defeats the idea of a stub
class, doesn't it?

Any ideas appreciated!
PerfectDayToChaseTornados - 07 Dec 2004 19:25 GMT
| Hello All, and sorry for cross-posting! Not sure where this fits in...
|
[quoted text clipped - 19 lines]
|
| Any ideas appreciated!

Have you thought about using Axis instead of jwsdp? You can definitely do
this kind of thing with Axis (using SOAPHTTPConnection I think)
http://ws.apache.org/axis/

Good luck
Signature

-P
"Programs that are hard to read are hard to modify.
 Programs that have duplicated logic are hard to modify.
 Programs with complex conditional logic are hard to modify"

( Kent Beck)



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.