WebApi

I have written an integration object for webApi,

localhost:8080/.../updateEmployee 

This is a post request.

I passed body as :

{
"id" : "1",
"lastName" : "abc",
"firstName" : "D"
}

It should hit the database and save the details, instead it is throwing an error saying

HttpResponse statusLine: "HTTP/1.1 500 Internal Server Error" statusCode: 500 headers: Dictionary Server: "Apache-Coyote/1.1" Content-Security-Policy-Report-Only: "object-src 'none'; report-uri /suite/rest/a/csp/latest/report;" Content-Security-Policy: "report-uri /suite/rest/a/csp/latest/report;" Requested-While-Authenticated: "false" X-Frame-Options: "SAMEORIGIN" Content-Type: "text/plain;charset=ISO-8859-1" Content-Length: "27" Date: "Thu, 14 Jun 2018 10:10:51 GMT" Connection: "close" contentType: "text/plain;charset=ISO-8859-1" body: "500 - Internal Server Error"

Value: Error

IntegrationError title: "The external system encountered an error" message: "Failed to connect to localhost:8080/.../updateEmployee" detail: "HTTP/1.1 500 Internal Server Error"

Value: Connected System

null (Connected System)

  Discussion posts and replies are publicly visible

Parents
  • Hi Chandana Priya,
    From where you are hitting that URl is it from Outside system?
    What is the smart service you are calling inside the Web Api?

    Please check the security for both Web Api and Configured Expression smart service, Also if you are trying to hit from the outside we need that set up the credentials in Admin consle for authentication.
Reply
  • Hi Chandana Priya,
    From where you are hitting that URl is it from Outside system?
    What is the smart service you are calling inside the Web Api?

    Please check the security for both Web Api and Configured Expression smart service, Also if you are trying to hit from the outside we need that set up the credentials in Admin consle for authentication.
Children
No Data