Solved

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

Posted on 2008-06-11
6
353 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

777 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