I have created one soap handler and a web service .
Now I want to understand how this will handler methods will be called , I mean what I have to do to call this handler so that header will be populated in the SOAP i/o XML?
At least I want to print the sysout .
Please help.
Monoj Roy
Ranch Hand
Posts: 98
posted 8 years ago
Okay here is the problem in more detail .
I want to secure my web service using a userid and password .I do not want to pass the user id and password each time with the method .So I decided to pass this credential through soap header .
Now I have learned that I need to do it by some SOAPHandler and I need to explore here . Please help .
Wouldn't you want to use WS-Security for something like this? See this article
Monoj Roy wrote:Okay here is the problem in more detail .
I want to secure my web service using a userid and password .I do not want to pass the user id and password each time with the method .So I decided to pass this credential through soap header .
Now I have learned that I need to do it by some SOAPHandler and I need to explore here . Please help .
Monoj Roy
Ranch Hand
Posts: 98
posted 8 years ago
Thanks Jim for your response . I actually wanted to learn this concept of SOAPHandler using a simple step POC application .
By the way I googled a lot and find I need to create a xml file and need to give a reference of it in the Webservice using
@HandlerChain (file=http://localhost///soapHandler.xml)
I am using JAX-WS to generate the stubs but no luck ..My handler is not invoking ..
Please help .
Monoj Roy
Ranch Hand
Posts: 98
posted 8 years ago
I tried with putting the file in WEB-INF/classes but no luck . Can any help me where exactly I need to put this file so that the handler class that is secified in the xml will be get called .
@HandlerChain (file=http://localhost//../soapHandler.xml)
@HandlerChain (file=C:\..\WEBINF\classes\soapHandler.xml)
are above systex correct I tried both of them .
We should throw him a surprise party. It will cheer him up. We can use this tiny ad: