Skip to content

XAware Community

Get the Flash Player to see this player.
Flash Image Rotator Module by Joomlashack.
XAware 5.6
Need Help
Webinars and Events
Advanced Tutorials
Webinars and Events

You are here: Home arrow Forums
XAware Community Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Allow get/set of cookie value in http header (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Allow get/set of cookie value in http header
#333
ncsmediahouse (User)
XAware user
Posts: 30
User Offline Click here to see the profile of this user
Allow get/set of cookie value in http header 12 Years, 1 Month ago Karma: 5  
One of our vendor's .NET web services requires the use of cookies to pass an authentication/authorization "ticket". A GetTicket request returns the ticket value in a cookie which is set in the HTTP header; i.e., OUTSIDE the SOAP:Envelope (http body). The ticket must be set in subsequent SOAP calls in the HTTP header in the cookie property. Currently XAware does not have this capability.


1) the GET on the cookie value would likely need to be stored in a
defined xaware variable since the http body /response is what is
returned and handled by the BizDoc/bizcomp. This variable would need
to be accessed in a way such as $xavar:cookie$

Assuming you use HttpURLConnection class (pardon me, I have not looked at the source):

cookie = conn.getHeaderField("Set-Cookie")

2)
the SET of the cookie is likely a quicker solution as we would need a
xa:cookie attribute on the soap and http bizcomp (or driver in 5.0?)
passing the cookie obtained in #1 above.

conn.setRequestProperty("Cookie", cookie)


As far as the priority for implementation, I would prefer that #2
xa:cookie be built first for the 5.0 GA.


#1 could be implemented in the short term as a separate Java class could be called to that executes the GetTicket web service and returns the cookie in
the response as a string. The cookie value (ticket) could be passed to xa:cookie for subsequent
SOAP calls.


Scott Nieman, Nieman Consulting Services (ncsmediahouse)
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
      Topics Author Date
    thread link
Allow get/set of cookie value in http header
ncsmediahouse 2008/01/11 14:56
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Community Login

Get the Flash Player to see this player.
Flash Image Rotator Module by Joomlashack.
Commercial
Free Training
QuickStart Packages
Image 4 Title
Image 5 Title

Visit XAware.com