hello

I have a simple service hosted in Win32 console. The service contract looks like this:
Code:
[ServiceContract(....)]
public interface ISomeService {
[OperationContract()]
[WebGet(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
string GetMessage(int MsgId);
}


The service itself, since it's WIN32 console, is created as follows:

host = new ServiceHost(typeof(SomeService)), new Uri("http://localhost:8091/SomeService"));
...
host.AddServiceEndPoint(
typeof(ISomeService),
new WebHttpBinding(),
"JSON");

WCFBehav = new ServiceMetaDataBehavior();
WCFBehav.HttpGetEnabled = true;
host.Description.Behaviors.Add(WCFBehav);

host.Open();
using(ChannelFactory<...ISomeService> ChanFactory = new ChannelFactory<...ISomeService>(new WebHttpBinding(), "http://localhost:8091/SomeService")
{
WebBehav = new WebHttpBehavior();
WebBehav.DefaultBodyStyle = WebMessageBodyStyle.WrappedRequest;
WebBehav.DefaultOutgoingResponseFormat = WebMessageFormat.Json;
ChanFactory.Endpoint.Behaviors.Add(WebBehav);

Channel = ChanFactory.CreateChannel();
}

...
Client is an ASP.NET app sending in WCF calls via JQuery.
Code:
$ajax ({
type: "get",
url: "http://localhost:8091/SomeService/JSON/GetMessage",
data: "{MsgId: \"31234\"}"
.. });
...
My question is - much to my dismay, the WCF error message is: 'The message to "http://localhost:8091/SomeService/JSON/GetMessage' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher."

I only managed to find some references all using IIS hosted - url all contains "XXX.svc", therefore don't apply to my WIN32 scenario (we have no "SVC" file as in case when hosted under IIS)... when my intention is to find the correct URL/pattern to fire the call.

Thank you

http://www.dennydotnet.com/post/Pass...th-jQuery.aspx
http://learningbyfailing.com/2008/05...d-wcf-service/