public void Initialize(string genDirectory, string wsdlUrl, wsdlParser.definitions wsdlDef, MAPLib.MapCollection ctxParams) { m_directory = genDirectory; m_wsdlUrl = wsdlUrl; m_wsdl = wsdlDef; m_context = ctxParams; string projName; try { projName = (string)m_context["project"]; } catch (Exception) { projName = m_wsdl.Name; } if (projName.Length == 0) { projName = "SoapProxy"; } CodeGenContext.Current.ProjectName = projName; CodeGenContext.Current.Directory = m_directory; CodeGenContext.Current.WsdlUrl = m_wsdlUrl; m_project = new vcProject(m_directory, projName); }
public ComplexTypeWriter(vcProject project, string xmlName, string cppName) { m_itf = new Interface("I" + cppName, "IDispatch"); ProjectClass cls = project.AddClass(cppName, m_itf); m_cppName = cppName; m_impl = cls.impl.Create(); m_hdr = cls.header.Create(); m_vars = new StringCollection(); m_finalconstruct = new StringCollection(); m_idl = project.IdlFile; InitFiles(xmlName); }
public SerializerWriter(vcProject project, wsdlParser.qname serializerQName, string serializerName, string serializeeName) { ProjectClass cls = project.AddClass(serializerName, new Interface("ISoapSerializer", "IUnknown")); m_hdr = cls.header.Create(); m_impl = cls.impl.Create(); m_cppName = serializerName; m_serializeeName = serializeeName; InitFiles(); m_deserA = new ArrayList(); m_deserE = new ArrayList(); m_deserC = new ArrayList(); }
private PocketSOAP.ISerializerFactory2 m_sf; // the serializer factory config, does the core type mappings for us public ProxyWriter(string wsdlUrl, wsdlParser.definitions def, wsdlParser.port port, wsdlParser.binding binding, wsdlParser.portType portType, vcProject project) { m_wsdlUrl = wsdlUrl; m_wsdl = def; m_port = port; m_binding = binding; m_portType = portType; m_project = project; m_factory = new SerializerFactoryConfig(); m_sf = new PocketSOAP.CoSerializerFactoryClass(); m_typesCache = new Hashtable(); m_namemap = new Hashtable(); Initialize(); }