• 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

SOAP WS Authentication

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using SOAP WS.

<soapenv:Header>

<e1:AuthSecurity>

<e1:AuthentcationToken>

<e1:Username>?</e1:Username>

<e1:Password>?</e1:Password>

</e1:AuthentcationToken>

</e1:AuthSecurity>

</soapenv:Header>

How to set username & password in soap header.
Generated java classes using JAXB, but soap header is not available in that java class.
But it is available in all the request xml.


 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This doesn't look like WS-Security; is it some kind of home-grown security system?

Why do you want to set auth headers when "it is available in all the request xml" - what does that mean if not that the auth headers are in the request already?
 
Ranch Hand
Posts: 296
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Raghu Sha wrote:
<e1:Password>?</e1:Password>


That's one look suspicious, you never should pass the password like this. Use at least hashing if you do your own authentication mechanism.
 
reply
    Bookmark Topic Watch Topic
  • New Topic