Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SOAP WS Authentication  RSS feed

 
Raghu Sha
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • 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.


 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • 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?
 
surlac surlacovich
Ranch Hand
Posts: 296
Spring
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!