10 messages in com.googlegroups.adwords-apiRe: underlying connection closed?
FromSent OnAttachments
briguy24 Jan 2007 08:55 
clafollett24 Jan 2007 09:06 
briguy24 Jan 2007 17:43 
clafollett26 Jan 2007 06:02 
briguy26 Jan 2007 13:17 
clafollett26 Jan 2007 13:47 
briguy26 Jan 2007 14:55 
clafollett26 Jan 2007 15:00 
briguy26 Jan 2007 15:14 
clafollett29 Jan 2007 12:08 
Subject:Re: underlying connection closed?
From:briguy (br.@webmetro.com)
Date:01/26/2007 02:55:05 PM
List:com.googlegroups.adwords-api

I'm using VS2005. From what you wrote, it sounds like you are using VS2003. I don't have a Web References folder...I have an App_WebReferences folder with only .discomap and .wsdl files in it. There are no Reference.vb files. The Show All Files icon is disabled (in all my VS2005 projects). Even if it wasn't, there are no Reference.vb files in the folders on my harddrive. Do you know how I can accomplish a fix for VB.NET 2.0 (VS2005)?

On Jan 26, 1:48 pm, "clafollett" <c.@sendtec.com> wrote:

Yes, you are "missing something here" :)

In your VS.NET "Solution Explorer" window pane, select your "Project". At the top, you will see a little folder & files icon and when you hover over it with your mouse, it says "Show all files". Click it. Now, go to your projects "Web References". You can now expand your Google Web reference created when you imported it. Under the reference should be a WSDL and a Reference.map file. Expand the Reference.map. Under that you will see a "Reference.vb" file. This is the code that was automatically generated by VS.NET when you referenced the service. You can alter this file to your hearts content but more importantly, you can set all of the SoapHttpClientProtocal derived classes to inherit from your own Base class. If you alter this file, keep in mind if you refresh the web reference, it will generate a new file.

Personally, I ran the following command option and built one massive Google service file. It eliminates the duplicate class definitions and gives me more control of my code.

"C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\wsdl.exe" /l:cs /f /n:"Google.WebServices" /o:"C:\<your_folder_path_here>\GoogleWebServices.cs"
/sharetypeshttps://adwords.google.com/api/adwords/v7/CampaignService?wsdlhttps://adwords.google.com/api/adwords/v7/AdGroupService?wsdlhttps://adwords.google.com/api/adwords/v7/CriterionService?wsdlhttps://adwords.google.com/api/adwords/v7/CreativeService?wsdlhttps://adwords.google.com/api/adwords/v7/InfoService?wsdlhttps://adwords.google.com/api/adwords/v7/AccountService?wsdlhttps://adwords.google.com/api/adwords/v7/KeywordToolService?wsdlhttps://adwords.google.com/api/adwords/v7/TrafficEstimatorService?wsdlhttps://adwords.google.com/api/adwords/v7/ReportService?wsdl

Hope this helps.

On Jan 26, 4:17 pm, "briguy" <b.@webmetro.com> wrote:

Thanks but I'm not sure what you mean by "change the inheritance from the .NET SoapHttpClientProtocol class..." I don't have any instance of this class in my project. I simply added web references to the Google API libraries in my project and import the namespaces in my source code. I can add the base class that you've listed but I'm not sure how to implement it since I would have to re-code the entire Google API. Am I missing something here?- Hide quoted text -- Show quoted text -