Integration Server 10.3 | Publish-Subscribe Developer’s Guide | Exactly-Once Processing for Documents Received by webMethods Messaging Triggers | Building a Document Resolver Service
 
Building a Document Resolver Service
A document resolver service is a service that you create to perform duplicate detection. Integration Server uses the document resolver service as the final method of duplicate detection.
The document resolver service must do the following:
*Use the pub.publish:documentResolverSpec as the service signature. Integration Server passes the document resolver service values for each of the variables declared in the input signature.
*Return a status of NEW, IN DOUBT, or DUPLICATE. Integration Server uses the status to determine whether or not to process the document.
*Catch and handle any exceptions that might occur, including an ISRuntimeException. For information about how Integration Server proceeds with duplicate detection when an exception occurs, see Document Resolver Service and Exceptions. For information about building services that throw a retry exception, see webMethods Service Development Help.
*Determine how far document processing progressed. If necessary, the document resolver service can issue compensating transactions to reverse the effects of a partially completed transaction.