webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

How to setup Curl to send the message to webMethods EDIINT Module for testing 

Wed December 12, 2018 02:14 AM

Below are the steps to set up the curl for testing your webMethods EDIINT Module environments.

  • Install curl from here.
  • Next, Configure the EDIINT receive service to be invoked as anonymous by changing the execute ACL to anonymous.
  • Next, use below command to send the dummy message to default EDIINT partner.
  • General Command to send the message to Module

curl -v -H "User-Agent: Curl utility" -H "Mime-Version: 1.0" -H "AS2-Version: 1.2" -H "AS2-From: ReceiverAS2" -H "AS2-To: SenderAS2" -H "Date: Fri, 16 Dec 2016 23:12:32  IST" -H "Subject: EDI_850_KAPurchaseOrder" -H "Message-Id: Test-001" -H "Content-Transfer-Encoding: binary" -H "EDIINT-Features: multiple-attachments" -H "Disposition-Notification-To: ReceiverAS2" -H "Disposition-Notification-Options: signed-receipt-protocol=required,pkcs7-signature;signed-receipt-micalg=required,sha1" -H "Content-Type: application/edi-x12; charset="utf-8"" -d "this is a test"  http://localhost:5555/invoke/wm.EDIINT/receive
  • For requesting synchronous MDN

    curl -v -H "User-Agent: Curl utility" -H "Mime-Version: 1.0" -H "AS2-Version: 1.2" -H "AS2-From: ReceiverAS2" -H "AS2-To: SenderAS2" -H "Date: Fri, 16 Dec 2016 23:12:32  IST" -H "Subject: EDI_850_KAPurchaseOrder" -H "Message-Id: Test-001" -H "Content-Transfer-Encoding: binary" -H "EDIINT-Features: multiple-attachments" -H "Disposition-Notification-To: ReceiverAS2" -H "Disposition-Notification-Options: signed-receipt-protocol=required,pkcs7-signature;signed-receipt-micalg=required,sha1" -H "Content-Type: application/edi-x12; charset="utf-8"" -H "Accept:" -d "this is a test"  http://localhost:5555/invoke/wm.EDIINT/receive
  • For requesting async MDN

    curl -v -H "User-Agent: Curl utility" -H "Mime-Version: 1.0" -H "AS2-Version: 1.2" -H "AS2-From: ReceiverAS2" -H "AS2-To: SenderAS2" -H "Date: Fri, 16 Dec 2016 23:12:32  IST" -H "Subject: EDI_850_KAPurchaseOrder" -H "Message-Id: Test-001" -H "Content-Transfer-Encoding: binary" -H "EDIINT-Features: multiple-attachments" -H "Disposition-Notification-To: ReceiverAS2" -H "Disposition-Notification-Options: signed-receipt-protocol=required,pkcs7-signature;signed-receipt-micalg=required,sha1" -H "Receipt-delivery-option: http://localhost:5555/invoke/wm.EDIINT/receive" -H "Content-Type: application/edi-x12; charset="utf-8"" -H "Accept:" -d "this is a test"  http://localhost:5555/invoke/wm.EDIINT/receive
  • For sending a duplicate message to validate your integration behavior execute mentioned command twice.

     


#B2B-Integration
#curl
#ediint
#webmethods-ediint-module
#as2-testing
#wiki
#webMethods
#as2

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads