• Sajay's Blog

    MGSI Recruiting

    • 0 Comments
    Do you get a kick out of enabling customers? Do you want enable organizations around the world to do better business using Technology? Are you passionate about Technology? Are you passionate about Microsoft? If you answered yes to all this...
  • Sajay's Blog

    Query Endpoints using WMI Provider

    • 0 Comments
    Basicallyl for administrative purposes we can use the WMI Provider. Firstly we have to enable the WMI Provider in the corresponding service config file. < configuration > < system.serviceModel > < diagnostics wmiProviderEnabled...
  • Sajay's Blog

    Custom Databinding using Property Descriptors

    • 0 Comments
    Creating large flat classes for data binding is one way of doing things. But you should check out this article before anyone decides to tightly couple your object model with your data representation. Mike has put this down beatifully. http://blogs...
  • Sajay's Blog

    DataContract names for Generic Types

    • 0 Comments
    When generating proxies for Data contracts that are generics types, we see that the hash of the name follows the types to avoid naming collision.To avoid this we can expose a type as follows [ DataContract( Name=" ShapeWithDimensionsIn {0} ) ] public...
  • Sajay's Blog

    Sample XML generator

    • 1 Comments
    Generating sample xml date from schema's seems to be quite a common task. You can find a really nice article on msdn which shows how to do this quite easily. If you just want the code you can download it from here .
  • Sajay's Blog

    Iterating over a nested Member

    • 0 Comments
    You have a Collection of Products. Every product effectively maps to an Item. Now I needed to bind this Product collection to a grid and display the item name. So basically it would be something like prod[i].Item.Name or any other property can be accessed...
  • Sajay's Blog

    Hiding UpdatePanel during UpdateProgress

    • 2 Comments
    This was a very simple requirement to hide the currently updating controls. I first ran to the the forums and came across this . The trick was quite simple. When we depend control inside the updatePanel this technique fails. The idea is to wrap the update...
  • Sajay's Blog

    DatacontractSerializer and ASMX service using types with Namespaces

    • 0 Comments
    When we try to generate a proxy out of an ASMX service with svcutil, there might be some interesting scenarios. One that I came across is when the service exposes types that have a root namespace. Now if you had only that type as the parameter then these...
  • Sajay's Blog

    WCF Service with .asmx extensions

    • 0 Comments
    We already have quite a large number of ASMX services and clients. One major point to be kept in mind is that WCF and asmx services can co-exist without any problem and migration to WCF should be your first and only choice unless there is a reason like...
  • Sajay's Blog

    Using a Session in WCF through AspNetCompatibility

    • 5 Comments
    Firstly let us all thank Steve Main . The session/state model is the same that is leveraged by the asp.net framework and hence all the feature of state management comes bundled with it. On a moral note its the responsibility of using this is upto the...
  • Sajay's Blog

    Ask the experts at Techready

    • 0 Comments
    I dont think i need to say more than this picture as to what an experience it was at techready :)Was a pretty exciting moment to see Dox Box if you notice in a sells brothers Tee :)
  • Sajay's Blog

    IPSec with WCF

    • 1 Comments
    We would expect this to be a simple transport level security scenario.Think again. I had this question answered from Shy on this at techready. The point is that IPSec removes any trace of security and so by looking at the packet WCF cannot say if it...
  • Sajay's Blog

    Rambling with the guys at BizTalk-WCF Adapter

    • 1 Comments
    I met up today with Sarathy who was with the BizTalk WCF adapter team. The interesting thing was the comfort level that WCF gave for Service orientation. I was discussing about the various scenarios we face with customers and how WCF was something that...
  • Sajay's Blog

    Can you call private members from a different class?

    • 6 Comments
    Standing by OO principles we would have to say "Private memebers are only visible to to the class in which it is defined" This is the MSDN Defintion for the C# private keyword "The private keyword is a member access modifier. Private access is the...
  • Sajay's Blog

    Parts of WSDL

    • 0 Comments
    I just wanted to list out the basic parts of a WSDL and what they map to when you use/generate metadata. WSDL Part WCF Config/Code WSDL service Groups of ports Service WSDL port Address Binding,PortType...
  • Sajay's Blog

    Vista Beta 2 - An Eye Candy

    • 3 Comments
    I am really happy that hey kept the side bar. Really makes it an awesome space utilization for more wider monitors.
  • Sajay's Blog

    Encode Hex String

    • 0 Comments
    I needed to get the hash as a string from a byte[]. I was snooping around X509Certificate class and saw a GetHashString method. After a bit more digging i ended up at System.Security.Util.Hex this had the method i was looking for. Check out the EncodeHexString...
  • Sajay's Blog

    STS + ADAM + AzMan

    • 0 Comments
    After having played with STS for some time I came across this interesting read. The scenario that Sam Gentile suggests for roles using AzMan and integrating with WCF is something that more customers should leverage for better value for exisitng infrastrucre...
  • Sajay's Blog

    Patterns and practices Goes Mobile!

    • 0 Comments
    The Microsoft patterns & practices team has released the first Community Technical Preview (CTP) for the Mobile Client Software Factory. The factory will help architects and developers design and build mobile LOB solutions. The Mobile Client Software...
  • Sajay's Blog

    WSE Client - WCF service Interop

    • 0 Comments
    I wanted to put up this sample using the Feb CTP. Basically it uses WSE 3.0 and WCF to demostrate both AnonymousCertificate configuration and MutualCertificate configuration using the service custom binding Configuration and the WSE policy file. The...
  • Sajay's Blog

    CustomValidators and Chaining of Validators

    • 0 Comments
    I was looking into custom certificate validators sample and was quite curious on how I could chain the certificate validation and where Martin helped me out with this and this is prietty much how he put it. Here is a validator implementation...
  • Sajay's Blog

    Security at both Message and Transport Level

    • 1 Comments
    When using webservices we usually want the messages encrypted and also use SSL. This configuration as of now is not supported out of the box. We could use either tranport or message or a type called TransportWithMessageCredentials. The 3rd type does not...
  • Sajay's Blog

    Validating the Certificate Chain

    • 0 Comments
    Ususally when tesitng with different certificates we usually need to check if the certificate chain is valid and this snippet came in quite handy in many places. X509Certificate2 cert = FedUtil .LookupCertificate( StoreName .My, StoreLocation .LocalMachine...
  • Sajay's Blog

    What happened to MONAD?

    • 0 Comments
    Where this is what it is now "Windows Power Shell"
  • Sajay's Blog

    Issuing your own Server Certificates

    • 1 Comments
    When setting up SSL, IIS requires a server certificate to be present. A simple developer setup would be to install certificate services basically as a stand alone root CA and use it to get your server certificate. You basically set the sever certificate...
Page 4 of 5 (114 items) 12345