Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "XmlRpc Service Properties"
(Created page with "These following may be provided as '''service properties''' when a remote service is registered. For example: <pre> // (If not explicitly given here, the provider is free to...") |
|||
Line 18: | Line 18: | ||
! Default Value | ! Default Value | ||
|- | |- | ||
− | | ecf.xmlrpc.server.uriContext | + | | '''ecf.xmlrpc.server.uriContext''' |
| URI context for remote service. NOTE: This *must* correspond to a HttpService impl currently running. This, along with uriPath will complete the URI for the remote service...e.g. the defauilt complete URI is: http://localhost:8181/xml-rpc | | URI context for remote service. NOTE: This *must* correspond to a HttpService impl currently running. This, along with uriPath will complete the URI for the remote service...e.g. the defauilt complete URI is: http://localhost:8181/xml-rpc | ||
− | | String | + | | String |
− | | http://localhost:8181 | + | | '''http://localhost:8181/''' |
|- | |- | ||
− | | ecf.xmlrpc.server.uriPath | + | | '''ecf.xmlrpc.server.uriPath''' |
| Path for URI...e.g. /xml-rpc is default. This, along with uriContext will complete the URI for the remote service...e.g. the defauilt complete URI is: http://localhost:8181/xml-rpc | | Path for URI...e.g. /xml-rpc is default. This, along with uriContext will complete the URI for the remote service...e.g. the defauilt complete URI is: http://localhost:8181/xml-rpc | ||
− | | String | + | | String |
− | | | + | | '''xml-rpc''' |
|} | |} |
Revision as of 19:56, 18 October 2019
These following may be provided as service properties when a remote service is registered. For example:
// (If not explicitly given here, the provider is free to choose a default configuration for the service) props.put("service.exported.configs","ecf.xmlrpc.server"); props.put("ecf.xmlrpc.server.uriContext","http://myhost.com:8080"); // NOTE: myhost.com:8080 should be exposed via HttpService impl // Register a new TimeServiceImpl service with the above props bundleContext.registerService(ITimeService.class, new TimeServiceImpl(), props);
ecf.xmlrpc.server config
Property Name | Description | Type | Default Value |
---|---|---|---|
ecf.xmlrpc.server.uriContext | URI context for remote service. NOTE: This *must* correspond to a HttpService impl currently running. This, along with uriPath will complete the URI for the remote service...e.g. the defauilt complete URI is: http://localhost:8181/xml-rpc | String | http://localhost:8181/ |
ecf.xmlrpc.server.uriPath | Path for URI...e.g. /xml-rpc is default. This, along with uriContext will complete the URI for the remote service...e.g. the defauilt complete URI is: http://localhost:8181/xml-rpc | String | xml-rpc |