CustomWare
 
 

Question

I have a service I've created to perform some admin or support task: how can I invoke that remotely?

Answer

The trick is to use the Developer tool to generate a thick client example application.
Most likely you'll find java an easy choice:

  • cross platform
  • native language of the Integration Server
  • less "mucking around" with getting the client to compile
    To do this select your service in the Developer tool, go to tools-> generate code, select "For calling this service from a client".
    You will get a prompt for a directory to dump the created code, select a directory on your local drive and open the readme text file to find out how to get things compiled. In java terms you'll need the client.jar and the entrust jars, but once you have that in the classpath compilation should be easy.
    From this dummy client app you should modify it to chop out the unnecessary code or to change the way the required input gets in. You'll also need to put in your username/password that's used to connect to the Integration Server. In some cases you might find that turning on Anonymous invoke permissions on the service is a way to get around needing to supply a username/password.

To script this, just create a shell script or BATch file that invokes java with your client app's class in the command. Or in the case of other languages such as C/C++ you can invoke the compiled app directly.