Repository berikut berisi berkas projek untuk artikel saya di RESTful EDIFACT dengan Vert.x dan PHP cURL
Java JDK 8
$ gradlew run
POST /999US_AS2_20150715190948
$ curl -i -X POST -H "Content-Type: application/EDIFACT" -d "UNA:+.? 'UNB+UNOD:3+4680001859997:14+4670001659017:14+080430:1446+CAR000001++SUPAPEXORV13MB++1++1'UNH+123456789+ORDERS:D:01B:UN:EAN010'BGM+220:::ORDERS+12345678+9'DTM+137:20080430:102'DTM+2:20080501:102'DTM+64:20080501:102'DTM+63:20080503:102'FTX+PUR+1++Confirmation of the august 23rd order done by phone'RFF+ACD:26862'NAD+SU+4607077429992::9++SUPPLIER1 SRAGEN+24 BOL NIKITSKAYA ULITSA+SRAGEN++103009'RFF+VA:RU56225432'CTA+IC'COM+0033169479417:FX'NAD+DP+4607077429992::9++CARREFOUR SRAGEN+101 BOL NIKITSKAYA ULITSA:ADDITIONAL INFORMATION+SRAGEN++24024'RFF+YC1:12987'RFF+ACD:01'NAD+BY+4607077429994::9'RFF+SD:10'CUX+2:RON:9'LIN+1++4602345111115:SRV'IMD+F+ANM+:::white paper A4 Description text of the Item format'QTY+21:500'QTY+59:100'PRI+AAA:65.50::NTP'PAC+100++CT'UNS+S'CNT+2:1'UNT+27+123456789'UNZ+1+CAR000001'" http://localhost:5080/999US_AS2_20150715190948
HTTP/1.1 202 Accepted
Content-Length: 0