[Mono-list] Web Services help
Joel Gwynn
joelman at gmail.com
Sun Jul 8 11:36:27 EDT 2007
Hey all. I'm trying to use Amazon Web Services in an ASP.NET project.
Two questions:
1. Is the wsdl2 tool the only way to use web services, or is there a
way to get mono to see web services that have been automatically added
to my App_WebReferences folder by Visual Studio?
2. Using the wsdl2 tool on debian linux, I get many errors:
Web Services Description Language Utility
Mono Framework v2.0.50727.42
Error: Object reference not set to an instance of an object
Stack:
at System.Xml.Serialization.XmlSchemaImporter.FindBuiltInType
(System.Xml.XmlQualifiedName qname,
System.Xml.Schema.XmlSchemaSimpleType st) [0x00000]
at System.Xml.Serialization.XmlSchemaImporter.ImportClassSimpleType
(System.Xml.XmlQualifiedName typeQName,
System.Xml.Schema.XmlSchemaSimpleType stype,
System.Xml.XmlQualifiedName root) [0x00000]
at System.Xml.Serialization.XmlSchemaImporter.ImportType
(System.Xml.XmlQualifiedName name, System.Xml.Schema.XmlSchemaType
stype, System.Xml.XmlQualifiedName root) [0x00000]
at System.Xml.Serialization.XmlSchemaImporter.ImportType
(System.Xml.XmlQualifiedName name, System.Xml.XmlQualifiedName root,
Boolean throwOnError) [0x00000]
at System.Xml.Serialization.XmlSchemaImporter.GetTypeData
(System.Xml.XmlQualifiedName typeQName, System.Xml.XmlQualifiedName
root) [0x00000]
at System.Xml.Serialization.XmlSchemaImporter.GetElementTypeData
(System.Xml.XmlQualifiedName typeQName,
System.Xml.Schema.XmlSchemaElement elem, System.Xml.XmlQualifiedName
root, System.Xml.Serialization.XmlTypeMapping map) [0x00000]
at System.Xml.Serialization.XmlSchemaImporter.ImportSequenceContent
(System.Xml.XmlQualifiedName typeQName,
System.Xml.Serialization.ClassMap cmap,
System.Xml.Schema.XmlSchemaObjectCollection items,
System.Xml.Serialization.CodeIdentifiers classIds, Boolean multiValue,
System.Boolean isMixed) [0x00000]
at System.Xml.Serialization.XmlSchemaImporter.ImportParticleContent
(System.Xml.XmlQualifiedName typeQName,
System.Xml.Serialization.ClassMap cmap,
System.Xml.Schema.XmlSchemaParticle particle,
System.Xml.Serialization.CodeIdentifiers classIds, Boolean multiValue,
System.Boolean isMixed) [0x00000]
at System.Xml.Serialization.XmlSchemaImporter.ImportParticleComplexContent
(System.Xml.XmlQualifiedName typeQName,
System.Xml.Serialization.ClassMap cmap,
System.Xml.Schema.XmlSchemaParticle particle,
System.Xml.Serialization.CodeIdentifiers classIds, Boolean isMixed)
[0x00000]
at System.Xml.Serialization.XmlSchemaImporter.BuildClassMap
(System.Xml.Serialization.XmlTypeMapping map,
System.Xml.XmlQualifiedName typeQName,
System.Xml.Schema.XmlSchemaComplexType stype) [0x00000]
at System.Xml.Serialization.XmlSchemaImporter.BuildPendingMaps () [0x00000]
at System.Xml.Serialization.XmlSchemaImporter.ImportMembersMapping
(System.Xml.XmlQualifiedName[] names) [0x00000]
at System.Web.Services.Description.SoapProtocolImporter.ImportMembersMapping
(System.Web.Services.Description.Message msg,
System.Web.Services.Description.SoapBodyBinding sbb, SoapBindingStyle
style, Boolean output, Boolean wrapped) [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 System.Web.Services.Description.ServiceDescriptionImporter.GenerateWebReferences
(System.Web.Services.Description.WebReferenceCollection webReferences,
CodeGenerationOptions options, ServiceDescriptionImportStyle style,
System.CodeDom.Compiler.CodeDomProvider codeGenerator,
System.CodeDom.CodeCompileUnit codeCompileUnit, Boolean verbose)
[0x00000]
at Mono.WebServices.Driver.GenerateCode
(System.Web.Services.Description.WebReferenceCollection references,
System.CodeDom.CodeCompileUnit codeUnit) [0x00000]
at Mono.WebServices.Driver.Run (System.String[] args) [0x00000]
More information about the Mono-list
mailing list