The following WCF endpoint works great with the WCF testing client:
[OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Xml, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "listflaggedassets/{platform}?endpoint={endpoint}&pid={portalid}&processCode={processCode}&index={index}&limit={limit}")] AssetList ListFlaggedAssets(short processCode, string platform, string endpoint = "null", string portalId = "null", int index = 0, int limit = 12);
However, when I try to go to the URL http://localhost/DigitalREST/XosAssets.svc/listflaggedassets/SEC?endpoint=superfan&pid=0&processCode=0&index=0&limit=20 , I get 400 bad requests.
I cannot find a way to find out WHY I get a bad request, and binding to IIS for debugging does not break any exceptions.
How can I find out the reason for a bad request?
Kalldrexx
source share