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?
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?
0
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,
Narendra0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 144 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
TeamSite Developer Resources
If you are interested in gaining full access to the content, you can register for a My Support account here.
- 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.