Hi there,

im use wsclient and rules to POST a data-variable (arranged within wsclient as datatype with 3 Textrows: "name", "type" and "value") to a (also in wsclient) created service.

I use the rule action called "create a datatype" to build the data-variable. Everything works fine so far. But the Problem is, that my service needs JSON Format like this:
{"name":"label_id","type":"integer","value":"1567"}

And the rule outputs the array like this:
Array ( [name] => label_id [type] => integer [value] => 1567 )

So my service fires an Error 415 "Unsupported media type".

Since its a "data-field" in rules, i cant use PHP to parse the array through json_encode() which would possibly work.

Any hints how to solve that issue?

Thanks in advance!
F.