开发者

Connecting to SFDC's test instance using Partner WSDL

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜