Solved

SoapFault C# web reference

Posted on 2011-03-03
2
505 Views
Last Modified: 2012-05-11
I'm using a C# web reference for a java web service. Java coder says that he knows a way in java how to look for that particular exception...
if (soapException.getMessage().contains("NoIncomeException:"))....

is there a similar way in C# to trap this?
0
Comment
Question by:vivekj2004
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 35030193
Man, I run into the NoIncomeException at my job all the time  ; )


See if this is what you're after:
try
{
    // Call service
}
catch (SoapException ex)
{
    if (ex.Message.Contains("NoIncomeException")
    {

    }
}

Open in new window

0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 35030196
Add another closing paren at line 7  = )
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question