• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

How do you define in your code which key/passw to associate with which application

 
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is my first client to a secure web service using axis2. Using



To create the appropriate soap envelope. My question is how do you define in your code which key/password to associate with which application? Confused since this is the first time dealing with web services. Thank you for your time.
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SOAP Extensions.

Key and/or password data should be passed as SOAP Headers. This is how you extend SOAP. By creating SOAP headers which are handled by Handlers, either client-side or server-side.

In regards to "code", you write the "code" of the Handler classes and you write the "code" which creates, sends and receives the reply of the SOAP Envelope.

Handlers are configured for web services in the services deployment descriptor. How this is actually accomplished depends upon which SOAP Engine you are using.
[ November 06, 2008: Message edited by: James Clark ]
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The standard way to secure a web service is to use WS-Security. While it's possible to use that programmatically through API calls, all SOAP stacks I've seen also allow it to be configured outside of the code in config files. For Axis2, this is implemented by its Rampart module.
 
Now I am super curious what sports would be like if we allowed drugs and tiny ads.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic