随笔分类 -  Silverlight

摘要:[DataContract] public class Customer { private string firstName; private string lastName; [DataMember] public string FirstName { get { return fi... 阅读全文
posted @ 2011-09-07 15:25 jacky_j2ee 阅读(184) 评论(0) 推荐(0)
摘要:正常代码private TestServiceClient proxy = new TestServiceClient();EndpointAddress address = new EndpointAddress("http://localhost:2345/TestService.svc");......proxy.Endpoint.Address = address;修改为如下代码报错private TestServiceClient proxy = new TestServiceClient();EndpointAddress address = new Endpo 阅读全文
posted @ 2011-09-07 14:40 jacky_j2ee 阅读(8483) 评论(2) 推荐(0)
摘要:设置Silverlight的界面编写代码using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Animation;using System.Windows.Shape 阅读全文
posted @ 2011-09-06 11:23 jacky_j2ee 阅读(209) 评论(0) 推荐(0)
摘要:第一步是增加服务引用创建代理类右键添加服务引用确定 阅读全文
posted @ 2011-09-06 10:58 jacky_j2ee 阅读(171) 评论(0) 推荐(0)
摘要:1.新建一个Silverlight项目确定确定2.创建Web Services右键ASP.NET项目,选择添加新项确定随后系统会自动生成2个文件打开TestService.svc.cs编写测试代码using System;using System.Linq;using System.Runtime.Serialization;using System.ServiceModel;using System.ServiceModel.Activation;namespace WebServiceTest.Web{ [ServiceContract(Namespace = "")] 阅读全文
posted @ 2011-09-06 10:17 jacky_j2ee 阅读(191) 评论(0) 推荐(0)