[Mono-list] Web Services help

Joel Gwynn joelman at gmail.com
Sun Jul 8 21:12:51 EDT 2007


Will do.  So at any rate, I found an AWSECommerceService.cs that
somebody else has generated, and added it to my App_Code folder, and
it runs just fine in VS2005, but mono seems to be ignoring it:

error CS0246: The type or namespace name `AWSECommerceService' could
not be found. Are you missing a using directive or an assembly
reference?

Do I have to do something special to get mono to see files in the
App_Code folder?

TIA,
Joel

On 7/8/07, Gert Driesen <gert.driesen at telenet.be> wrote:
> Joel,
>
> I'd recommend submitting a bug report, and attaching the WSDL.
>
> Gert
>
> -----Original Message-----
> From: mono-list-bounces at lists.ximian.com
> [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Joel Gwynn
> Sent: zondag 8 juli 2007 17:36
> To: mono-list at lists.ximian.com
> Subject: [Mono-list] Web Services help
>
> 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.GenerateWebRefere
> nces
> (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]
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>


More information about the Mono-list mailing list