I am working on an integration project, loading the data into Ariba . I am asked to use the HTTP form post methodology to load the master data into Ariba. Data is in CSV format that is zipped, which should be added to the HTTP request and then submitted, according to the technical spec. I am getting the following error and I could not find any lead on that error.
org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://s1-integration-eu.ariba.com/Buyer/fileupload?realm=XXXXXXXXX with statusCode: 400
HTTP Configuration: (HTTP adaptor to load data in Ariba)
Address - https://s1-integration-eu.ariba.com/NBuyer/fileupload Query - realm=XXXXXX ProxyType - Internet Method - POST Authentication - Basic/None (I tried with both options, still getting the error) CredentialName - XXXXX (if the above is chosen as Basic)
HTTP Headers: (This is set in Groovy script)
message.setHeader('content-type','application/octet-stream; charset=ISO-8859-1') message.setHeader('sharedsecret','ARIBA123') message.setHeader('fullload','true') message.setHeader('event','Import Batch Data')
Please let me know where I am wrong.