Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3641

Passing JSON object to untyped REST service in SOA BPEL

$
0
0

I am trying to pass a JSON object to an untyped rest service by assigning a JSON payload to the request variable.

First of all assigning a JSON string '{"init":1,"store_id":1002,"last_stock_count_id":545}' to a JSON object variable 'jsonObject'

enter image description here

Then passing this variable to rest webservice invoke.

enter image description here

While testing the service, its breaking in the invoke with below error:

<messages><input><jsonObject><json>{"store_id": 1002,"init": 1,"count_id": 545}</json></jsonObject></input><fault><bpelFault><faultType>0</faultType><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>oracle.fabric.common.FabricInvocationException: Rest reference payload type mismatchdefault/SIOCSClearUnavailableSOH!1.0/RDSUnavailableSOH</summary></part><part name="code"><code>null</code></part><part name="detail"><detail>Missing comma in object literal</detail></part></remoteFault></bpelFault></fault><faultType><message>0</message></faultType></messages>

Viewing all articles
Browse latest Browse all 3641

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>