Salesforce - 一种用于沙盒和生产的 WSDL? [英] Salesforce - one WSDL for Sandbox and Production?

查看:48
本文介绍了Salesforce - 一种用于沙盒和生产的 WSDL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我正在创建一个 salesforce 应用程序,该应用程序当前可以正常访问沙盒帐户.

So, I'm creating a salesforce app the currently hits a sandbox account just fine.

我们的生产和沙盒帐户在字段方面完全相同.

Our production and sandbox accounts are exactly the same in terms of fields.

现在,当我在 Visual Studio 中创建我的网络参考时,一个 URL 被添加到 test.salesforce.com 的配置文件中,这个 URL 也在 WSDL 中.

Now, when I created my web reference in visual studio, a URL was added to the config file for test.salesforce.com , this url is also in the WSDL.

我可以更改生产配置中的 URL 并确保一切正常吗?我读过关于这个的相互矛盾的想法.

Can I change the URL in the config for production and have everything be okay? I have read conflicting idea on this.

推荐答案

如果您保持 2 个环境同步,那么您会注意到 WSDL 中唯一不同的是服务 URL.所以,是的,在属性中更改它是安全的,或者在运行时覆盖它(通过 .Url 属性)以在 2 之间切换.

If you're keeping the 2 environments in sync, then you'll notice that the only different in the WSDLs is the service URL. So, yes, its safe to change this in the properties, or to override it at runtime (via the .Url property) to switch between the 2.

这篇关于Salesforce - 一种用于沙盒和生产的 WSDL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆