Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Webservice client for a secured Webservice

 
Janis Lee
Greenhorn
Posts: 27
  • 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
Posts: 42967
73
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic