This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
Marshal

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


Ping & DNS - my free Android networking tools app
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
 
Similar Threads
fix the sockets used by axis2 clients
Web Start and Web Services
Webservice issue in Appserver cluster
How would the client know what kind WS-security to use to access the secured service
Response Contained No Data Exception