Skip to Content
0

sender REST Adapter Validations

Oct 20, 2016 at 07:35 AM

266

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

srikanth reddy d Oct 20, 2016 at 12:21 PM
0
Share
10 |10000 characters needed characters left characters exceeded
Praveen Gandepalli Oct 20, 2016 at 12:42 PM
0

Hi Khaja,

You can configure REST sender channel like below.

You will get below response from PI in postman.

Regards,

Praveen.


Share
10 |10000 characters needed characters left characters exceeded
Khaja Sk Nov 19, 2016 at 07:18 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded