• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

web service security

 
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I have tried some examples using WSIT tutorial. Genesis of either server and client, occurs in the NetBeans IDE. And everything works fine when I try any sort of ws security, explained in the examples.
But, I don't get hoe to deploy service on the tomcat server, independently of NetBeans IDE? As much I saw for a client, in the NetBeans, when create Web Service Client, Web Service Reference file which is a wsdl file with embedded WS Security Policy. in the NetBeans it's all somehow "hiddenly performed behind", and I have a a problem if I want to deploy service/client application in the standalone tomcat server, because I will not use deployemtn from NetBeans in the production,where service is exposed as a WSServlet. But I do not know what to do with a client because, if try to engage a client just as I did, but before engaging a ws security policy, I get an exception contains that my SOAP message, client request, doesn't contains a security headers.
So, how to refine and what to do with my deployment ? I hope I was clear about my problem.
Thanks
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yep, the Sun-affiliated people sure make it hard to do much of anything these days without using NetBeans. Which sucks because plenty of people don't use it.

Check out #14 in the Metro user's guide: https://metro.dev.java.net/guide/
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. I am going to try it now.
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I have a few doubts about using WSIT outside a NetBeans. I will be little more verbose just to make my self clear. I have a Web Service made outside of NetBeans IDE :


This is the wsit-org.sler.ue.UEServer.xml file :

and web service client :



Where in the package authC are stored classes for service invocation, and these classes are generated using wsimport command on the deployed address of service, also using custom client files for bindings (using -b command). I invoke a service, it perform calculation and everything works fine. Here I am using just stand alone Tomcat server.
What doubts me is a dump message. As you can see here I introduce a handler which purpose is only to print a SOAP on the screen, and this is the content of such a message. this is the request:



As you can see there is no any security header added to the SOAP Headers printed?
When I using a NetBeans, I set in the Glassfish configuration file to perform dump message in order to see SOAP. And it display to me next, which is entire SoAP messages with Security Headers and encryption/signature:



My question is why are messages different if the same wsit is performed (In the NetBeans I use - "Username Authentication with Symmetric Key" option, and configured wsit file is later used for stand alone deployed service)? Or in the case of stand alone deploying WSIT features are NOT applied to the service?
please some one make me this clear. Thanks
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. can anyone give a hint about my issue? Thanks
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic