• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3398
312
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2167
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3398
312
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
If tomatoes are a fruit, then ketchup must be a jam. Taste this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic