I found that this solution works:
| MyService client1 = (MyService) service.getPort(...);
| BindingProvider prov1 = (BindingProvider) client1;
| Map<String, Object> request = prov1.getRequestContext();
| request.put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);
| client1.login("agori", "sfsfaf");
|
| Object cookieJar =
request.get("com.sun.xml.internal.ws.client.http.CookieJar");
|
| MyService2 client2 = service.getPort('...');
| BindingProvider prov2 = (BindingProvider) client2;
| request = prov2.getRequestContext();
| request.put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);
| request.put("com.sun.xml.internal.ws.client.http.CookieJar", cookieJar);
|
| client2.myMethod();
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4184435#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...