iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
When I call WCF ,The simulator will die .The following code .When I finished executing"ClientOnSayHelloToCompleted" The simulator will die .What I do is crosslight ios
public static readonly EndpointAddress EndPoint = new EndpointAddress("http://192.168.1.113:8082/WCF/Report/MouthReportPie.svc"); private ZwoMobileDnc.Core.WcfMouthPie.MouthReportPieClient _client; private void InitializeHelloWorldServiceClient() { BasicHttpBinding binding = CreateBasicHttp(); _client = new ZwoMobileDnc.Core.WcfMouthPie.MouthReportPieClient(binding, EndPoint); _client.DoWorkCompleted += ClientOnSayHelloToCompleted; _client.DoWorkAsync("001", "2015-1-2", "2015-6-7", "192.168.1.113:8082", ""); } private static BasicHttpBinding CreateBasicHttp() { BasicHttpBinding binding = new BasicHttpBinding { Name = "basicHttpBinding", MaxBufferSize = 2147483647, MaxReceivedMessageSize = 2147483647 }; TimeSpan timeout = new TimeSpan(0, 0, 30); binding.SendTimeout = timeout; binding.OpenTimeout = timeout; binding.ReceiveTimeout = timeout; return binding; } private void ClientOnSayHelloToCompleted(object sender, Core.WcfMouthPie.DoWorkCompletedEventArgs e) { try { Exception exce = e.Error; if (exce == null) { } else { this.ToastPresenter.Show("网络连接异常"); } } catch (Exception ex) { string sd = ex.ToString(); } }
private ZwoMobileDnc.Core.WcfMouthPie.MouthReportPieClient _client; private void InitializeHelloWorldServiceClient() { BasicHttpBinding binding = CreateBasicHttp();
_client = new ZwoMobileDnc.Core.WcfMouthPie.MouthReportPieClient(binding, EndPoint); _client.DoWorkCompleted += ClientOnSayHelloToCompleted; _client.DoWorkAsync("001", "2015-1-2", "2015-6-7", "192.168.1.113:8082", ""); } private static BasicHttpBinding CreateBasicHttp() { BasicHttpBinding binding = new BasicHttpBinding { Name = "basicHttpBinding", MaxBufferSize = 2147483647, MaxReceivedMessageSize = 2147483647 }; TimeSpan timeout = new TimeSpan(0, 0, 30); binding.SendTimeout = timeout; binding.OpenTimeout = timeout; binding.ReceiveTimeout = timeout; return binding; } private void ClientOnSayHelloToCompleted(object sender, Core.WcfMouthPie.DoWorkCompletedEventArgs e) { try { Exception exce = e.Error; if (exce == null) {
} else { this.ToastPresenter.Show("网络连接异常"); } } catch (Exception ex) { string sd = ex.ToString(); } }
Hi Zhou WanghuaDid the simulator die without any error message?Could you replicate this issue using our sample?Best Regards,Arief
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname