Quantcast
Viewing all articles
Browse latest Browse all 3353

SMP3 SP10 IGW OData Service Error

Hi,

 

We have created OData service in SMP 3 SP10 connecting with REST backend. We are getting error while invoking the OData service.

 

From trace we see the error.

 

message = Bad request payload or mapping error:

 

Following is the details

 

I have created a OData Model with 2 Fields.

 

EntitySet

 

ID : String

FileList:String

 

 

REST Backend Service JSON  Response

 

Success Response

{"FileList":

[

   "http://serverhost/files/sample1.pdf",

   "http://serverhost/files/sample2.pdf"

]

}

 

Error Response

{

"Error":"No files matched the search criteria"

}

 

 

In the processResponseData method we are just passing back the response from backend and put some log message.Attached is Read script for reference.

 

Following is what we have observed in testing.

 

1. When we get Error response from REST service our processResponseData code executes and sends the processed response to Mobile app.

 

{"results":[{"Error":"No files matched the search criteria"}]}

 

2. When we get success response from REST service we get error message = Bad request payload or mapping error: We don't find any log message from processResponseData method printed in Log file.

 

The below error response sent to Mobile App.

 

<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

   <code>INTERNAL_SERVER_ERROR</code>

   <message xml:lang="en">Could not perform the operation, contact your System Administrator: Transaction ID :XXXXX</message>

</error>


Appreciate if you could help on resolving the issue.

 

 

 

Thanks in advance.

Regards,

Ashwin


Viewing all articles
Browse latest Browse all 3353

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>