2017-03-07 134 views

回答

1

您只需将其添加到您的代理配置。这就是全部

<proxy name="salesforce_proxy" 
     transports="https http" 
     startOnLoad="true" 
     trace="enable"> 
    <description/> 
    <target> 
    <inSequence> 
     <log level="custom"> 
      <property name="salesforce" value="trying to login"/> 
     </log> 
     <salesforce.init> 
      <username>myUser</username> 
      <password>myPass</password> 
      <loginUrl>https://test.salesforce.com/services/Soap/u/29.0</loginUrl> 
     </salesforce.init> 
+0

其中代理服务器配置位置? – user3151197

+0

代理是wso2中的“服务”。只要按照说明。 https://docs.wso2.com/display/ESB480/Working+with+Proxy+Services –

1

在执行任何其他Salesforce操作之前,我们必须添加init组件。您可以参考用于在ActiveCollab中执行createCompany操作的示例代理[1]。

我们有另一种方法在“本地条目”[2]中添加init组件,并使用“configKey”[3]在每个操作中调用本地条目组件。

[1] https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Companies+in+ActiveCollab#WorkingwithCompaniesinActiveCollab-sampleconfiguration

[2] https://docs.wso2.com/display/ESB490/Adding+a+Local+Entry

[3] https://docs.wso2.com/display/ESBCONNECTORS/Working+with+sObjects+in+Salesforce#WorkingwithsObjectsinSalesforce-describeGlobal