on 01-13-2018 1:49 AM
Hi Team,
I am working on a Synchronous flow Proxy to Rest Adapter using GET method to fetch the records.
I am able to make the successful request and when I get the response in Return, Its in JSON format which is causing my mapping failure.
In Rest Receiver Adapter, Data Format Tab, Response Format for Synchronous messages, If I select data format as JSON, I am getting error as
"MP: exception caught with cause com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '{' (code 123) in prolog; expected '<'
at [row,col {unknown-source}]: [1,1]"
If I select XML format, I get the response in JSON format, and mapping mails as it expects an XML structure.
Sample JSON Response:
{
"Data": [
{
"ID": 1,
"OverrideDateDueIndicator": false,
"BusinessUnitCode": "US",
"ReferenceNumber": "54",
"JournalID": "QRS",
"TransactionType": "GL",
"AccountNumber": "1234",
"AccountingMonth": "2015-07-01T00:00:00",
"ActivityDate": "2015-05-01T00:00:00",
"TransactionAmount": -4480.00,
"TransactionVolume": 0.00,
"TransactionVolumeUnitOfMeasure": "MCF",
"RevenueGrossAmount": 0.00,
"RevenueGrossVolume": 0.00,
"SourceDescription": "GL from Revenue",
"SourceDate": "2015-10-02T00:00:00",
"SinglePaymentIndicator": false,
"NonopJIBVoucherIndicator": false,
"OwnerBANumber": "00123",
"OwnerBASub": 1,
"Quantity1Amount": 0.0000000000,
"ArchiveCounter": 3,
"ProcessQueueID": 33455,
"BatchID": "1",
"AccountTypeCode": "EX"
},
{
"ID": 2,
"OverrideDateDueIndicator": false,
"BusinessUnitCode": "UV",
"ReferenceNumber": "5455",
"JournalID": "QRS",
"TransactionType": "GL",
"AccountNumber": "1300",
"AccountingMonth": "2015-07-01T00:00:00",
"ActivityDate": "2015-05-01T00:00:00",
"TransactionAmount": 480.00,
"TransactionVolume": 0.00,
"TransactionVolumeUnitOfMeasure": "MCF",
"RevenueGrossAmount": 0.00,
"RevenueGrossVolume": 0.00,
"SourceDescription": "GL from Revenue",
"SourceDate": "2015-10-02T00:00:00",
"SinglePaymentIndicator": false,
"NonopJIBVoucherIndicator": false,
"PropertyNumber": "test",
"MajorProductCode": "ALL",
"DivisionOrderType": "REV",
"Tier": 1,
"Quantity1Amount": 0.0000000000,
"ArchiveCounter": 3,
"CostCenter": "test",
"ProcessQueueID": 358,
"BatchID": "1",
"AccountTypeCode": "IN"
}
],
"Messages": []
}
Please advise how my response source structure should look like, and how Rest Adapter should be configured to convert JSON to XML format
rest-receiver-adapter-screenshot.jpgHi,
are you able to resolve above issue, I am also getting same issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Team,
Can you please help with above issue.
Thanks,
Varun
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.