Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > webservice client & ws-security

Reply
Thread Tools

webservice client & ws-security

 
 
Dirk Daems
Guest
Posts: n/a
 
      06-19-2006
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
 
Reply With Quote
 
 
 
 
John W.
Guest
Posts: n/a
 
      06-19-2006
Dirk Daems wrote:
> 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


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

 
Reply With Quote
 
 
 
 
blueice
Guest
Posts: n/a
 
      06-20-2006

John W. schreef:

> Dirk Daems wrote:
> > 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

>
> 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


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

 
Reply With Quote
 
John W.
Guest
Posts: n/a
 
      06-20-2006

blueice wrote:
> John W. schreef:
>
> > Dirk Daems wrote:
> > > 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

> >
> > 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

>
> 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


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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem to call a WEBSERVICE in another WEBSERVICE (AXIS/ TOMCAT) Cyril Java 2 06-01-2006 06:07 PM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista ASP .Net 1 01-26-2006 12:05 PM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista ASP .Net 0 01-26-2006 08:13 AM
WebService on Java server versus WebService on .NET Mr. x Java 2 10-09-2003 11:21 PM
use another webservice in a webservice Mr. x ASP .Net Web Services 0 09-26-2003 10:59 PM



Advertisments