Skip to Content

sender REST Adapter Validations

hello,

I am working on REST sender Adapter,

1. We are getting the "Internal Server error 500" for the missing Mandatory fields in legacy application.

2. If I use this URL in browser then I am getting the following message "Catching exception calling messaging system: Unable to parse XML message payload to extract operation for receiver determinationorg.xml.sax.SAXParseException: Premature end of file."

3. I selected option in Integration scenario "Validation by Adapter" option then We are getting this error else we are getting message successfully.

4. I want to do Validate the fields, Once all mandatory fields were filled then only message should be posted to PO, Now it is happening, but the legacy application should get the proper error information, now they are getting only 500 internal server error.

Regards,

Khaja.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 20, 2016 at 12:21 PM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2016 at 12:42 PM

    Hi Khaja,

    You can configure REST sender channel like below.

    You will get below response from PI in postman.

    Regards,

    Praveen.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 19, 2016 at 07:18 AM

    hi Praveen,

    Thx for sharing, but this error is coming html tags, can we get this error in xml or json? In the custom error handling, what ever i type there it is coming as constant in SOAPUI response, I cannot get the message_result variable value.

    Regards,

    Khaja.

    Add comment
    10|10000 characters needed characters exceeded