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.