AS2MessageSender

public class AS2MessageSender extends MessageSender

The AS2MessageSender is a client sender sending SOAP web services request to B2BCollector AS2 plugin for transmission a AS2 message to other parnter. The web service parameters are defined in the below:

<part name="as2_from" type="s:string" />
<part name="as2_to" type="s:string" />
<part name="type" type="s:string" />
Author:Twinsen Tsang

Fields

NS_URI

protected static final String NS_URI

The Namespace URI

Constructors

AS2MessageSender

public AS2MessageSender(FileLogger l, AS2MessageData m, AS2PartnershipData p)

Explicit Constructor.

Parameters:
  • l – The logger used for log message and exception.
  • m – The message data for party information and send/recv configuration.
  • p – The partnership data.

Methods

addRequestPayload

public boolean addRequestPayload(Payload[] payloads)

getResponseMessageId

public String getResponseMessageId()

Get the message id of last successful web service query. This should be called only after onResponse()

Returns:the message id

initializeMessage

public void initializeMessage()

Initialize the message using the properties in the MessageProps.

main

public static void main(String[] args)

The main method is for CLI mode.

onResponse

public void onResponse()

Record the message id.

onStart

public void onStart()

Initialize the SOAP Message.