Google SubramanyamRaju Xamarin & Windows App Dev Tutorials
Showing posts with label HttpWebRequest. Show all posts
Showing posts with label HttpWebRequest. Show all posts

Wednesday, 20 May 2015

Windows Phone 8.0: How to post Multipart Data (Text & Image) to a web service (C#-Xaml)

Introduction:

Hi guys I hope all you guys are doing well?. After a long break I am writing this post on my blog and i am really says sorry to my dear visitors, due to my busy work last two months i was not active in my blog. However this post will be explain about 'Multi Part post to webservice in windows phone 8.0' .

This article has following steps:
  •  Read in the byte array contents of the file ( If we are trying to post image to server ) 
  •  Construct the request in the form of dictionary objects ( For both string parameters and image type)
  •  Set up the request message headers /content type
  •  Set the Multipart content of the request 
  •  Send the request to the web service & get the response

Friday, 4 July 2014

WindowsPhone 8.0 vs WindowsPhone 8.1:Now HttpClient is alternative for WebCleint(C#-XAML)

Introduction:

Previously in windowsphone 8.0 ,to request webservcie we are using "WebClient " class which is available from "System.Net" namespace.And now "Webclient" is no longer available for windowsphone store 8.1.So what is alternative for "WebClient" is "HttpClient" class which is avaialable from "Windows.Web.Http or System.Net.Http" name space's.
Note:HttpWebRequest is still available for both windowsphone store 8.1 & silverlight windowsphone

Saturday, 30 November 2013

Parsing Json array objects in windowsphone c#

Introduction

HTTP-based Web services frequently use JavaScript Object Notation (JSON) messages to return data back to the client. JSON objects can easily be instantiated in JavaScript, without parsing logic, which makes it a convenient format for messages in Web applications.You may get solve this problem using JObject class or any third party,its is not a best solution to use third party.So i come up with my best option is "parsing json using DataContractJsonSerializer".How it is most important concept in wpf,so now i tried this in wp7.

Tuesday, 26 November 2013

Download Image file using WebClient with progress bar status in windowsphone c#.

Introduction

Recently lot of queries has been asked regarding to large image file downloading with progress bar from webservice.In general there is a chance of requirement in windows phone  is need to set progressbar status when image getting from xaml feed or web service responce.Beacuse it will take some time to get our image from the web service and loaded completly.And so from the user point of view it make sense to showing progress bar status or loader for image until it gets loaded completly.However finally i had come up with my best solution with progress bar.
Search Engine Submission - AddMe