Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

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...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
These following may be provided as '''service properties''' when a remote service is registered.  For example:
+
These following may be provided as '''service properties''' when a remote service is registered programmatically.  For example:
  
 
<pre>
 
<pre>
Line 18: Line 18:
 
! Default Value
 
! Default Value
 
|-
 
|-
| ecf.xmlrpc.server.uriContext
+
| '''ecf.xmlrpc.server.uriContext'''&nbsp;&nbsp;
 
| 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&nbsp;&nbsp;
| http://localhost:8181
+
| '''http://localhost:8181/'''&nbsp;&nbsp;
 
|-
 
|-
| 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&nbsp;&nbsp;
| /xml-rpc
+
| '''xml-rpc'''
 
|}
 
|}

Latest revision as of 16:15, 19 October 2019

These following may be provided as service properties when a remote service is registered programmatically. 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

Back to the top