• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem in implementing SOAPHandler

 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 .
 
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 .



reply
    Bookmark Topic Watch Topic
  • New Topic