Reading XML file through LINQ: few Tips

In this post I will discuss how could be read XML file using LINQ. We will see some tips as well. Let us say we have XML file as below, this file is stored on D drive. This XML contains information about books. Data.Xml     Fetching all the Books To fetch all the Books,ContinueContinue reading “Reading XML file through LINQ: few Tips”

Presented Demo on Mango Phone in Ahmedabad Community Tech Days on Road

On 11th June 2011 I presented a demo on various new features of Mango Phone. It was a great time presenting there in front of more than 500 audiences. Session details are as follows Topic New Features of Windows Phone 7.1 Duration 20 minutes Venue Ahmedabad Number of Audiences Around 500 Below are the linksContinueContinue reading “Presented Demo on Mango Phone in Ahmedabad Community Tech Days on Road”

Internal classes to understand WCF Message: XmlDictionaryWriter Class

XmlDictionaryWriter class is one of the most important classes to work with Message in WCF. This class is inherited form XmlWriter class. Essentially this takes as Stream as input parameter. This class mainly performs serialization and encoding of the stream to send as Message in WCF.     There are four factory methods of thisContinueContinue reading “Internal classes to understand WCF Message: XmlDictionaryWriter Class”

Internal classes to understand WCF Message: XmlDictionary Class

In last post we discussed the way we could create WCF Message. If you go back and reexamine CreateMessage() function , you will find this function is overloaded with 11 different set of inputs. It is common when you will create Message, you may use XmlDictionary class. XmlDictionary class allows us to create a privateContinueContinue reading “Internal classes to understand WCF Message: XmlDictionary Class”

Create Message in WCF

In last post  we discussed about SOAP Message Versions. Now let us move ahead and create a Message. You can create a Message using CreateMessage() method of Message class . This method is overloaded with 11 different set of input parameters. Easiest you can create a Message by just providing MessageVersion and action On runningContinueContinue reading “Create Message in WCF”

WCF SOAP Message Version

Service and client communicate to each other through Messages. So they must be agreed upon the Message version while communicating. Service may send Message as POX or may be as SOAP12. When at service side we create a SOAP Message, we term it as Message Object Model. Essentially, we can say Message Object Model isContinueContinue reading “WCF SOAP Message Version”

Consuming OData in Windows Phone 7.1 or Mango Phone

Background If you would have read my posts discussing WCF Data Service and Windows Phone 7, there were many steps involved in consuming WCF Data Service in Windows Phone 7 Download OData client for Windows Phone 7 and add as reference in Windows Phone 7 project Create Proxy of WCF Data Service using svcutil.exe AddContinueContinue reading “Consuming OData in Windows Phone 7.1 or Mango Phone”

Photo Viewer in Windows Phone 7.1 or Mango Phone

In this post I will show you how to create a simple Photo Viewer? Before I start, I would like to inform you about a gray part of this post that all the Images are attached as a resource in the phone application and this is not recommended. We should have either image in IsolatedContinueContinue reading “Photo Viewer in Windows Phone 7.1 or Mango Phone”

Fetching Mobile Operator Name in Windows 7.1 Phone [Mango]

In this quick post I will show you, How to fetch Mobile operator name in Windows 7 Phone? Design the page In content Grid, I have put a button. On click event of button, in message box we will display Mobile Operator Name Write Code Behind Add Namespace On the click event of Button weContinueContinue reading “Fetching Mobile Operator Name in Windows 7.1 Phone [Mango]”

Get Address from Contact in Windows Phone 7.1 [Mango]

In this post I will show you, how you could get Address from contact and Display it. Expected Output On running of application you will get a button On click of button Contact list will be open On selection of a contact . address of that contact will be displayed in label. Design the pageContinueContinue reading “Get Address from Contact in Windows Phone 7.1 [Mango]”