on 06-23-2016 11:12 PM
Hello Experts,
I have a PI Scenario as follows:
ECC calls-> PI Proxy -> Rest Service (setup in Communication Channel as Receiver)
When I run the rest service outside of PI with content-type set as “application/x-www-form-urlencoded” it works fine. But after configuring it in PI and testing I am getting status code 500 indicating failure to call service. The call in the logs seems fine. I do notice the Message Headers don’t reflect my content-type change but that might be because it is setting it dynamically before making the post?
Does anyone know the solution or missing key in this setup?
Thank you!
Below are screenshots of the scenario:
The REST Service is called by using POST, given 4 parameters
The content-type is application/x-www-form-urlencoded.
Below is some details from the adapter engine that show message headers.
Hi Emilio,
I would suggest you to host a service on SOAPUI on your local system and route SAP PI messages to that. That way you can compare both HTTP headers and body that you are sending to the external application.
Also, for HTTP header manipulation, you can try setting the content-Type from the rest channel itself,instead of using dynamic configuration. Here is how I have done that:
Regards,
Sanjeev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Emilio,
Can you share the exact error message? There were several fixes released for the REST adapter so the exact error message would provide a great starting point. Also if you perform an XPI Inspector trace you should be able to see at what step of the message processing is failing exactly. Can you share that too?
Regards,
Mate
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the error log from xpi inspector:
2016-06-20 10:32:40.626 | RESTOUT_HTTP_ERROR | Internal Server Error | |
2016-06-20 10:32:40.695 | MP: exception caught with cause {0} | com.sap.aii.adapter.rest.ejb.common.exception.HttpCallException: HTTP POST call to http://abc.com:8000/WebService/rest/update_operation/Date?DocNo=212&CompanyCode=XYZ15&Year=2016&info... not successful. Internal Server Error | |
2016-06-20 10:32:40.741 | AFW_ERROR | HTTP POST call to http://abc.com:8000/WebService/rest/update_operation/Date?DocNo=212&CompanyCode=XYZ15&Year=2016&info... not successful. Internal Server Error | |
2016-06-20 10:32:40.782 | REQUEST_DELIVER_ERROR_FAILED | REST_http://sap.com/xi/XI/System; com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rest.ejb.common.exception.HttpCallException: HTTP POST call to http://abc.com:8000/WebService/rest/update_operation/Date?DocNo=212&CompanyCode=XYZ15&Year=2016&info... not successful. Internal Server Error | |
2016-06-20 10:32:40.836 | STATUS_SET_SUCCESS | FAIL |
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.