Forum Discussion

sourav_r_roy's avatar
14 years ago

Fails to send java serialized object as media type in REST

Hi,
I am trying to send a java serilized object as media type in REST through SOPUI PRO 3.6 test tool. I have updated the Accept Encoding and the Media Type Encoding to "application/x-java-serialized-object" and tried to execute the call. It fails and shows up the following error :
ERROR com.jpmorgan.wm.mf.common.exception.LastResortHandlerImpl - ERROR-CODE: UNDEFINED, ERROR-DESCRIPTION: UNDEFINED
java.io.StreamCorruptedException: invalid stream header: 7B200A20
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)

It seems that SOPUI PRO 3.6 does not support Content-Type=application/x-java-serialized-object like it does for XML or JSON. If this is so, can this feature be added to upcoming version or any external plug in would help.

Can someone please share with suggestions/input.