2010-12-02 114 views

回答

1

這將取決於SFDC的測試實例您正在使用的特定客戶端工具包,但在調用login()之前,您應該能夠設置目標Url。對於Axis 1.x,你會做

SoapBindingStub binding = (SoapBindingStub) new SforceServiceLocator().getSoap(); 
binding._setProperty(SoapBindingStub.ENDPOINT_ADDRESS_PROPERTY, 
       "https://test.salesforce.com/services/Soap/u/20.0"); 
+0

它也適用於Axis2。謝謝 :) – 2010-12-03 14:00:35