• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Get Session Cookie from headers for Authentication

Siegfried Heintze
Ranch Hand
Posts: 408
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two SOAP services on the public internet written in C# with Visual Studio: an authentication service and a domain service.
I have a C# WPF client that uses a Visual Studio studio generated SOAP proxy. It calls the authentication service's login function and extracts the session cookie and uses this session cookie in subsequent calls to the domain service. This works!

Now how do I do this in java?
I have used wsimport to successfully generate two proxies in my Java client. Apparently I can successfully login into the authentication service with my new java client because it is not throwing any exceptions.
Now how do I extract that session cookie from the headers so I can use it to call the domain service?

How do I add that session cookie to the headers when calling the domain service?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic