Service. Pitney Bowes 9.0 API Guide
Реклама
Реклама
Exceptions
• ERROR-INVALID-COLUMN_NAME — an empty of null column name.
• ERROR_INVALID_VALUE — A null value.
Example
Server server = new Server(); server.setConnectionProperty(Server.HOST, "localhost"); server.setConnectionProperty(Server.PORT, "8080");
//Connect to server server.connect();
Chapter 5: The Java API
GetService
Gets the service from the server.
Note:
See the Component Reference section of this guide for a list of services that may be available to you.
Syntax
public Service getService(String serviceName)
Parameters
• Name - the name of the service
Results
Returns the specific service.
Exceptions
throws ServiceNotFoundException, ServiceCreationException
Example
Service service = server.getService("ValidateAddress");
Service
The Service class is used to process the message (i.e., send the message to the server and receive a response from the server).
This class has just one method: Process. The Process method is detailed below.
Process
Process the input message and returns the response message.
API Guide 139
Скачать
Реклама