[Mono-list] WCF/JSON POST get error 415, expected content-type application/xml not application/json

Robert Jordan robertj at gmx.net
Sat Apr 17 17:07:59 EDT 2010

> protected override void InitializeRuntime()
>          {
> ServiceEndpoint endpoint = this.AddServiceEndpoint(iServiceInterfaceType,
>                  new WebHttpBinding(),
>                  String.Empty);
>              endpoint.Behaviors.Add(new WebHttpBehavior());

You may want to add WebScriptEnablingBehavior instead
or additionally to WebHttpBehavior.


More information about the Mono-list mailing list