|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
CGI problemOK, but, when I add a Web Reference to a XML Web Service and try to use a function from the Web Services the answer is always at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, CompilerParameters parameters, Evidence evidence) at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, CompilerParameters parameters, Assembly assembly, Hashtable assemblies) at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence) at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Type type) at System.Web.Services.Protocols.SoapClientType..ctor(Type type) at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor() at test.EncrypServer.Service..ctor() at test.Program.Main(String[] args) Please, help me. <alabr***@gmail.com> wrote in message
Show quote news:1170968994.996937.196350@h3g2000cwc.googlegroups.com... Wow, didn't know anyone did CGI apps anymore. Cool.> Hi, i'm doing a console application, is a CGI program, every thing is > OK, but, when I add a Web Reference to a XML Web Service and try to > use a function from the Web Services the answer is always > > at System.Xml.Serialization.Compiler.Compile(Assembly parent, String > ns, CompilerParameters parameters, Evidence evidence) > at > System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] > xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, > CompilerParameters parameters, Assembly assembly, Hashtable > assemblies) > at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] > xmlMappings, Type[] types, String defaultNamespace, String location, > Evidence evidence) > at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] > mappings, Type type) > at System.Web.Services.Protocols.SoapClientType..ctor(Type type) > at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor() > at test.EncrypServer.Service..ctor() > at test.Program.Main(String[] args) > > Anyway the XmlSerializer generates an assembly on-the-fly, and in certain security contexts this doesn't work quite right. My guess is that you will need to use SGen.exe to create the serialization assemblies beforehand. XML Serializer Generator Tool (Sgen.exe) http://msdn2.microsoft.com/en-us/library/bk3w6240(VS.80).aspx David |
|||||||||||||||||||||||