<< Round up of trip to Tokyo and AusLUG | Home | Amazon gives Google a run for its money with CloudSearch >>

Authenticating a web service request

In my current project I needed to place an authenticated web services request from Lotus Domino to an Oracle SOA endpoint. Turned out to be extremely easy using the Lotus Domino web services consumer feature as I just used the setCredentials(String, String) method which then adds the necessary Authorization header to the HTTP call. Below is an example.

MyEchoServiceLocator l = new MyEchoServiceLocator();
MyEcho u = l.getDomino();
u.setCredentials("Domino Admin", "password");
String result = u.echo("HelloWorld");
System.out.println("Result: " + result);



Avatar: Bob Balaban

Re: Authenticating a web service request

 Mikkel - have you ever done MS "Mex" authentication with a Java client? There is code out there on the net, but the certificate management worries me...

Avatar: Mikkel Flindt Heisterberg

Re: Authenticating a web service request

 No I haven't.


Add a comment Send a TrackBack