Calling a Web Service Consumer from a Java Agent?

Hi,

I created a Web Service Provider in Java.

I then created a Web Service Consumer in Java that uses the WSDL of the Web Service Provider.

I want to try to use Java in 8.5.1 from now on, so I’m doing some tests.

I ran across those posts:

http://www-10.lotus.com/ldd/nd85forum.nsf/5f27803bba85d8e285256bf10054620d/9e47e668942176b9852576af00338b61?OpenDocument

http://www-10.lotus.com/ldd/nd85forum.nsf/DateAllThreadedWeb/0e7f596427e1861e852576ad007c7cac?OpenDocument

They helped a lot!

I have then created a Java Agent to consume my Web Service Provider by using the Web Service Consumer. I try to import the Web Service Consumer in my Agent by using this:

import com.domain.security.*;

I copied/pasted this from the AuthenticationService.java from the Web Service Consumer (my class is called Authentication):

/*

  • To instantiate a callable instance for invoking this service, copy and paste from the following:

    import com.domain.security.*;

    // Refer to com.domain.security.Authentication.java for service interface methods:

    Authentication stub = new AuthenticationServiceLocator().getDomino();

*/

However, when I try to save my agent, I receive the following error:

“The import com.domain cannot be resolved”

I must be missing something…

I’m new to the Eclipse Designer and Java Web Services…

Can someone help me on this?

Thanks!

Subject: Found it!

It was easy… in case it might help somebody.

In my Java agent, I just need to click on the “Import” button, select “Web Service Consumer” and then I can select the “Web Service Consumer” and use it in my agent.

Now, I can call my web service without any problem.