Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-06-11
6
Medium Priority
?
360 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 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

927 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