Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] Webservice support in OpenSaml

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] Webservice support in OpenSaml


Chronological Thread 
  • From: Brent Putman <>
  • To:
  • Subject: Re: [OpenSAML] Webservice support in OpenSaml
  • Date: Mon, 25 Oct 2010 19:12:15 -0400

To add to what Scott already said:


On 10/22/10 1:01 PM,

wrote:
> Hi ,
>
> I am trying to use SP initiated SAML interaction. I generated stubs
> for the Remote service using Axis2. But here the issue lies in
> converting the OpenSAML request objects to WS Client stub objects and
> vice-versa in case Response.
>
> What is the feasible and best approach for handling SOAP interactions
> where we get relieved from so called transforming objects to/from
> OpenSAML objects?


If you want to use Axis2, b/c you are using modules, etc that are
necessary, then you have to deal with the impedance mismatch between
Axis2's Axiom model and OpenSAML's DOM model. Axis2 provides a
DOM-based impl of the Axiom API called DOOM. However, last I checked
you couldn't use it with OpenSAML b/c it didn't implement all of DOM
Level 3. I don't know if that has changed, you'd have to ask the Axis2
people.

The other alternative is that you just manually serialize and re-parse
the OpenSAML objects, to convert to/from Axiom where needed. Yes, it's
expensive, but it's the only choice I know of if Axiom DOOM is not yet
an option.

>
> Can i use xml over http rather than using AxisStubs or SOAPClient? so
> that i will use HttpClient to post the message and will read the
> response from the OutPutStream.

I'm rustly on the various modes of usage of the Axis2 client stuff, but...

If you don't actually *need* to use Axis2 code for you client (i.e.
don't need WS-* modules, etc), then we have a basic SOAP client in
OpenSAML that you can use. An example is here:

https://spaces.internet2.edu/display/OpenSAML/OSTwoUserManJavaSOAPClientExample

It's very simple, nothing fancy, just uses HTTPClient to send/receive a
SOAP 1.1 Envelope, everything represented as OpenSAML XMLObjects.

--Brent




Archive powered by MHonArc 2.6.16.

Top of Page