ReceiptReplyMode Property

The expected receipt reply mode.


public int getReceiptReplyMode();
public void setReceiptReplyMode(int receiptReplyMode);

Enumerated values: public final static int rrmSync = 0; public final static int rrmAsync = 1; public final static int rrmNone = 2;

Default Value



This setting tells the class how to expect or deliver a receipt. Possible values are:

0 (rrmSync - default) The receipt is expected in the response to the request. This is only valid when sending files from a client to a server (push). This is a synchronous receipt (the receipt is returned in the same HTTP connection).
1 (rrmAsync) The receipt is returned at a later time. The receipt may be returned by itself in a separate connection, or may be bundled with a subsequent request. This is the only available mode when receiving files from a server (pull).
2 (rrmNone) No receipt is expected.

It is important to always set this property to the correct value in both AS4Client and AS4Server, whether sending or receiving, so the class can build a valid message. This should be set to the previously agreed upon value between the parties in the agreement identified by AgreementRef

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 Java Edition - Version 20.0 [Build 8162]