SoapException.Message on the Client

Posted by: Rick Strahls WebLog, on 11 Aug 2006 | View original | Bookmarked: 0 time(s)

I hate the way SoapExceptions return messages to the client. So, assume you have a server side WebMethod that throws a SoapException like this:   [WebMethod(Description="Returns messages using XML entity body content")] public XmlNode GetMessagesXml(string Password) {  string PartnerId = this.GetPartnerIdFromPath();    if (string.IsNullOrEmpty(PartnerId))      throw new SoapException("Invalid Partner Id", SoapException.ServerFaultCode);    // ***...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: XML | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 4789 | Hits: 885

Similar Posts

  • ASP.NET Server Side Messages & Client Validation Message Handling. more
  • Introducing Recurring Appointments for Web.UI Scheduler ASP.NET AJAX more
  • How to Make crossdomain.xml Work with SharePoint more
  • ClientIDMode in ASP.NET 4.0 more
  • TwtMyCard : Exchanging Business Cards via Twitter more
  • Notify Client Applications Using WCF Callbacks more
  • Silverlight 3 “toast” notifications more
  • Silverlight DataForm and confirming deleting an item more
  • WebResource access in ASP.NET MVC more
  • Silverlight 3 Multi-touch: The Basics more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD