[jboss-user] [JBossWS] - Re: JBoss wstool generate incorrect WSDL file
vashistvishal
do-not-reply at jboss.com
Tue Sep 11 20:00:30 EDT 2007
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#4083221
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083221
More information about the jboss-user
mailing list