OpenAPI Service Locator

I am trying to run the OpenAPI examples that came with TeamSite. I am running the examples on a seperate client machine rather than on the TeamSite server. (the examples work fine when run on the TS server)

Looking through the documentation, it says if running on seperate machines I should specify the Service Locator by adding the host and port of the TeamSite server to the XML like so:

set OPENAPI_SERVICE_LOCATOR="<IWRMINamingServiceLocator><host>myhost</host><port>1099</port></IWRMINamingServiceLocator>"

however when I run the example I get a ConnectionException: Connnection refused to host <my client's ip address>

It doesn't seem to be recognizing the host parameter that I provided.

Any suggestions?

Comments

  • Hi,
    Can you try this instead?

    String OpenApiServiceLocator ="<IWRMINamingServiceLocator/>";

    System.setProperty("interwoven.api.locator", OpenApiServiceLocator);
    String accessServiceName = "rmi://" + host + ":1099/IWAccessService";

    IWAccessService accessService =((IWAccessService) (IWService.locate(accessServiceName)));
    ... etc.

    This should work for you.

    Regards,
    Narendra


    Best Regards,
    Narendra
  • That did the trick. Thanks
TeamSite Developer Resources

  • Docker Automation

  • LiveSite Content Services (LSCS) REST API

  • Single Page Application (SPA) Modules

  • TeamSite Add-ons

If you are interested in gaining full access to the content, you can register for a My Support account here.
image
OpenText CE Products
TeamSite
APIs