Hi Lindsay.
In fact I never tried to feed the SDM REST service with Json payload.
I was convinced, that the ability to send and correctly process Json payload, is based on the implementation on the server side., And because the docs are only working with xml as well as all examples do, I assumed that the REST webservice accepts incoming xml only.
In the meantime I started some testing with json. Even though I was able to get an access key with json payload, I wasnt able to do a POST to create a record with json.
Do you have a working example for a POST or PUT request (creating or updating) with a json paylod?
For example to create a change activity log record you might send a post with the following xml payload:
<chgalg>
<type REL_ATTR="LOG"/>
<change_id REL_ATTR="400108"/>
<description>Activity Log created from REST API Java Samples code
</description>
</chgalg>
I tried the following json without success
{ "chgalg": {
"type": { "REL_ATTR":"LOG"},
"change_id":{"REL_ATTR": 400108},
"description":"Activity Log created from REST API Java Samples code"
}
}
Thanks
......Michael