Process

Processes the input message and returns the response message.

Syntax

public Message process (Message message) 

Parameters

  • Input message

Results

Returns the response message.

Exceptions

  • TimeoutException: When invalid configuration causes the inability to connect to the server. For example, an unknown protocol would cause a ConfigurationException. There is no value in attempting to retry connect() when this error occurs.
  • ConnectionException: When unable to connect to the server. It might be possible to reconnect, depending on the underlying cause of the exception.
  • MessageProcessingException: When an error occurs on the server that is not due to Configuration or Connection issues.

Example

try 
{ 
	//Process Input Message, return output Message 
	Message response = service.process(message); 
} 
catch (ConnectionException e) 
{ 
	// handle connection issue (retry, report error, etc.) 
} 
catch (TimeoutException e) 
{ 
	// handle timeout issue (retry, report error, etc.) 
} 
catch (MessageProcessingException e) 
{ 
	// report error 
}