Solved

How to send the id/pass through the soap header ?

Posted on 2008-06-11
6
352 Views
Last Modified: 2008-07-22
How to send the id/pass through the soap header ?
0
Comment
Question by:cofactor
  • 3
  • 2
6 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 21767260
0
 
LVL 6

Expert Comment

by:manuel_m
ID: 21767268
I think that is what you are searching for:
http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/soapheader/index.html

If it is not, please specify your problem.

manuel
0
 
LVL 6

Expert Comment

by:manuel_m
ID: 21767271
ah, one minute too late :D
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:cofactor
ID: 21980179
I am doing  some other way ...

i am using the  Call object of axis.  ....its auto generated code piece found in the Stub class.

org.apache.axis.client.Call _call = createCall();

_call  has setProperty  method where i plug in the id/pass and it works fine !

In fact , I have not tested the code snippet by yours and i am not sure whether i should award the points for the untested code snippets sent by you guys.

please throw your comments and let me finalize the status.

I would  prefer  to  close the question and refund the points  if there  is no objection.

thanks
0
 
LVL 6

Expert Comment

by:manuel_m
ID: 21980244
CEHJ sent you a link to a code listing and I sent you the link to the page where the code listing can be found... But he was first :-)

I think you should claim refund the points because you found an other solution than provided.

manuel
0
 

Accepted Solution

by:
cofactor earned 0 total points
ID: 21988882
Ok...i am closing this question with a refund points request.


I am posting my findings ..

(1) use  WSDL2java of axis to generate stubs .....now , you look at the stub class .....you might see  your business methods there ....for each business methods you will find a code like
org.apache.axis.client.Call _call = createCall(); ......dont worry ........these are all auto generated .

add setProperty  for the id/pass .to this _call object

(2)recompile the  whole code base again

now, whenever you call your business methods, id/pass will go to the service .

thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupSum6 challenge 6 76
groupNoAdj 7 84
best (free) software to access postgres db (java) 1 32
servlet filter example 37 37
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now