Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
All Tags
»
WCF
»
RESTful
(
RSS
)
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 >
ASP.NET:
Live Preview jQuery Plugin
WindowsClient:
Remember JScript closures capture all variables in scope
TechNet Edge:
UAG reaches RTM
Channel 9:
Who, What, When, Where, Why and How of MIX10
Channel 10:
Berlin Wall in Silverlight
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 2, Installation
Silverlight:
Contributing to the SL HVP
Silverlight:
Best SF Books of All Time
Channel 9:
Reactive Extensions API in depth: Repeat
Channel 9:
Jeffrey Van Gogh: Testing Rx with Pex
Channel 9:
The Visual Studio Documentary: Dan Fernandez Full Length Interview
ASP.NET:
Search Engine Optimization (SEO) Toolkit
Channel 10:
This Is Your Data on Silverlight
ASP.NET:
How the IIS SEO Toolkit Saved My Butt
TechNet Edge:
Windows 7 XP Mode User Experience
ASP.NET:
Using WCF RIA Services without Silverlight in Visual Studio 2010 for building 3 tier ASP.NET Applications
Channel 9:
Ping 41: Top stories of 2009, bing, windows 7, laptop hunters, azure
Channel 9:
endpoint.tv - Windows Server AppFabric in action monitoring and troubleshooting
Channel 10:
Windows Marketplace for Mobile Opens to 6.0, 6.1 Phones
Channel 9:
Rx API in depth: Hot and Cold observables
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online