2010-12-01 64 views
1

在我的silverlight light apps中,通常连接到ASMX或WCF Web服务。Silverlight中的肥皂服务器地址

我想知道什么是在肥皂客户端应该查看的应用程序中持有url的最佳方式。

这是很好的调试,因为它只是有点知道,但在发布和取决于其使用IP或它交换生产服务器,我一直在绊倒。

我很想有是某种客户端配置有点像web配置

回答

1

您的服务端点可以进入ServiceReferences.ClientConfig文件。这是一个XML文件,可以根据需要随时更改; ie..at deployment,etc ...

+0

谢谢,工作完美 – 2010-12-02 09:29:56

1

您可以通过使用Isolated Storage有客户端配置。

您在从链接页面这个例子与键/值对工作:

// Create an instance of IsolatedStorageSettings. 
private IsolatedStorageSettings userSettings = 
    IsolatedStorageSettings.ApplicationSettings; 

// Add a key and its value. 
userSettings.Add("userImage", "BlueHills.jpg"); 

// Remove the setting. 
userSettings.Remove("userImage"); 

所以,你可以拥有价值为您的网址 - 只需选择一个合适的键。