Solved

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

Posted on 2008-06-11
6
351 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

757 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

18 Experts available now in Live!

Get 1:1 Help Now