on 2019 Feb 26 5:35 AM
Hi,
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.
Errro Message:
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.
Hi Ananda,
HTTP Status Code 400 refers to Bad Request. This means that something is wrong with the payload body.
Check if the body you are sending to Ariba is correct.
Hope this helps,
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.