Solved

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

Posted on 2008-06-11
6
356 Views
Last Modified: 2008-07-22
How to send the id/pass through the soap header ?
0
Comment
Question by:cofactor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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…
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:

740 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