[jboss-user] [JBossWS] - Re: Enabling cookies in a JBossWS web service client

richard.opalka@jboss.com do-not-reply at jboss.com
Tue Nov 6 02:44:33 EST 2007


Service service = Service.create(wsdlURL, serviceQName);
  | YourInterface proxy = (YourInterface)service.getPort(YourInterface.class);
  | // the following call enables cookies 
  | ((BindingProvider)proxy)
  |     .getRequestContext()
  |         .put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);
  | 
  | proxy.callYourMethod()
  | 

Richard

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102093#4102093

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102093



More information about the jboss-user mailing list