cancel
Showing results for 
Search instead for 
Did you mean: 

REST Interface with complex JSON structure

Former Member
0 Kudos

Dear experts,

We are currenctly trying out the new REST capabilities. We already impemented a successfull SOAP > JSON (GET) example using entry. Now we are investigating complex POST, PATCH etc. calls. Our goal is the same. Having SOAP Interface for a REST webservice. We want to consume this service via SOAP calls

I have checked out the REST URL options in the outbound interface.

But I can't figure out how to make complex call like following using this feature. As you can see there are two main elements "schemas" and "Operations". Operations is an array. And a operation object has 3 children with one of them having 3 children elements again.

Would be happy about any leading inputs.

PATCH http://<server>:<port>/idaas/im/scim/v1/Users/1159 HTTP/1.1

Accept-Encoding: gzip,deflate

Content-Type: application/scim+json

Authorization: Basic RUdPVkNPTk5FQ1Q6V2VsY29tZTE=

Content-Length: 489

Host: <server>:<port>

Connection: Keep-Alive

User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

{

"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],

"Operations":

     [

          {

                "op": "replace",

                "path": "urn:ietf:params:scim:schemas:extension:oracle:2.0:IDM:User:passwd",

                "value": {

                    "value": "ValidPW123$$",

                    "sendNotification": "false",

                     "sendNotificationTo": ""

                 }

          }

      ]

}

Thanks and Regards,

Koray

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Alex,

Thanks. We've build the a matching XML structure in ESB to match the json with "schemas", "Operations" tags etc and made sure, that the XML was converted to JSON. This way we can convert the SOAP body XML tags to matching JSON tags. Now we are struggling about the HTTP operations. Apparently is PATCH not supported (see ). Is there any workaround for this?

Regards,

Koray

alex_bundschuh
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Koray,

from what I understand, the operation is part of the message payload, so you would need to map your payload in PI to the respective format

Alex

Former Member
0 Kudos

Hello Koray,

Please refer the below blog, might be useful:

Kind Regards,

Souvik