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 / August 2006

Tip: Looking for answers? Try searching our database.

Apache Axis and SAML

Thread view: 
hicks@bigmailbox.net - 22 Aug 2006 15:11 GMT
I've looked at the examples of calling a simple web service on the
Apache Axis website.
I've also looked at the examples of using WSS4J in conjunction with
Axis. I'm confused about how WSS4J can be used in the context of the
basic TestClient example from the Axis developer's guide (below). There
is no specific example corresponding to this.

I'd like to be able to add SAML tokens to a SOAP message, but I have a
couple of basic questions:

1. The WSS4J examples make use of a callback class to manipulate the
SOAP message. How is this callback class registered, in the context of
the example below.

2. The examples get a reference to the SOAP envelope object, but how do
I obtain this, in the context of the example below.

So, if I wanted to add a SAML user authentication token to this web
service operation call, how would this be achieved?

Thanks.

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;

public class TestClient {
 public static void main(String [] args) {
 try {
   String endpoint =
        "http://ws.apache.org:5049/axis/services/echo";

   Service  service = new Service();
   Call     call    = (Call) service.createCall();

   call.setTargetEndpointAddress( new java.net.URL(endpoint) );
   call.setOperationName(new QName("http://soapinterop.org/",
echoString"));

  String ret = (String) call.invoke( new Object[] { "Hello!" });

   System.out.println("Sent 'Hello!', got '" + ret + "'");
   } catch (Exception e) {
   System.err.println(e.toString());
 }
}
}
Oliver - 24 Aug 2006 17:38 GMT
I'm also interested in SAML in Web Services and also in same environement
like
previous writer.

Cheers!

> I've looked at the examples of calling a simple web service on the
> Apache Axis website.
[quoted text clipped - 43 lines]
> }
> }


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



©2009 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.