Receiving Error Messages

Adapter for X.400 sends an error message if an error occurs during the sending or retrieving of X.400 messages via the X.400 Gateway service. For example, you may receive an error message if there is no connection to the X.400 mailbox or if there is an UA-FI error.

Before you can receive X.400 error messages, fulfill the following prerequisite:

  1. Create a scheduled task that runs the sendAndFetch or send service. For more information, see Sending to and Fetching Messages from X.400 Server.

To receive X.400 submitted or non-submitted notifications, you must do the following. In your client code that sends the document, invoke the wm.X400forTN.wm.x400.tn.rec:receiveX400 service.

After you invoke the service, the receiveX400 service retrieves the error message (Trading Networks document type x400statusIn) out of the Inbound folder of the X.400 Gateway.

The following table specifies what input parameters you need to provide for the receiveX400 service for the error message:

Type of X.400 message Input parameters for the receiveX400 service
Error message Alias Name of the remote Integration Server, if the X.400 Gateway does not reside on the local machine.
Note: You can create a scheduled task for this service, as well as for the sendandFetch or fetch service, to automate receipt of the notification.

If you want to further process the error message, you can set up a Trading Networks processing rule. For example, you can use the Alert e-mail action to send the error text to the administrator.