This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Webservice SOAP request username & password not retrieved

Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have the LDAP authentication and authorization configured in weblogic 10.4 (container managed)with user and group details
in a securiy realm. Similarly in my web.xml I have configured the


for the respective user and group.

In weblogic.xml I have configured, the respective container security as well.

Like :-


Now I am removing the container security with the user defined custom security.
Hence I have removed all the container security config from the weblogic as well as in the code.
My application is a webservice app, when I get a SOAP request with username & password in the header
some how weblogic server is removing the header which contains the username & password (reading the soap request
through SOAPHandler). Why this behavior is happening? If I dont remove the container security it is working fine.
Needless to say my application is deployed in weblogic 10.4

Please clarify.

Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lakxmi,

Can you please provide me the code snippet of how are you trying to access the soap request header using SOAP handler. I mean the handleMessage method of SoapHandler. This will help me to identify if there is anything that we need to do from code perspective.

Rithanya Laxmi
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is my SOAPHandler with handleMessage():-

public void handleMessage(SoapMessageContext msgctxt) {
Map map=(Map)msgctxt.get(MessageContext.HTTP_REQUEST_HEADERS);
List username=(List)map.get("Username");
List password=(List)map.get("Password");
if(username.get(0).equals("Username") && password.get(0).equals("Password")){
return "correct user "+name;
return "unknown user "+name +username.get(0)+" "+password.get(0);

please buy this thing and then I get a fat cut of the action:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic