2017-03-07 238 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