Set up web service action for AS2

Prev Next

Set up the outbound web service actions to export data to the AS2 web app. With the mentioned settings, the web service action calls the send method of the AS2 web app to send the data to the EDI partner.

For more information, refer to Set up web service action - Outbound.

For the outbound web service actions for AS2, use these settings:

Field

Setting

Acts as

Outbound

Request message

Enter the desired EDI export message. For example, use one of the EDI tutorial export messages.

Resource

api/as2/senddata

Client HTP class

BisWsAs2ClientHttpRequest

For the outbound web service actions for AS2, set these attributes:

Name

Type

Value or Custom

Style

Description

AS2-Message-Id

Custom

BisTools::getGuid()

Header

Gets the unique message ID to be used in the message and file name.

AS2-Subject

Value

For example: Invoice or Order.

Header

You can define a subject that is used in the file name. Define the subject based on the request message that is linked to web service action.

AS2-Encoding

Value

Binary

Header

You can send the file content as binary to the AS2 web app.

AS2-documentContentFormat

Value

PlainText or Base64String

Header

You can, optionally, send the document content format to the AS2web app. If no value is set, the default value PlainText is applied. If the attribute value is set to Base64String, the content is first decoded, and then processed.