metadataPublishing required on Service Behavior

If you tried generating the proxy against the STS sample this is what you end up with.

Microsoft (R) Service Model Metadata Tool
[Microsoftr .NET Framework, Version 3.0.50727.357]
Copyright (c) Microsoft Corporation.  All rights reserved.

Error: Unable to obtain Metadata from http://localhost/FederationSample/BookstoreService/store.svc

WS-MetadataExchange Error
    Uri:
http://localhost/FederationSample/BookstoreService/store.svc
    Metadata contains a reference that cannot be resolved: ‘http://localhost/FederationSample/Bookst
oreService/store.svc’.
    There was no endpoint listening at
http://localhost/FederationSample/BookstoreService/store.svc
that could accept the message.  This could be caused by an incorrect address or SOAP action, among o
ther things. See InnerException, if present, for more details.
    The remote server returned an error: (404) Not Found.

HTTP GET Error
    Uri:
http://localhost/FederationSample/BookstoreService/store.svc
    The document at the url http://localhost/FederationSample/BookstoreService/store.svc was not rec
ognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from ‘DISCO Document’ is ‘Root element is missing.’.
- Report from ‘WSDL Document’ is ‘There is an error in XML document (0, 0).’.
  – Root element is missing.
- Report from ‘XML Schema’ is ‘Root element is missing.’.

If you would like more help, please type “svcutil /?”

Basically the point is the metadataPublishing configuration has to be set explicitly on the service behavior since the Feb CTP bits and this should get you through.

<

metadataPublishing enableMetadataExchange=’true’
                 enableGetWsdl=’true’
                 enableHelpPage=’true’></metadataPublishing>

Purpose of something called living

Today was a realization of incapacity. To keep life, to keep love, to keep friends and to keep your own happiness. I have a body and a soul, which right now hold no value to me.
I do not associate with anyone cause I believe it brings dependecy and pain when they leave. I did how ever dare to and that I realized has its own bitter sweetness. You know the pond is deep but there are still people who know they just have to jump in cause their hearts aren’t week and I believe I am so. But that belief too was shattered today.
You turn around a corner cause you believe that is the right way. You jump of a cliff hoping that the ground below will be something that you never have to see again. You die not because you want to die but because you hate living. Your self repect and love for yourself and a very few people around is the only thing that keeps you moving forward. When you have no one to please and no one to show your happiness to then why be happy anymore. You can be happy with equals and not with people who you dont understand. When you believe that things that formed the foundation of your happiness is hurting someone you considered important, then you question are you capable of life and living. Your purpose of life is no more. You just fit the system, the system I dreaded to be a part of. I realize I am not capable of taking without hurting and wish not to hurt. Hurt no one cause I dont want to. I belive there is good and evil and I am not good then by deduction I am what I am and that doesnt seem to agree who I want to be.
I have always stood at the line of emotional and physical death. I got answers that I never wished I knew. I got my plan clearly laid out. I have to be who I dreaded never to be and who always hauted me. “The past looked dark and the future bright” Would this statement make sense to the blind?I am blind and I realized I dont need the bright future. I need only fit the system.
I will just fit the system.The system I dreaded for years. The system I never wanted to be. I never feared death. I can embrace it like a friend. Cause I know that friend will never leave me.
The chocie is clear. The system is death and I am now the system.I need not be anymore. “I” am no more.

SOA Service Benefit Patterns – Facade

The front of a building Façade.Firstly an introduction to Entity Aggregation would be a good idea before one jumps into service aggregation

This pattern works basically as an aggregator which collects many services and exposes it as a as a single service.

AKA : WRAPPER.

The sample attached exposes a Ticket service which return the fare for bus or train. This basically wrapps 2 different services called a BusService and a TrainService which return the fare for the bus and train journeys.

In the next few articles I would put up samples of the remaining SOA Benefit patterns.

 

 

Message Inspector with Custom Behavior and IClientMessageInspector

My goal was to to make a simple MessageInspector so that I can see what message is going out at some point and probably add some info into the headers at the client side. Now the SDK had quite a good sample of the message inspector implementation but I was looking for something like a hello world.

The point is how you tie up following.

1. Add a custom behavior to the proxy endpoint.
[code:c#]proxy.Endpoint.Behaviors.Add(new CustomBehavior());[/code]

2. Add the IClientMessageInspector to the behavior in the ApplyClientBehavior of the custom behavior
[code:c#]behavior.MessageInspectors.Add(new CustomMessageInspector());[/code]

3. Implement the BeforeSendRequest or AfterRecieveReply to get the message

Do provide your inputs on how this can be better used.

Update – Sample

Dim Light and life alike

Your at a crossing. When you think twice you believe that you should look left and right before you begin to cross.
How many times have you thought if getting to the otherside is your objective? Have you thought if you have to get on the otherside at all? Did you even wonder, that the road you think is right, is only so because you have made yourself believe that it is?

I am at a crossing, a crossing between life and death. I do not believe that the death that you believe holds value to me. I have a different series and understanding of thoughts and feeling towards it. The mind is what is most alive and can die, not the body. The body mearly is your means to prove you are alive. You mind and soul is what lives and dies.

Killing someone physically is only a human act. But killing someone mentally is a devils act. He has to be clever and evil enough to realize that the a body’s death is only an animal act.

This is not about death or life. Its about the purpose of existence. The purpose that every being wants to live for and die for. You would drive your whole life to achieve that purpose and humanity has various versions to define every individuals purpose in a collective term. Come to think of it, individual purpose cannot be defined as its is as unique as the individual and I will not mock myself by putting together words that try to do that.

I know people who change their purpose every week or 2 and I know people who dont have a purpose. But what facinated me is the junction. When a person who believes he has lived all his life with a purpose and comes to the point where he see’s that his whole purpose was a carefully constructed play by his own alterego. He begins to understand he is own enmy. To defeat the enemy would be to defeat himself.

How do you escape from this plot ? How can you go on because you have come to the junction that I explained before. To cross is the objective cause you believe it to be. I will fall and only I can catch myself. My soul is for sale at a price only I can afford. I sell my mind to myself and as I do this I have reduced the value I hold for myself. I realized to know is the biggest curse. The unaware and the mindless find happiness in the smallest and most simple things like money and fame.
Why do I know? why do I not want these things cause I know that those are much more easily acheivable than the gold that I look for.

A life more simple and less complicated than I choose to make.
I can only see a dim light and life alike.