我在WSO2 ESB中使用SalesforceBulkApi连接器将批量对象(Account)数据上传到salesforce . 我在测试代理服务时遇到InvalidJob错误 .

我已经按照WSO2下面的文章来配置SalesforceBulkApi . * https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Jobs+in+SalesforceBulk https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Batches+in+SalesforceBulk

我创建了一个测试代理服务,如下所示 . 以下是代理服务示例xml代码 .

<salesforcebulk.init>
                                    <apiUrl>{$ctx:apiUrl}</apiUrl>
                                    <clientId>{$ctx:clientId}</clientId>
                                    <clientSecret>{$ctx:clientSecret}</clientSecret>
                                    <hostName>{$ctx:hostName}</hostName>
                                    <apiVersion>{$ctx:apiVersion}</apiVersion>
                                    <username>{$ctx:username}</username>
                                    <password>{$ctx:password}</password>
                                  </salesforcebulk.init>

                                 <salesforcebulk.createJob>
                                    <apiVersion>42</apiVersion>
                                    <accessToken>{$ctx:accessTokenValue}</accessToken>
                                    <apiUrl>{$ctx:apiUrl}</apiUrl>
                                    <clientId>{$ctx:clientId}</clientId>
                                    <clientSecret>{$ctx:clientSecret}</clientSecret>
                                    <intervalTime>1000000</intervalTime>
                                    <registryPath>connectors/SalesforceBulk</registryPath>
                                    <operation>insert</operation>
                                    <object>Account</object>
                                    <contentType>CSV</contentType>
                                </salesforcebulk.createJob>

在axix2.xml配置文件中启用了以下消息格式化程序和构建器 .

Message Formatter in axix2.xml file.

<messageFormatter contentType="text/csv" class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
                    <messageFormatter contentType="zip/xml" class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
                    <messageFormatter contentType="zip/csv" class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
                    <messageFormatter contentType="text/xml" class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
                    <messageFormatter contentType="text/html" class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
                    <messageFormatter contentType="application/soap+xml" class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
                    <messageFormatter contentType="application/xml" class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
                    <messageFormatter contentType="application/x-www-form-urlencoded" class="org.apache.synapse.commons.formatters.XFormURLEncodedFormatter"/>
                    <messageFormatter contentType="multipart/form-data" class="org.apache.axis2.transport.http.MultipartFormDataFormatter"/>
                    <messageFormatter contentType="application/xml" class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
                    <messageFormatter contentType="text/xml" class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>
                    <messageFormatter contentType="application/soap+xml" class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>
                    <messageFormatter contentType="text/plain" class="org.apache.axis2.format.PlainTextFormatter"/>


                   **Message Builders in axix2.xml file.**
                    <messageBuilder contentType="text/csv" class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
                    <messageBuilder contentType="zip/xml" class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
                    <messageBuilder contentType="zip/csv" class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
                    <messageBuilder contentType="text/xml" class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
                    <messageBuilder contentType="text/html" class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
                    <messageBuilder contentType="application/soap+xml" class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
                    <messageBuilder contentType="text/plain" class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
                    <messageBuilder contentType="application/xml" class="org.apache.axis2.builder.ApplicationXMLBuilder"/>
                    <messageBuilder contentType="application/x-www-form-urlencoded" class="org.apache.synapse.commons.builders.XFormURLEncodedBuilder"/>
                    <messageBuilder contentType="multipart/form-data" class="org.apache.axis2.builder.MultipartFormDataBuilder"/>
                    <messageBuilder contentType="text/plain" class="org.apache.axis2.format.PlainTextBuilder"/>
                    <messageBuilder contentType="application/json" class="org.apache.synapse.commons.json.JsonStreamBuilder"/>
                    <messageBuilder contentType="application/xml" class="org.wso2.carbon.relay.BinaryRelayBuilder"/>

**但是当测试代理服务时出现以下错误,InvalidJob无法解析Job **

**Could someone tell me why is that error occurring.**