Browse by Tags

Sorry, but there are no more tags available to filter with.

Related Posts

  • Re: Exception handler for RESTful WCF service

    Hi RoseonDotNet Thanks for your solution for List objects :-) About Asynchronous Restful WCF service, I didn't try it till now. But I think since it is invoked by HTTP request, so it should be able to be invoked through asynchronous HTTP request. That means you may call a service throug WebRequests...
    Posted to XML Web Services (Forum) by relaxtintin on 12-10-2008, 12:00 AM
    Filed under: RESTful, WCF
  • Re: Exception handler for RESTful WCF service

    I have some codes for passing object parameter to a RESTful service and hope it will be helpful for you. class Program { static void Main(string[] args) { Console.Write("Input service URI:"); string uri = Console.ReadLine(); if (uri.Length == 0) { uri = "http://localhost/ServiceController...
    Posted to XML Web Services (Forum) by relaxtintin on 12-01-2008, 12:00 AM
    Filed under: RESTful, WCF
  • Re: Exception handler for RESTful WCF service

    I think the content type should be "application/xml" instead of "text/xml". Another thing is you may need to add <?xml version="1.0" encoding="utf-8"?> in your response content in order to return xml format message.
    Posted to XML Web Services (Forum) by relaxtintin on 12-01-2008, 12:00 AM
    Filed under: RESTful, WCF
  • Re: Exception handler for RESTful WCF service

    A very simple try to validate the income request and customized the error information. public class MyHttpModule : IHttpModule { #region IHttpModule Members public void Dispose() { return; } public void Init(System.Web.HttpApplication context) { context.BeginRequest += new EventHandler(context_BeginRequest...
    Posted to XML Web Services (Forum) by relaxtintin on 11-24-2008, 12:00 AM
    Filed under: RESTful, WCF
  • Re: Exception handler for RESTful WCF service

    I tried it with a customized HttpModule and found it was possible to deal with incoming request. MyHttpModule public class MyHttpModule : IHttpModule { #region IHttpModule Members public void Dispose() { return; } public void Init(System.Web.HttpApplication context) { context.BeginRequest += new EventHandler...
    Posted to XML Web Services (Forum) by relaxtintin on 11-24-2008, 12:00 AM
    Filed under: RESTful, WCF
  • Re: Exception handler for RESTful WCF service

    Hi, it seems that you are trying to catch the "Service endponint not found" error on service side. Based on my understanding, I think it is not possible. The reason is that when client tries to send a http request with a incorrect URI, the request will not passed to correct service. So the...
    Posted to XML Web Services (Forum) by relaxtintin on 11-24-2008, 12:00 AM
    Filed under: RESTful, WCF
  • Re: Exception handler for RESTful WCF service

    For the first question about "Service Endpoint not Found" error. The possible solution is to catch the WebException and customize the error information. try { ... } catch(WebException exp) { System.Net.HttpWebResponse response = exp.Response as System.Net.HttpWebResponse; if ( response.HttpStatusCode...
    Posted to XML Web Services (Forum) by relaxtintin on 11-24-2008, 12:00 AM
    Filed under: RESTful, WCF
  • Re: Exception handler for RESTful WCF service

    1. How to Change the Url "http://localhost:3541/WCFServices/RESTWCFService.svc" to "http://localhost:3541/WCFServices/RESTWCFService" ---that means Removing the Extension .svc I did not practice it as this way. The first possible answer is to create a HttpModule to handle it. That...
    Posted to XML Web Services (Forum) by relaxtintin on 11-24-2008, 12:00 AM
    Filed under: RESTful, WCF
  • Re: Exception handler for RESTful WCF service

    The ErrorHandler code is following. And thank you very much for your help public class ErrorHandler : IErrorHandler { #region IErrorHandler Members bool IErrorHandler.HandleError(Exception error) { return true; } void IErrorHandler.ProvideFault(Exception error, System.ServiceModel.Channels.MessageVersion...
    Posted to XML Web Services (Forum) by relaxtintin on 11-18-2008, 12:00 AM
    Filed under: RESTful, WCF
  • Re: Exception handler for RESTful WCF service

    I resolved this problem through another way. The solution is 1. Customize a behavior extension by inherit from BehaviorExtensionElement 2. Customize a web http behavior by inherit from WebHttpBehavior 3. Use the customized behavior extension for endpoint behavior configuration in service configurre file...
    Posted to XML Web Services (Forum) by relaxtintin on 11-14-2008, 12:00 AM
    Filed under: RESTful, WCF
Page 1 of 2 (14 items) 1 2 Next >