P@ Log

Patrick Chanezon about Platforms and Software Development

 

Mono wsdl generation tools on Mac OS X: not fully baked yet

September 19th, 2006 · No Comments

I’m doing an AdWords API lib in C# these days, and since I do most of my dev on Mac , I decided to give Mono a go. The install of Mono on Mac OS X is a snap: download, mount, install, done!

However the wsdl generation tool’s not there yet:

wsdl “https://adwords.google.com/api/adwords/v5/AccountService?wsdl”
Mono Web Services Description Language Utility
Error: Error getting response stream (Trust failure): TrustFailure

Then when I wget the wsdl and try generating locally, even worse:

wsdl AccountService.wsdl
Mono Web Services Description Language Utility
System.NullReferenceException: Object reference not set to an instance of an object
at System.Xml.Serialization.MapCodeGenerator.ExportMapCode (System.Xml.Serialization.XmlTypeMapping map, Boolean isTopLevel) [0x00000]
at System.Xml.Serialization.MapCodeGenerator.ExportTypeMapping (System.Xml.Serialization.XmlTypeMapping xmlTypeMapping, Boolean isTopLevel) [0x00000]
at System.Xml.Serialization.XmlCodeExporter.ExportTypeMapping (System.Xml.Serialization.XmlTypeMapping xmlTypeMapping) [0x00000]
at System.Web.Services.Description.SoapProtocolImporter.ImportHeader (System.CodeDom.CodeMemberMethod method, System.Web.Services.Description.SoapHeaderBinding hb, SoapHeaderDirection direction) [0x00000]
at System.Web.Services.Description.SoapProtocolImporter.ImportHeaders (System.CodeDom.CodeMemberMethod method) [0x00000]
at System.Web.Services.Description.SoapProtocolImporter.GenerateMethod (System.Xml.Serialization.CodeIdentifiers memberIds, System.Web.Services.Description.SoapOperationBinding soapOper, System.Web.Services.Description.SoapBodyBinding bodyBinding, System.Xml.Serialization.XmlMembersMapping inputMembers, System.Xml.Serialization.XmlMembersMapping outputMembers) [0x00000]
at System.Web.Services.Description.SoapProtocolImporter.GenerateMethod () [0x00000]
at System.Web.Services.Description.ProtocolImporter.ImportPortBinding (Boolean multipleBindings) [0x00000]
at System.Web.Services.Description.ProtocolImporter.Import (System.Web.Services.Description.ServiceDescriptionImporter descriptionImporter, System.CodeDom.CodeNamespace codeNamespace, System.CodeDom.CodeCompileUnit codeCompileUnit, System.Collections.ArrayList importInfo) [0x00000]
at System.Web.Services.Description.ServiceDescriptionImporter.Import (System.CodeDom.CodeNamespace codeNamespace, System.CodeDom.CodeCompileUnit codeCompileUnit) [0x00000]
at Mono.WebServices.SourceGenerator.GenerateCode (System.Collections.ArrayList descriptions, System.Collections.ArrayList schemas) [0x00000]
at Mono.WebServices.Driver.Run (System.String[] args) [0x00000]

Bah, tomorrow I’ll just hack this on a windows box. Tood bad, it seems like Frank Mantek had more luck with the Mono xml libraries when implementing the GData C# client library.

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment