Windows Vista Forums

Winfx ServiceContract
  1. #1


    aclark Guest

    Winfx ServiceContract

    I have a winfx self hosted service running over http.
    With asmx webservices requests I can read the http header values about where
    the request is coming from. ip address, mac address, etc. How do I get to
    this info with a winfx ServiceModel/Contract request?




      My System SpecsSystem Spec

  2. #2


    aclark Guest

    RE: Winfx ServiceContract

    I tried, but there is no real client header http info in there.
    System.ServiceModel.Channels.MessageHeaders mh =
    OperationContext.Current.RequestContext.RequestMessage.Headers;

    "aclark" wrote:

    > I have a winfx self hosted service running over http.
    > With asmx webservices requests I can read the http header values about where
    > the request is coming from. ip address, mac address, etc. How do I get to
    > this info with a winfx ServiceModel/Contract request?
    >
    >

      My System SpecsSystem Spec

  3. #3


    aclark Guest

    RE: Winfx ServiceContract

    I tried
    System.ServiceModel.Channels.MessageHeaders mh =
    OperationContext.Current.RequestContext.RequestMessage.Headers;
    but there is no real client info filled in at run time.


    "aclark" wrote:

    > I have a winfx self hosted service running over http.
    > With asmx webservices requests I can read the http header values about where
    > the request is coming from. ip address, mac address, etc. How do I get to
    > this info with a winfx ServiceModel/Contract request?
    >
    >

      My System SpecsSystem Spec

  4. #4


    aclark Guest

    RE: Winfx ServiceContract

    System.ServiceModel.Channels.MessageHeaders mh =
    OperationContext.Current.RequestContext.RequestMessage.Headers;
    System.ServiceModel.Channels.MessageHeaders imh =
    OperationContext.Current.IncomingMessageHeaders;
    System.ServiceModel.Channels.MessageHeaders omh =
    OperationContext.Current.OutgoingMessageHeaders;

    none of these have any real client caller information.

    "aclark" wrote:

    > I tried
    > System.ServiceModel.Channels.MessageHeaders mh =
    > OperationContext.Current.RequestContext.RequestMessage.Headers;
    > but there is no real client info filled in at run time.
    >
    >
    > "aclark" wrote:
    >
    > > I have a winfx self hosted service running over http.
    > > With asmx webservices requests I can read the http header values about where
    > > the request is coming from. ip address, mac address, etc. How do I get to
    > > this info with a winfx ServiceModel/Contract request?
    > >
    > >

      My System SpecsSystem Spec

Winfx ServiceContract problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Abstract class as ServiceContract =?Utf-8?B?RENCYXNz?= Indigo 3 10 Aug 2006
About WinFX? Dong Xu Aero 1 08 Jun 2006
WinFX SDK for WPF Kumar Lomash Vista General 1 06 Jun 2006
WinFX SDKs for WPF Kumar Lomash Vista General 1 06 Jun 2006
WinFX and WinCE Rob Schieber Avalon 2 10 Jan 2006