camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dhiraj Bokde (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-10743) Add support in Salesforce component for plain JSON input and output
Date Thu, 03 Aug 2017 08:49:00 GMT

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

Dhiraj Bokde commented on CAMEL-10743:
--------------------------------------

Fixed in master branch and cherry-picked on camel-2.19.x branch. 

This fix adds an endpoint config option {{rawPayload}}, which allows sending and receiving
XML or JSON text as {{String}} objects. Setting this disables any DTO processing, including
in-built API DTOs such as {{SObjectDescription}}. 

Raw payload is supported for the following Salesforce APIs:
* REST APIs
* Streaming APIs

Analytics API and Bulk API do not require any DTO code generation, hence they use in-built
Java types and do not require or support the {{rawPayload}} option. 

Composite API still requires DTO generation at present, but it can be refactored in the future
to support raw payloads. Arguably, using the Composite API builders makes it easy to work
with complex request response messages required with that API. 

> Add support in Salesforce component for plain JSON input and output
> -------------------------------------------------------------------
>
>                 Key: CAMEL-10743
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10743
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-salesforce
>    Affects Versions: 2.18.1, 2.19.0
>            Reporter: Dhiraj Bokde
>            Assignee: Dhiraj Bokde
>
> Salesforce component uses DTOs by default, but it should be possible to bypass all the
DTO processing to send/receive JSON strings. 
> It won't be able to validate the JSON, but this approach would make it easier to build
simpler Salesforce interfaces, which do not need to manipulate SObjects as DTOs. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message