我正在从我的wp8应用程序中使用wcf服务我正在进行通信异常 以下是异常的截图
以下是wcf
的消费代码 ServiceReference1.Service1Client sclient;
public MainPage()
{
InitializeComponent();
sclient = new ServiceReference1.Service1Client(new System.ServiceModel.BasicHttpBinding(), new EndpointAddress("http://192.168.1.127:80/Service1.svc"));
// var mobileDataService = new MobileDataServiceClient(new MobileDataServiceClient.EndpointConfiguration(), new EndpointAddress(address));
UserDetails info = new UserDetails();
info.Id = 2323;
sclient.InsertUserDetailsAsync(info);
// sclient.InsertUserDetailsCompleted += sclient_InsertUserDetailsCompleted; ;
// Sample code to localize the ApplicationBar
//BuildLocalizedApplicationBar();
}
void sclient_InsertUserDetailsCompleted(object sender, InsertUserDetailsCompletedEventArgs e)
{
Debug.WriteLine("completed");
this.res.Text = e.Result;
}