• 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

Martin Kalin WS Security Example - Client CallBackHandler not getting triggered

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I set up a client for calling a soap webservice as mentioned in Martin Kalin's web services up and running Page 248. The callback handler does not seem to be triggering.

And moreover , the output dump of the SOAPMessage does not have a header added.

I figured the getHeader call inside the SOAPHandler will be adding this header along with the Username tokens - username and password.

The code is as-is from the book but not sure why it is not creating the expected SOAPMessage as shown in page 256

I am preparing for the certification so i figured this is the right place to ask such questions. Pardon me if its not. Also i am new to SOAP web services.

Code for the client below

caller


CustomClientHandler



CustomPrompter


client.xml
 
Bartender
Posts: 2418
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't have Martin Kalin's second edition.
But you may want to download the second edition sample code here:
https://github.com/mkalin/jwsur2

You may want to compare with the source code in the book and code in the zip file.
reply
    Bookmark Topic Watch Topic
  • New Topic