cancel
Showing results for 
Search instead for 
Did you mean: 

Content-Type: application/scim+json for SOAP/REST Interface

Former Member
0 Kudos

Dear Experts,

We are trying out the new REST adapter for an interface with SOAP > REST. So the REST receiver should call the 3th party system with a HTTP body like this:

POST http://192.168.2.116:14000/idaas/im/scim/v1/Users HTTP/1.1

Accept-Encoding: gzip,deflate

Content-Type: application/scim+json

Authorization: Basic RUdPVkNPTk5FQ1Q6V2VsY29tZTE=

{

  "schemas":

     ...

}



The third party system developers told me that they need the Content-Type with application/scim+json instead application/json. Is it possible to change the Content-Type for a REST interface?

Thanks and Regards,

Koray

Accepted Solutions (1)

Accepted Solutions (1)

maheswarareddykonda
Active Contributor
0 Kudos

Hi,

Yes you can use in Channel

you just goto module tab in receiver channel and add the module AF_Modules/MessageTransformBean

and parameter is Transform.ContentType

value is application/scim+json

BR,

Maheswarareddy

sahithi_moparthi
Contributor
0 Kudos

Hi,

As Suggested by Mahesh,Please use the paramter in the module tab.

links for reference

https://scn.sap.com/thread/1659161

https://scn.sap.com/thread/1193523

Former Member
0 Kudos

Hello,

I am going on with this Thema from Koray but it seems not to work. Apparently the REST Adapter uses always the Content-Type: text/plain. We have used the MessageTransformBean with ContentType = application/scim+json, but when it reaches the last step takes text/plain. We have even tried changing the content type in an XSLT mapping, but it takes always text/plain in the last step. Has anybody changed the content-type in a Rest Adapter?

Thx

maheswarareddykonda
Active Contributor
0 Kudos

Hi,

I had used in my project that transfermation and worked too.

can you please recheck, you had configured like below .

and as per your second screenshot, i wonder how could you able to see text/plain type, actually by default type is Application/xml.

anyway please check the thread(),

here check  Ryan Crosby post, you could see only two types one is application/json and another is application/xml in REST Processing.

also in case you had maintained correct content type in channel and still showing text/plain, i can suggest you to contact SAP whether your content type support or not.

Former Member
0 Kudos

Apperantly there is bug regarding to usage of "convert xml payload to json" feature. If you use this feature the content type is overriden. SAP support told us that they are working on a fix. I'll update the discussion after it gets fixed.

Answers (1)

Answers (1)

Former Member
0 Kudos

thank you both!