SoapException.Message on the Client

Posted by: Rick Strahls WebLog, on 11 Aug 2006 | View original

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
The leading UI suite for ASP.NET - Telerik radControls
Outstanding performance. Full ASP.NET AJAX support. Nearly codeless development.

Similar Posts

  • Splitting POP3 Email Attachments in BizTalk 2006 more
  • Web Services and type mapping - again more
  • Unit Testing Workflow Activities more
  • CS Dev Guide: Site Urls more
  • WCF Workshop Part 6 (Securing your Service Part 2 Message Encryption) more
  • What's Wrong With This Code? more
  • ClientBlocker 1.1 more
  • Syncing up external WSDL Schemas with a stock .ASMX Web Service? more
  • MessageVersion.None more
  • Throughput and Latency Considerations more

News Categories

.NET | ADO.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Community Server | dasBlog | 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