cancel
Showing results for 
Search instead for 
Did you mean: 

How to send Form data and attathment handling in REST Adapter

gganesh15051
Explorer
0 Kudos

Hi Team,

We have requirement send form data and attachment to Rest Adapter from SOAP/XI , i have tried to enable Form data enabling in check box in REST adapter and handled Header parameters as slimier to SOUP_UI client , i'm able to get 200 success response but its missing response JSON data , when i was tried in SOAP_UI or POST Man I can see response JSON messages. Could you please suggest how to resolve or identify missing elements while posting data using Rest adapter.

Thanks in-advance..

Regards,

Ganesh Gullipalli.

Accepted Solutions (1)

Accepted Solutions (1)

gganesh15051
Explorer
0 Kudos

its possible for PO 7.5 on latest SP, we can have option Binary data format in channel. I have used in my requirement , its working successfully.

Answers (3)

Answers (3)

rama7161
Explorer
0 Kudos

My PO system is a PO 7.31 .. Is it possible to achieve this using REST adapter

gganesh15051
Explorer
0 Kudos

HI Evgeniy,

Thanks for quick reply , As we we are latest SP-9 and I have enabled REST adapter Support Attathements and mulitpart message content type as selected as -mulitipart/formdata , we can able to hit server and able to get 200-responce code But its getting error in log and messages canceled with -

Returning to application. Exception: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.ArrayIndexOutOfBoundsException: 0 >= 0

Thanks,
Ganesh Gullipalli.

former_member190293
Active Contributor
0 Kudos

Hi Ganesh!

Take a look at this SAP Note: 2365727 - New Feature: Attachment support for PI REST Adapter.

Regards, Evgeniy.