Hello Deepak, If you're using the official .NET client library, then you can make use of the TraceExtension class provided with the code to log all your SOAP requests to a file, and get the information from there. Setting this up requires modifying your application's configuration to add in the TraceExtension class as a SOAP Extension; there's an example of how to do this in the App.config file provided with the client library.
If you don't want to go through that, I'm pretty sure that the .NET SoapException object serializes the detail element into some sort of property, but one that isn't normally exposed via the default .toString () behavior. It's been a while, and I can't remember off the top of my head what the property is. If you break into the debugger when the SoapException is through and then examine the SoapException object I think you'll find it. Cheers, -Jeff Posnick, AdWords API Team On Dec 3, 5:57 am, Deepak <[EMAIL PROTECTED]> wrote: > Hi, > How to catch that specific error in c#. I tried with try catch > statement and I got > " > System.Web.Services.Protocols.SoapException: One or more input > elements failed validation. at > System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse > (SoapClientMessage message, WebResponse response, Stream > responseStream, Boolean asyncCall) at > System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String > methodName, Object[] parameters) at > com.google.api.adwords.v12.CampaignService.addCampaign(Campaign > campaign) in g:\deepakworking\adwords\App_Code > \v12\CampaignService.cs:line 71 at _Default.Page_Load(Object sender, > EventArgs e) in g:\deepakworking\adwords\Default.aspx.cs:line 57 > > " --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~----------~----~----~----~------~----~------~--~---
