howto invoke a service in another IS via java

Hi All,

I need to invoke a service which is in IS2 from a java service which will be in IS1. The Java service should check for authentication before invoking the service in IS2.

Tell me procedure how I go about it

One approach would be to create a remote alias using the IS Admin console to the IS2 and making the service call using pub.remote:invoke. This service takes input of alias, servicename (in this case, your java service). The input parameters for the service should be in the pipeline.

By using the alias, the authentication part is already taken care.

Hope this helps.

Hi anitha_kuganesan,

That is correct but i want to give authentication before executing that service.
can you breif me on that with some lines of code.

Thanks a lot