jezell
9p6 comments posted · 1 followers · following 0
16 years ago @ iServiceOriented - Back in Action · 0 replies · +1 points
public interface IRequestReceiver
{
[OperationContract(Action="*", ReplyAction="*")]
Message Receive(Message message);
}
On the service implementation class, set the AddressFilterMode attribute to Prefix to tell the service if you would like to be able to receive messages at any path below the address used by the service host instead of only at the specified url.
Use a custom binding with WebMessageEncoder and HttpTransport on your service host and outgoing endpoints. If you want to force all traffic to be raw message data rather than validating the messages as XML, add a custom WebContentTypeMapper that always returns WebContentFormat.Raw.
For each received message, you can use HttpRequestMessageProperty.Name to look up HTTP specific details such as the query string. The received message can be send to the destination endpoint by using a ChannelFactory<IRequestChannel> to create a request channel with the same custom binding used by the request service.
16 years ago @ iServiceOriented - Building a Basic Web S... · 0 replies · +2 points
16 years ago @ iServiceOriented - Building a Basic Web S... · 0 replies · +2 points
16 years ago @ iServiceOriented - Message: The Most Impo... · 0 replies · +1 points
16 years ago @ iServiceOriented - Message: The Most Impo... · 0 replies · +1 points
16 years ago @ iServiceOriented - Message: The Most Impo... · 0 replies · +1 points
http://msdn.microsoft.com/en-us/library/system.se...