WSO2 EI-SalesForce连接器未连接到部分实例

时间:2019-03-20 02:48:11

标签: wso2 wso2esb

当我尝试连接到Salesforce时出现以下错误,我缺少什么要紧的东西吗?

// TID [-1234] [EI] [2019-03-19 20:40:40,174]错误{org.apache.axis2.description.ClientUtils}-系统无法从/ services /推断传输信息createSFBuzz URL。

// TID [-1234] [EI] [2019-03-19 20:40:40,174]错误{org.apache.synapse.core.axis2.Axis2Sender}-向org.apache发送消息期间发生意外错误。 axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:86)org.apache.synapse.core.axis2.DynamicAxisOperation $ DynamicOperationClient.executeImpl(DynamicAxisOperation.java:116)org.apache.axis2.client.OperationClient.execute(OperationClient java:149)org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:603)org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:85)org.apache.synapse。 core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:547)org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:120)org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java) 108)org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:70)org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediato r.java:158)org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:224)org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)org.apache.synapse。 transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:337)org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:383)org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker。 java:151)org.apache.axis2.transport.base.threads.NativeWorkerPool $ 1.run(NativeWorkerPool.java:172)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)java.lang.Thread.run(Thread.java:745)

我的代理代码:

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="createSFBuzz"
       startOnLoad="true"
       statistics="disable"
       trace="disable"
       transports="http,https">
   <target>
      <inSequence>
         <property expression="json-eval($.accessToken)" name="accessToken"/>
         <property expression="json-eval($.apiUrl)" name="apiUrl"/>

         <property expression="json-eval($.clientId)" name="clientId"/>
         <property expression="json-eval($.refreshToken)" name="refreshToken"/>
         <property expression="json-eval($.clientSecret)" name="clientSecret"/>
         <property expression="json-eval($.hostName)" name="hostName"/>
         <property expression="json-eval($.apiVersion)" name="apiVersion"/>
         <property expression="json-eval($.registryPath)" name="registryPath"/>
         <property expression="json-eval($.intervalTime)" name="intervalTime"/>
         <salesforcerest.init>
            <accessToken>{$ctx:accessToken}</accessToken>
            <apiUrl>{$ctx:apiUrl}</apiUrl>
            <apiVersion>{$ctx:apiVersion}</apiVersion>
            <hostName>{$ctx:hostName}</hostName>
            <clientSecret>{$ctx:clientSecret}</clientSecret>
            <clientId>{$ctx:clientId}</clientId>
            <refreshToken>{$ctx:refreshToken}</refreshToken>
            <registryPath>{$ctx:registryPath}</registryPath>
            <intervalTime>{$ctx:intervalTime}</intervalTime>
         </salesforcerest.init>
         <log level="full" separator=","/>
         <send/>
      </inSequence>
      <outSequence>
         <payloadFactory media-type="json">
            <format>{"success":"Connection Successful"}</format>
            <args/>
         </payloadFactory>
         <respond/>
      </outSequence>
   </target>
   <description/>
</proxy>

1 个答案:

答案 0 :(得分:0)

问题不在Salesforce连接器中,而是在随后的发送中介器中。它不知道在哪里发送任何东西。您有一个没有定义终结点的发送介体,并且很可能没有指向有效终结点的To头。

您要使用“发送”调解器实现什么?