on 08-09-2017 1:30 PM
Hello.
Im using oData connector in IOS templete project, generated by SAP Cloud Platform and everything seems to be working fine but im geting error as i trying to get some data:
the format of value 'application/json odata=verbose' is invalid
So my data source cant send me data with verbose, so im trying to send httpheaders before query like this:
let httpHeaders = SAPOData.HTTPHeaders()
httpHeaders.setHeader(withName: "Accept-Language", value: "US")
httpHeaders.setHeader(withName: "Accept-Type", value: "application/json")
return try CatalogGoods.array(from: self.executeQuery(query.from(EnterpriseV8Metadata.EntitySets.catalogGoods),headers: httpHeaders).entityList()
But still getting the same error, is theare any way to change Accept-Type to get data in just application/json
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.