For option 2 use this ... if it is just a basic authentication which i have been using on
client side.
Their are examples in JbossWS stack examples
|
| MattHelloWorld3Service service = new MattHelloWorld3Service();
|
| MattHelloWorld3PortType port = service.getPort(MattHelloWorld3PortType.class) ;
|
| // Get the port and use binding provider for authentication
|
| BindingProvider bp = (BindingProvider) port;
|
| bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "test");
|
| bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "test");
|
|
| HelloWorld memreq = new HelloWorld();
|
| memreq.setId("Hellow Mathew");
|
|
I hope this helps
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083221#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...