aspose file tools
The moose likes Web Services and the fly likes Webservice client for a secured Webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Webservice client for a secured Webservice" Watch "Webservice client for a secured Webservice" New topic
Author

Webservice client for a secured Webservice

Janis Lee
Greenhorn

Joined: Dec 22, 2005
Posts: 27
I have deployed a Webservice on JBOSS as a war.
I have configured security for the webservice such that it can be accessed only by supplying the user name and password.( I did this by setting the <security-constrints> for the URL pattern of my Webservice. )

How do I supply the security credentials to the webservice using my client?
I have generated my client code using

java org.apache.axis.wsdl.WSDL2Java -o src -d Session -s -p com.test.service mywsdl.wsdl
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
That is a Frequently Asked Question, and the answer can be found in the Web Services FAQ, which is linked in my signature.
Janis Lee
Greenhorn

Joined: Dec 22, 2005
Posts: 27
Thanks!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Webservice client for a secured Webservice