Amresh S

Amresh S

  • NA
  • 437
  • 17.3k

Problems with POST request using JSON data in UWP Store app

Jun 7 2017 6:18 AM
Hi All,
 
In my UWP application, am using the hosted WCF service for sending and getting parameters as JSON data. am accessing the WCF service as like as below:
 
  1. private ManagerService.IDataProvider clientChannel;  
  2.   
  3.   
  4. BasicHttpBinding basicHttpBinding = new BasicHttpBinding();  
  5. basicHttpBinding.MaxReceivedMessageSize = 2147483647;  
  6. basicHttpBinding.MaxBufferSize = 2147483647;  
  7. EndpointAddress address = new EndpointAddress("http://example.com/TestService/Service.svc/");  
  8. ChannelFactory <ManagerService.IDataProvider> clientFactory = new ChannelFactory<ManagerService.IDataProvider>(basicHttpBinding, address);  
  9. this.clientChannel = clientFactory.CreateChannel();  
  10. JSON_Data = this.clientChannel.GetJSONDataAsync(args.Param1, args.Param2).Result;  
 

Sample running fine while using the above code in normal UWP application. But which doesn't work properly after installing the my app which deployed in UWP Store.

From my analysis, using Telerik Fiddler tool. Passing the JSON request parameter is emptied while sending POST Request to my Service to get response from it.

Kindly share your ideas. 

Regards,

Amresh S.