[Mono-devel-list] google adwords api with mono

Sebastian Böhm seb at exse.net
Wed May 11 03:45:14 EDT 2005


Hi,


I installed the certificate for google, but now getting the following 
errors:

----

mono:/opt/google# wsdl 
https://adwords.google.com/api/adwords/v2/CampaignService?wsdl
Mono Web Services Description Language Utility
System.NullReferenceException: Object reference not set to an instance 
of an object
in <0x00010> System.Xml.Serialization.MapCodeGenerator:ExportMapCode 
(System.Xml.Serialization.XmlTypeMapping map)
in <0x00010> System.Xml.Serialization.MapCodeGenerator:ExportTypeMapping 
(System.Xml.Serialization.XmlTypeMapping xmlTypeMapping)
in <0x00013> System.Xml.Serialization.XmlCodeExporter:ExportTypeMapping 
(System.Xml.Serialization.XmlTypeMapping xmlTypeMapping)

----

mono:/opt/google# mono test.exe

Unhandled Exception: System.Web.Services.Protocols.SoapException: An 
internal error has occurred.  Please retry your request.
in <0x00459> 
System.Web.Services.Protocols.SoapHttpClientProtocol:ReceiveResponse 
(System.Net.WebResponse response, 
System.Web.Services.Protocols.SoapClientMessage message, 
System.Web.Services.Protocols.SoapExtension[] extensions)
in (wrapper remoting-invoke-with-check) 
System.Web.Services.Protocols.SoapHttpClientProtocol:ReceiveResponse 
(System.Net.WebResponse,System.Web.Services.Protocols.SoapClientMessage,System.Web.Services.Protocols.SoapExtension[])
in <0x00270> System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke 
(System.String method_name, System.Object[] parameters)
in (wrapper remoting-invoke-with-check) 
System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke 
(string,object[])
in <0x00059> AdGroupServiceService:getAdGroup (Int32 adGroupId)
in (wrapper remoting-invoke-with-check) AdGroupServiceService:getAdGroup 
(int)
in <0x00269> AdGroupServiceDemo:Main ()

-----

/sebastian

Chris Turchin schrieb:

>Hi,
>
>On Tue, 2005-05-10 at 20:32 +0200, Sebastian Böhm wrote:
>  
>
>>mono:~# wsdl http://adwords.google.com/api/adwords/v2/CampaignService?wsdl
>>Mono Web Services Description Language Utility
>>Error: The HTML document does not contain Web service discovery information
>>    
>>
>
>This fist thing is a bug in wsdl, I think. The URL above does a 301
>redirect that wsdl is not following:
>
>$> wsdl http://adwords.google.com/api/adwords/v2/CampaignService?wsdl
>Mono Web Services Description Language Utility
>Error: The HTML document does not contain Web service discovery
>information
>
>$> wget http://adwords.google.com/api/adwords/v2/CampaignService?wsdl
>--23:40:20--
>http://adwords.google.com/api/adwords/v2/CampaignService?wsdl
>           => `CampaignService?wsdl'
>Resolving adwords.google.com... 216.239.59.112
>Connecting to adwords.google.com[216.239.59.112]:80... connected.
>HTTP request sent, awaiting response... 301 Moved Permanently
>Location: https://adwords.google.com/api/adwords/v2/CampaignService?wsdl
>[following]
>--23:40:21--
>https://adwords.google.com/api/adwords/v2/CampaignService?wsdl
>           => `CampaignService?wsdl'
>Connecting to adwords.google.com[216.239.59.112]:443... connected.
>HTTP request sent, awaiting response... 200 OK
>Length: 28,137 [text/xml]
>
>100%[====================================>] 28,137        24.57K/s
>
>###
>
>The error above w/ wsdl is reproducible using a simple 301 redirect to a
>non-Ssl resource as well. Anyway, if I take this https URL, I get a
>completely different error from wsdl:
>
>$> wsdl https://adwords.google.com/api/adwords/v2/CampaignService?wsdl
>Mono Web Services Description Language Utility
>Error: Error getting response stream (Write): SendFailure
>
>which I assume has to do with the Ssl stuff Spouliot mentioned in his
>post...
>
>Regards,
>
>--chris
>
>  
>




More information about the Mono-devel-list mailing list