my dog learned polymorphism
The moose likes Web Services and the fly likes WSSE Security in SOAP HEADER Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSSE Security in SOAP HEADER" Watch "WSSE Security in SOAP HEADER" New topic


Sunil Sunil

Joined: Jun 08, 2009
Posts: 1

I am trying to put explicit WSSE:userNameToken (i.e. user name and pasword) in web service,so that when the external system generate the client proxy then user and password comes automatically.
What I have done,I have defined Security element/message of "oasis-200401-wss-wssecurity-utility-1.0.xsd" in WSDL itself and given the reference in <binding> -> <operation> tag.
Now when external system loads the WSDL file,it only generate empty <Security> tag under <Header>.
I have also tried to customise the <Security> tag but that doesn't work because once I started customising the <Security> element,I haven't used existing element defined in "oasis-200401-wss-wssecurity-utility-1.0.xsd".
So anybody can help me please to get through this problem. Here is my WSDL file

I agree. Here's the link:
subject: WSSE Security in SOAP HEADER
It's not a secret anymore!