Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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

 
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.
 
Creator of Enthuware JWS+ V6
Posts: 3341
303
Android Eclipse IDE Chrome
  • 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
 
Ranch Foreman
Posts: 1897
12
  • 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
Posts: 3341
303
Android Eclipse IDE Chrome
  • 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.
 
It's hard to fight evil. The little things, like a nice sandwich, really helps. Right tiny ad?
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic