(转) Write Silverlight Application To Consume Currency Converter WCF Service
2010-03-30 11:40
393 查看
In last article Currency Conversion WCF Service For Silverlight, I discussed how you will go about writing a WCF service that can be consumed by Silverlight clients or all clients that can consume ASMX based web services. This article will discuss how to write Silverlight application that will consume WCF service. Following image shows how the UI for the application looks like.
代码if (e.status.StatusCode != 0)
{
txtMessage.Text = string.Format("[{0}]:{1} ",
e.status.StatusCode, e.status.StatusMessage);
if (string.IsNullOrEmpty(e.status.ExceptionDetails))
{
txtMessage.Text += e.status.ExceptionDetails;
}
return;
}
[/code]
[/code]
In next article I will show how this WCF service will be extended to create a live currency rate monitor.
代码if (e.status.StatusCode != 0)
{
txtMessage.Text = string.Format("[{0}]:{1} ",
e.status.StatusCode, e.status.StatusMessage);
if (string.IsNullOrEmpty(e.status.ExceptionDetails))
{
txtMessage.Text += e.status.ExceptionDetails;
}
return;
}
[/code]
[/code]
In next article I will show how this WCF service will be extended to create a live currency rate monitor.
相关文章推荐
- Step By Step - Using Silverlight to Access a WCF Service Hosted In a Console Application
- [转载]Step By Step - Using Silverlight to Access a WCF Service Hosted In a Console Application
- Pushing Data to a Silverlight Client with a WCF Duplex Service
- (转)Currency Converter - WCF Service For Silverlight Client Application
- Silverlight Business Application 与 WCF Ria Service的使用 (2)
- Calling a WCF service from your Silverlight application
- 70 lines to Implement 'Hosting a WCF Service in a Console Application'
- Silverlight Business Application 与 WCF Ria Service的使用 (1)
- Monotouch/WCF: How to consume the wcf service without svcutil
- How to create, host, test and consume a WCF Web Service
- What if you encounter a problem when consume your WCF service ? How to Diagnostic it ?
- 用 linq to sql+wcf service+datagrid 创建基本的silverlight2.0应用程序
- Pushing Data to a Silverlight Client with a WCF Duplex Service
- The current identity (NT AUTHORITY/NETWORK SERVICE) does not have write access to 'C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319
- While installing plugin in eclipse luna, “Unable to acquire PluginConverter service” and “No repository found” errors appear in logs
- 化零为整WCF(5) - 宿主Hosting(宿主在IIS, Application, WAS, WindowsService)
- 稳扎稳打Silverlight(23) - 2.0通信之调用WCF的双向通信(Duplex Service)
- WCF 在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。
- Silverlight 3.0+Wcf+LingToSql+lamda
- Silverlight专题(16)- 动态设置WCF Service配置信息