Home
TeamSite
OpenAPI Service Locator
rpchris
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?
Find more posts tagged with
Comments
Migrateduser
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
rpchris
That did the trick. Thanks