Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

webservice client & ws-security

Thread view: 
Dirk Daems - 19 Jun 2006 20:37 GMT
Hi,
I want to call a webservice using a Java proxy I created from a wsdl
file. The webservice expects a ws-security username token in the SOAP
header. Is there a common way to add this header information when
invocing a webservice from a servlet?

Kind regards,
Dirk
John W. - 19 Jun 2006 23:12 GMT
> Hi,
> I want to call a webservice using a Java proxy I created from a wsdl
[quoted text clipped - 4 lines]
> Kind regards,
> Dirk

If you are using Apache Axis for the client you could use WSS4J (also
an Apache Web Services project), it supports the Username Token
Profile.

John
blueice - 20 Jun 2006 08:19 GMT
John W. schreef:

> > Hi,
> > I want to call a webservice using a Java proxy I created from a wsdl
[quoted text clipped - 10 lines]
>
> John

Ok John,
WSS4J provides utility methods to enrich a DOM document with a username
token. But in a webservice client you normally just call a Java proxy
class: you don't access the SOAP DOM document. So, is it possible to
enrich the header with the token without accessing the SOAP DOM
document?

Kind regards,
Dirk
John W. - 20 Jun 2006 19:58 GMT
> John W. schreef:
>
[quoted text clipped - 22 lines]
> Kind regards,
> Dirk

The website provides examples of how to use an axis client
configuration file and how to programatically insert a Username Token.
According to the examples you can use the generated java classes but
you will need to call the _setProperty method of the axis Stub class in
order to inject the header.    

John


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.