[ 
https://issues.apache.org/jira/browse/CAMEL-16388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17312384#comment-17312384
 ] 

Jawad Ahmad edited comment on CAMEL-16388 at 3/31/21, 1:44 PM:
---------------------------------------------------------------

Hi [~zregvart]

In my case we have SAP sending data in XML format (SOAP). Then we use XSLT to 
transform SOAP payload to directly map to Salesforce DTO compatible XML's. As 
we don't have raw format support in some cases then we map these XML's using 
XStream on to DTO and send them over as JSON.


was (Author: jawwad124):
Hi [~zregvart] 

In my case we have SAP sending data in XML format (SOAP). Then we use XSLT to 
transform SOAP payload to directly to Salesforce DTO compatible XML's. As we 
don't have raw format support in some cases then we map these XML's using 
XStream on to DTO and send them over as JSON.

> camel-salesforce: drop support for XML as a serialization format
> ----------------------------------------------------------------
>
>                 Key: CAMEL-16388
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16388
>             Project: Camel
>          Issue Type: Wish
>          Components: camel-salesforce
>    Affects Versions: 3.8.0
>            Reporter: Jeremy Ross
>            Priority: Major
>             Fix For: Future
>
>
> Putting this out here for a discussion. 
> The salesforce REST APIs support XML and JSON. However, it's clear from the 
> official documentation and examples that JSON is the first-class citizen. All 
> the examples are in JSON and there's only this one, sad reference to XML 
> serialization:  
> {quote}XML serialization is similar to SOAP API. XML requests are supported 
> in UTF-8 and UTF-16, and XML responses are provided in UTF-8.{quote}
> This leaves us Camel maintainers with the not-fun activity of guessing how 
> salesforce expects its myriad types to be serialized to XML. 
> I suspect that Camel users don't really care that much which serialization 
> format is used. Both have equal parity with salesforce, and as a Camel user I 
> just care that Camel serializes and deserializes my DTOs correctly. Wire 
> format is an abstraction that shouldn't matter. This is the crux of my 
> argument.
> Camel's support for both formats is a maintenance burden, and a barrier to 
> developing future features and support for newer APIs. Serialization format 
> isn't a concern to users, and supporting both formats is of no real value. 
> Therefore, I'd like to consider dropping XML support, leaving JSON as the 
> supported format.
> Note that this does not affect the `rawPayload` option. Users would still be 
> welcome to provide their own raw payloads in either format. 
> Paging for comment: [~zregvart] [~davsclaus] [~jbonofre]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to