SoapException.Message on the Client

Posted by: Rick Strahls WebLog, on 11 Aug 2006 | View original | NEW 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
Category: XML | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 3157 | Hits: 478

Similar Posts

  • Notify Client Applications Using WCF Callbacks more
  • How to Make crossdomain.xml Work with SharePoint more
  • Introducing Recurring Appointments for Web.UI Scheduler ASP.NET AJAX more
  • ClientIDMode in ASP.NET 4.0 more
  • TwtMyCard : Exchanging Business Cards via Twitter more
  • WebChart Drilldown Demo: A pathway to greater things more
  • Silverlight Streaming Utility Classes more
  • Silverlight Streaming Utility Classes more
  • Faking the Initialized Event in Silverlight more
  • Faking the Initialized Event in Silverlight 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