Is there a way to read Rest service body from external source ?
Hi all,
Is there a way to read rest service body from an external source, preferably Excel ? My sample rest body (POST) is as below. I want to provide data from Excel sheet and I am using open source SoapUI. I am also not sure how below type looks in CSV/XLS format.
{
"CreateInvoiceNodeRequest": {
"transactionDetails": {
"transactionId": "mx_123334",
"statusCode": "0",
"sourceSystem": "EUAM",
"startRow": "1",
"endRow": "400"
},
"userDetails": {
"userId": "cw264f",
"accountToNumber": "",
"customerName": "ATOS",
"activity": "Is it getting update in audit table, BGWKhalid"
},
"createInvoiceDetails": {
"parentHierarchyPointId": "529283",
"nodeStartDate": "20161203 00:00:00",
"nodeLabel": "khalid1",
"billPeriod": "",
"billingType": "1",
"invoiceCurrency": "USD",
"ratingCurrency": "USD",
"language": "ENG",
"billingAddressDetails": {
"addressType": "Reporting address",
"addressName": "me",
"attentionName": "",
"addressLine1": "your street",
"addressLine2": "",
"addressLine3": "",
"addressLine4": "",
"streetAddress": "",
"city": "Plano",
"state": "TX",
"province": "",
"zipCode": "75093",
"zipCodeSuffix": "",
"foreignPostalCode": "",
"countryCode": "US",
"countryName": "US",
"countyName": "",
"geoCode": "",
"siteId": ""
},
"frpdetails": {
"contactLastName": "Khalid",
"contactFirstName": "Pmode",
"jobTitle": "",
"contactTitle": "",
"contactEmailId": "pmode@nat.com",
"contactInfoTypeCode": "T",
"contactNPA": "734",
"contactNXX": "674",
"contactLineNumber": "1111",
"contactExtentionNumber": "",
"contactForeignTelephoneNumber": "",
"contactForeignTelephoneCountryCode": "",
"contactForeignTelephoneCityCode": "",
"contactForeignFAXExtention": "",
"contactForeignFAXCountryCode": "",
"contactForeignFAXTelephoneCode": "",
"contactForeignFAXTelephoneNumber": "",
"contactForeignFAXTelephoneExtention": "",
"contactAddressDetails": {
"addressType": "Contact address",
"addressName": "",
"attentionName": "",
"addressLine1": "me str",
"addressLine2": "",
"addressLine3": "",
"addressLine4": "",
"streetAddress": "",
"city": "plano",
"state": "CO",
"province": "",
"zipCode": "23432",
"zipCodeSuffix": "",
"foreignPostalCode": "",
"countryCode": "US",
"countryName": "US",
"countyName": "",
"geoCode": "",
"siteId": ""
}
},
"documentComponentlist": [{
"phpc": "00000963000640320006403300065421",
"documentType": "format",
"documentTypeValue": "1060"
}, {
"phpc": "00000963000231740002319500033447",
"documentType": "delivery",
"documentTypeValue": "C002"
}, {
"phpc": "00000963000640320006403300065425",
"documentType": "media",
"documentTypeValue": "0006"
}]
}
}
}