Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to generate Secure Web service stubs (web.xml configuration) jax-ws service

 
sriramamurthy sunkara
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
I am preparing Web Service certification and doing sample application. i am getting confuse how to generate stubs for container secure web service WDSL.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2534
113
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

Welcome to Coderanch!!

What did try, so far? Did you read Ivan's and/or Mikalai notes about this?

Regards,
Frits
 
Himai Minh
Ranch Hand
Posts: 1361
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sriramamurthy sunkara wrote:Hi All
I am preparing Web Service certification and doing sample application. i am getting confuse how to generate stubs for container secure web service WDSL.

Please be specific about your question. For the exam, you need to know how to use web.xml to specify security constraints like HTTPS, BASIC authentication or client certification authentication.... You may need to use the vendor specific xml configuration file (sun-web.xml) to specify role base security for specific web methods.
 
sriramamurthy sunkara
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frits Walraven wrote:Hi!

Welcome to Coderanch!!

What did try, so far? Did you read Ivan's and/or Mikalai notes about this?

Regards,
Frits


Thanks.. for wishes. Both notes i have started reading. Just practice JAX-WS Basic authentication example code deployed into tomcat server. when i am accessing wsdl file. it is asking user and password and displaying wsdl. i am tring to generate client stubs by using wsimport tool. i am unable to generate stubs becasue of basic authentication. is this right way to provide security? and if yes how to pass basic authentication details to wsimport tool.

Thansk
Srirama
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2534
113
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did you deploy your WebService as a Servlet? Did you use the com.sun.xml.ws.transport.http.servlet.WSServlet? (The JAX-WS dispatcher servlet)

If you did, how does your web.xml look like?

how to pass basic authentication details to wsimport tool.

That is not possible.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic