开发者

Connecting to SFDC's test instance using Partner WSDL

开发者 https://www.devze.com 2023-01-28 09:35 出处:网络
I created Java Pro开发者_JS百科xies from partner wsdl fetched from https://login.salesforce.com/

I created Java Pro开发者_JS百科xies from partner wsdl fetched from https://login.salesforce.com/

How can I use the same proxies to connect to an SFDC account in https://test.salesforce.com/


It'll depend on the specific client toolkit you're using, but you should be able to set the destination Url before calling login(). For Axis 1.x, you'd do

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

精彩评论

暂无评论...
验证码 换一张
取 消