EBMSMessageSender

public class EBMSMessageSender extends MessageSender

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

<part name="cpaId" type="s:string" />
<part name="service" type="s:string" />
<part name="action" type="s:string" />
<part name="convId" type="s:string" />
<part name="fromPartyId" type="s:string" />
<part name="fromPartyType" type="s:string" />
<part name="toPartyId" type="s:string" />
<part name="toPartyType" type="s:string" />
<part name="refToMessageId" type="s:string" />
<part name="serviceType" type="s:string" />
Author:Twinsen Tsang

See also: hk.hku.cecid.corvus.ws.data.EBMSMessageData, hk.hku.cecid.corvus.ws.data.EBMSPartnershipData

Fields

NS_URI

protected static final String NS_URI

The Namespace URI

Constructors

EBMSMessageSender

public EBMSMessageSender(FileLogger l, EBMSMessageData m, EBMSPartnershipData 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

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()

[@EVENT] Retrieve the id of newly created message from the SOAP message.

onStart

public void onStart()

Initialize the SOAP Message.