This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Webservice client for a secured Webservice

 
Janis Lee
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic