public void execute(out GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtProgramNames_ProgramName> aP0_ProgramNames) { this.AV10ProgramNames = new GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtProgramNames_ProgramName>(context, "ProgramName", "FMX"); initialize(); executePrivate(); aP0_ProgramNames = this.AV10ProgramNames; }
void executePrivate( ) { /* GeneXus formulas */ /* Output device settings */ AV10ProgramNames = new GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtProgramNames_ProgramName>(context, "ProgramName", "FMX"); new GeneXus.Programs.wwpbaseobjects.loadwwpcontext(context).execute(out AV9WWPContext); AV14name = "PedidoWW"; AV15description = " Pedido"; AV16link = "pedidoww.aspx"; /* Execute user subroutine: 'ADDPROGRAM' */ S111(); if (returnInSub) { this.cleanup(); if (true) { return; } } AV14name = "PessoaWW"; AV15description = " Pessoa"; AV16link = "pessoaww.aspx"; /* Execute user subroutine: 'ADDPROGRAM' */ S111(); if (returnInSub) { this.cleanup(); if (true) { return; } } AV14name = "ProdutoWW"; AV15description = " Produto"; AV16link = "produtoww.aspx"; /* Execute user subroutine: 'ADDPROGRAM' */ S111(); if (returnInSub) { this.cleanup(); if (true) { return; } } AV14name = "ParametroWW"; AV15description = " Parametro"; AV16link = "parametroww.aspx"; /* Execute user subroutine: 'ADDPROGRAM' */ S111(); if (returnInSub) { this.cleanup(); if (true) { return; } } this.cleanup(); }
public void execute(out GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtHomeModulesSDT_HomeModulesSDTItem> aP0_Gxm3rootcol) { this.Gxm3rootcol = new GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtHomeModulesSDT_HomeModulesSDTItem>(context, "HomeModulesSDTItem", "FMX"); initialize(); executePrivate(); aP0_Gxm3rootcol = this.Gxm3rootcol; }
public override void initialize( ) { AV10WWPContext = new GeneXus.Programs.wwpbaseobjects.SdtWWPContext(context); AV18tSDT_EncounterCount = new GXBaseCollection <SdtSDT_EncounterCount_SDT_EncounterCountItem>(context, "SDT_EncounterCountItem", "DataAnalysisPlatform"); AV9tNowDateTime = (DateTime)(DateTime.MinValue); AV12tMonthName1 = ""; AV13tMonthName2 = ""; AV14tMonthName3 = ""; AV15tMonthName4 = ""; AV11tMonthName5 = ""; AV16tMonthName6 = ""; AV17tBeginDateTime = (DateTime)(DateTime.MinValue); AV19tSubItem = new SdtSDT_EncounterCount_SDT_EncounterCountItem(context); AV21tConditionMonthName = ""; scmdbuf = ""; P00282_A182BR_Encounter_CrtDate = new DateTime[] { DateTime.MinValue }; P00282_n182BR_Encounter_CrtDate = new bool[] { false }; P00282_A183BR_Encounter_CrtUser = new String[] { "" }; P00282_n183BR_Encounter_CrtUser = new bool[] { false }; P00282_A19BR_EncounterID = new long[1]; A182BR_Encounter_CrtDate = (DateTime)(DateTime.MinValue); A183BR_Encounter_CrtUser = ""; pr_default = new DataStoreProvider(context, new GeneXus.Programs.zbr_getencountercount__default(), new Object[][] { new Object[] { P00282_A182BR_Encounter_CrtDate, P00282_n182BR_Encounter_CrtDate, P00282_A183BR_Encounter_CrtUser, P00282_n183BR_Encounter_CrtUser, P00282_A19BR_EncounterID } } ); /* GeneXus formulas. */ context.Gx_err = 0; }
public void execute( out GXBaseCollection<GeneXus.Programs.wwpbaseobjects.SdtHomeSampleData_HomeSampleDataItem> aP0_Gxm2rootcol ) { this.Gxm2rootcol = new GXBaseCollection<GeneXus.Programs.wwpbaseobjects.SdtHomeSampleData_HomeSampleDataItem>( context, "HomeSampleDataItem", "DataAnalysisPlatform") ; initialize(); executePrivate(); aP0_Gxm2rootcol=this.Gxm2rootcol; }
public override void initialize( ) { AV10GridStateCollection = new GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtGridStateCollection_Item>(context, "Item", ""); AV11GridStateCollectionItem = new GeneXus.Programs.wwpbaseobjects.SdtGridStateCollection_Item(context); /* GeneXus formulas. */ context.Gx_err = 0; }
public void execute(out GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtDVelop_Menu_Item> aP0_Gxm2rootcol) { this.Gxm2rootcol = new GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtDVelop_Menu_Item>(context, "Item", "FMX"); initialize(); executePrivate(); aP0_Gxm2rootcol = this.Gxm2rootcol; }
public void execute(ref GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtDVelop_Menu_Item> aP0_DVelop_Menu) { this.AV9DVelop_Menu = aP0_DVelop_Menu; initialize(); executePrivate(); aP0_DVelop_Menu = this.AV9DVelop_Menu; }
public override void initialize( ) { wcpOAV15UserKey = ""; wcpOAV5GridStateKey = ""; gxfirstwebparm = ""; gxfirstwebparm_bkp = ""; sDynURL = ""; FormProcess = ""; bodyStyle = ""; GXKey = ""; GX_FocusControl = ""; Form = new GXWebForm(); sPrefix = ""; sEvt = ""; EvtGridId = ""; EvtRowId = ""; sEvtType = ""; AV8FilterName = ""; AV10GridStateCollection = new GXBaseCollection<GeneXus.Programs.wwpbaseobjects.SdtGridStateCollection_Item>( context, "Item", ""); AV11GridStateCollectionItem = new GeneXus.Programs.wwpbaseobjects.SdtGridStateCollection_Item(context); AV6Session = context.GetSession(); sStyleString = ""; ClassString = ""; StyleString = ""; TempTags = ""; bttBtnenter_Jsonclick = ""; bttBtncancel_Jsonclick = ""; lblTextblockfiltername_Jsonclick = ""; BackMsgLst = new msglist(); LclMsgLst = new msglist(); /* GeneXus formulas. */ context.Gx_err = 0; }
public override void initialize( ) { AV5HomeModulesSDT = new GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtHomeModulesSDT_HomeModulesSDTItem>(context, "HomeModulesSDTItem", "FMX"); GXt_objcol_SdtHomeModulesSDT_HomeModulesSDTItem1 = new GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtHomeModulesSDT_HomeModulesSDTItem>(context, "HomeModulesSDTItem", "FMX"); AV6HomeModulesSDTItem = new GeneXus.Programs.wwpbaseobjects.SdtHomeModulesSDT_HomeModulesSDTItem(context); Gxm2homemodulessdt = new GeneXus.Programs.wwpbaseobjects.SdtHomeModulesSDT_HomeModulesSDTItem(context); /* GeneXus formulas. */ context.Gx_err = 0; }
public void Append(GXBaseCollection <SdtMessages_Message> list) { foreach (SdtMessages_Message item in list) { if (!(item.gxTpr_Type == MESSAGE_TYPE_WARNING && (item.gxTpr_Id == MESSAGE_SUCADDED || item.gxTpr_Id == MESSAGE_UPDATED || item.gxTpr_Id == MESSAGE_DELETED))) { addItem(item.gxTpr_Description, item.gxTpr_Type, item.gxTpr_Id); } } }
public void executeSubmit( out GXBaseCollection<GeneXus.Programs.wwpbaseobjects.SdtHomeSampleData_HomeSampleDataItem> aP0_Gxm2rootcol ) { gethomesampledata objgethomesampledata; objgethomesampledata = new gethomesampledata(); objgethomesampledata.Gxm2rootcol = new GXBaseCollection<GeneXus.Programs.wwpbaseobjects.SdtHomeSampleData_HomeSampleDataItem>( context, "HomeSampleDataItem", "DataAnalysisPlatform") ; objgethomesampledata.context.SetSubmitInitialConfig(context); objgethomesampledata.initialize(); ThreadPool.QueueUserWorkItem( PropagateCulture(new WaitCallback( executePrivateCatch )),objgethomesampledata); aP0_Gxm2rootcol=this.Gxm2rootcol; }
public override void initialize( ) { Gxm1dvelop_menu = new GeneXus.Programs.wwpbaseobjects.SdtDVelop_Menu_Item(context); AV13GXV1 = new GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtProgramNames_ProgramName>(context, "ProgramName", "FMX"); GXt_objcol_SdtProgramNames_ProgramName1 = new GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtProgramNames_ProgramName>(context, "ProgramName", "FMX"); AV6ProgramName = new GeneXus.Programs.wwpbaseobjects.SdtProgramNames_ProgramName(context); Gxm4dvelop_menu_subitems = new GeneXus.Programs.wwpbaseobjects.SdtDVelop_Menu_Item(context); /* GeneXus formulas. */ context.Gx_err = 0; }
public void executeSubmit(out GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtDVelop_Menu_Item> aP0_Gxm2rootcol) { menuoptionsdata objmenuoptionsdata; objmenuoptionsdata = new menuoptionsdata(); objmenuoptionsdata.Gxm2rootcol = new GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtDVelop_Menu_Item>(context, "Item", "FMX"); objmenuoptionsdata.context.SetSubmitInitialConfig(context); objmenuoptionsdata.initialize(); ThreadPool.QueueUserWorkItem(PropagateCulture(new WaitCallback(executePrivateCatch)), objmenuoptionsdata); aP0_Gxm2rootcol = this.Gxm2rootcol; }
public void executeSubmit(out GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtProgramNames_ProgramName> aP0_ProgramNames) { listwwpprograms objlistwwpprograms; objlistwwpprograms = new listwwpprograms(); objlistwwpprograms.AV10ProgramNames = new GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtProgramNames_ProgramName>(context, "ProgramName", "FMX"); objlistwwpprograms.context.SetSubmitInitialConfig(context); objlistwwpprograms.initialize(); ThreadPool.QueueUserWorkItem(PropagateCulture(new WaitCallback(executePrivateCatch)), objlistwwpprograms); aP0_ProgramNames = this.AV10ProgramNames; }
public void executeSubmit(out GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtHomeModulesSDT_HomeModulesSDTItem> aP0_Gxm3rootcol) { getsomehomemodulessample objgetsomehomemodulessample; objgetsomehomemodulessample = new getsomehomemodulessample(); objgetsomehomemodulessample.Gxm3rootcol = new GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtHomeModulesSDT_HomeModulesSDTItem>(context, "HomeModulesSDTItem", "FMX"); objgetsomehomemodulessample.context.SetSubmitInitialConfig(context); objgetsomehomemodulessample.initialize(); ThreadPool.QueueUserWorkItem(PropagateCulture(new WaitCallback(executePrivateCatch)), objgetsomehomemodulessample); aP0_Gxm3rootcol = this.Gxm3rootcol; }
public void executeSubmit(ref GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtDVelop_Menu_Item> aP0_DVelop_Menu) { getmenuauthorizedoptions objgetmenuauthorizedoptions; objgetmenuauthorizedoptions = new getmenuauthorizedoptions(); objgetmenuauthorizedoptions.AV9DVelop_Menu = aP0_DVelop_Menu; objgetmenuauthorizedoptions.context.SetSubmitInitialConfig(context); objgetmenuauthorizedoptions.initialize(); ThreadPool.QueueUserWorkItem(PropagateCulture(new WaitCallback(executePrivateCatch)), objgetmenuauthorizedoptions); aP0_DVelop_Menu = this.AV9DVelop_Menu; }
public override void initialize( ) { GXSoapHTTPRequest = new GxHttpRequest(context); GXSoapXMLReader = new GXXMLReader(context.GetPhysicalPath()); GXSoapHTTPResponse = new GxHttpResponse(context); GXSoapXMLWriter = new GXXMLWriter(context.GetPhysicalPath()); currSoapErrmsg = ""; currMethod = ""; AV5HomeSampleData = new GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtHomeSampleData_HomeSampleDataItem>(context, "HomeSampleDataItem", "DataAnalysisPlatform"); GXt_objcol_SdtHomeSampleData_HomeSampleDataItem1 = new GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtHomeSampleData_HomeSampleDataItem>(context, "HomeSampleDataItem", "DataAnalysisPlatform"); AV6HomeSampleDataItem = new GeneXus.Programs.wwpbaseobjects.SdtHomeSampleData_HomeSampleDataItem(context); Gxm2homesamplenamevaluedata = new GeneXus.Programs.wwpbaseobjects.SdtHomeSampleNameValueData_HomeSampleNameValueDataItem(context); /* GeneXus formulas. */ context.Gx_err = 0; }
public void GenerateSimpleUC() { GXUserControl ucMycontrol1 = new GXUserControl(); UserControlFactoryImpl factory = new UserControlFactoryImpl(); GxDictionary propbag = new GxDictionary(); string GetTemplateFile(string type) { return("TestModule.MyControl.view"); } var context = new GxContext(); StringBuilder sb = new StringBuilder(); context.OutputWriter = new HtmlTextWriter(new StringWriter(sb)); UserControlGenerator.GetTemplateAction = GetTemplateFile; // Initialize Data in SDT Collection var AV6ItemCollection = new GXBaseCollection <SdtItem>(context, "Item", "testuc"); string HELLO = "Hello Test UC"; string ONE = "One"; string TWO = "Two"; var AV7Item = new SdtItem(context) { gxTpr_Name = ONE }; AV6ItemCollection.Add(AV7Item, 0); AV7Item = new SdtItem(context) { gxTpr_Name = TWO }; AV6ItemCollection.Add(AV7Item, 0); ucMycontrol1.SetProperty("Items", AV6ItemCollection); ucMycontrol1.SetProperty("Message", HELLO); ucMycontrol1.SetProperty("Boolean", true); ucMycontrol1.Render(context, "testmodule.mycontrol", "internalName", "MYCONTROL1Container"); string output = sb.ToString(); AssertContains(ONE, output); AssertContains(TWO, output); AssertContains(HELLO, output); AssertContains("Boolean:true", output); }
public override void initialize( ) { wcpOAV21tCurrentCode = ""; gxfirstwebparm = ""; gxfirstwebparm_bkp = ""; sDynURL = ""; FormProcess = ""; bodyStyle = ""; GXKey = ""; AV7UploadedFiles = new GXBaseCollection <SdtFileUploadData>(context, "FileUploadData", "DataAnalysisPlatform"); AV12BR_MedicalImaging = new SdtBR_MedicalImaging(context); GX_FocusControl = ""; Form = new GXWebForm(); sPrefix = ""; ucFileupload1 = new GXUserControl(); sEvt = ""; EvtGridId = ""; EvtRowId = ""; sEvtType = ""; AV23cookie = new GxHttpCookie(); AV24httpresponse = new GxHttpResponse(context); GXt_dbconnection1 = new GxDataStore(); AV8FileUploadData = new SdtFileUploadData(context); AV18tBaseFile = new GxFile(context.GetPhysicalPath()); AV19tLargeHtml = ""; AV10tFileNewName = ""; AV22Context = new GeneXus.Programs.wwpbaseobjects.SdtWWPContext(context); BackMsgLst = new msglist(); LclMsgLst = new msglist(); pr_datastore1 = new DataStoreProvider(context, new GeneXus.Programs.br_sduploadimage__datastore1(), new Object[][] { } ); pr_default = new DataStoreProvider(context, new GeneXus.Programs.br_sduploadimage__default(), new Object[][] { } ); /* GeneXus formulas. */ context.Gx_err = 0; }
public override void initialize( ) { AV10SDT_EntityCount = new GXBaseCollection <SdtSDT_EntityCount>(context, "SDT_EntityCount", "DataAnalysisPlatform"); scmdbuf = ""; P003R2_A360BAS_TenantTenantCode = new String[] { "" }; P003R2_n360BAS_TenantTenantCode = new bool[] { false }; A360BAS_TenantTenantCode = ""; AV11SDT_EntityCountItem = new SdtSDT_EntityCount(context); AV14tNewSDT_EntityCount = new GXBaseCollection <SdtSDT_EntityCount>(context, "SDT_EntityCount", "DataAnalysisPlatform"); AV12SDT_EntityCountItemCheck = new SdtSDT_EntityCount(context); P003R3_Aaggopt0 = new long[1]; pr_default = new DataStoreProvider(context, new GeneXus.Programs.zutil_calculatetenant__default(), new Object[][] { new Object[] { P003R2_A360BAS_TenantTenantCode, P003R2_n360BAS_TenantTenantCode } , new Object[] { P003R3_Aaggopt0 } } ); /* GeneXus formulas. */ context.Gx_err = 0; }
public override void webExecute( ) { context.SetDefaultTheme("WorkWithPlusTheme"); initialize(); Gxm2rootcol = new GXBaseCollection<GeneXus.Programs.wwpbaseobjects.SdtHomeSampleData_HomeSampleDataItem>( context, "HomeSampleDataItem", "DataAnalysisPlatform") ; if ( ! context.isAjaxRequest( ) ) { GXSoapHTTPResponse.AppendHeader("Content-type", "text/xml;charset=utf-8"); } if ( StringUtil.StrCmp(StringUtil.Lower( GXSoapHTTPRequest.Method), "get") == 0 ) { if ( StringUtil.StrCmp(StringUtil.Lower( GXSoapHTTPRequest.QueryString), "wsdl") == 0 ) { GXSoapXMLWriter.OpenResponse(GXSoapHTTPResponse); GXSoapXMLWriter.WriteStartDocument("utf-8", 0); GXSoapXMLWriter.WriteStartElement("definitions"); GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.GetHomeSampleData"); GXSoapXMLWriter.WriteAttribute("targetNamespace", "DataAnalysisPlatform"); GXSoapXMLWriter.WriteAttribute("xmlns:wsdlns", "DataAnalysisPlatform"); GXSoapXMLWriter.WriteAttribute("xmlns:soap", "http://schemas.xmlsoap.org/wsdl/soap/"); GXSoapXMLWriter.WriteAttribute("xmlns:xsd", "http://www.w3.org/2001/XMLSchema"); GXSoapXMLWriter.WriteAttribute("xmlns", "http://schemas.xmlsoap.org/wsdl/"); GXSoapXMLWriter.WriteAttribute("xmlns:tns", "DataAnalysisPlatform"); GXSoapXMLWriter.WriteStartElement("types"); GXSoapXMLWriter.WriteStartElement("schema"); GXSoapXMLWriter.WriteAttribute("targetNamespace", "DataAnalysisPlatform"); GXSoapXMLWriter.WriteAttribute("xmlns", "http://www.w3.org/2001/XMLSchema"); GXSoapXMLWriter.WriteAttribute("xmlns:SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/"); GXSoapXMLWriter.WriteAttribute("elementFormDefault", "qualified"); GXSoapXMLWriter.WriteStartElement("complexType"); GXSoapXMLWriter.WriteAttribute("name", "HomeSampleData"); GXSoapXMLWriter.WriteStartElement("sequence"); GXSoapXMLWriter.WriteStartElement("element"); GXSoapXMLWriter.WriteAttribute("minOccurs", "0"); GXSoapXMLWriter.WriteAttribute("maxOccurs", "unbounded"); GXSoapXMLWriter.WriteAttribute("name", "HomeSampleDataItem"); GXSoapXMLWriter.WriteAttribute("type", "tns:WWPBaseObjects.HomeSampleData.HomeSampleDataItem"); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteStartElement("complexType"); GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.HomeSampleData.HomeSampleDataItem"); GXSoapXMLWriter.WriteStartElement("sequence"); GXSoapXMLWriter.WriteStartElement("element"); GXSoapXMLWriter.WriteAttribute("name", "ProductName"); GXSoapXMLWriter.WriteAttribute("type", "xsd:string"); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteStartElement("element"); GXSoapXMLWriter.WriteAttribute("name", "ProductPrice"); GXSoapXMLWriter.WriteAttribute("type", "xsd:double"); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteStartElement("element"); GXSoapXMLWriter.WriteAttribute("name", "ProductWeight"); GXSoapXMLWriter.WriteAttribute("type", "xsd:double"); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteStartElement("element"); GXSoapXMLWriter.WriteAttribute("name", "ProductVolume"); GXSoapXMLWriter.WriteAttribute("type", "xsd:double"); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteStartElement("element"); GXSoapXMLWriter.WriteAttribute("name", "ProductDiscount"); GXSoapXMLWriter.WriteAttribute("type", "xsd:double"); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteStartElement("element"); GXSoapXMLWriter.WriteAttribute("name", "ProductStatus"); GXSoapXMLWriter.WriteAttribute("type", "xsd:byte"); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteStartElement("element"); GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.GetHomeSampleData.Execute"); GXSoapXMLWriter.WriteStartElement("complexType"); GXSoapXMLWriter.WriteStartElement("sequence"); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteStartElement("element"); GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.GetHomeSampleData.ExecuteResponse"); GXSoapXMLWriter.WriteStartElement("complexType"); GXSoapXMLWriter.WriteStartElement("sequence"); GXSoapXMLWriter.WriteElement("element", ""); GXSoapXMLWriter.WriteAttribute("minOccurs", "1"); GXSoapXMLWriter.WriteAttribute("maxOccurs", "1"); GXSoapXMLWriter.WriteAttribute("name", "ReturnValue"); GXSoapXMLWriter.WriteAttribute("type", "tns:HomeSampleData"); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteStartElement("message"); GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.GetHomeSampleData.ExecuteSoapIn"); GXSoapXMLWriter.WriteElement("part", ""); GXSoapXMLWriter.WriteAttribute("name", "parameters"); GXSoapXMLWriter.WriteAttribute("element", "tns:WWPBaseObjects.GetHomeSampleData.Execute"); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteStartElement("message"); GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.GetHomeSampleData.ExecuteSoapOut"); GXSoapXMLWriter.WriteElement("part", ""); GXSoapXMLWriter.WriteAttribute("name", "parameters"); GXSoapXMLWriter.WriteAttribute("element", "tns:WWPBaseObjects.GetHomeSampleData.ExecuteResponse"); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteStartElement("portType"); GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.GetHomeSampleDataSoapPort"); GXSoapXMLWriter.WriteStartElement("operation"); GXSoapXMLWriter.WriteAttribute("name", "Execute"); GXSoapXMLWriter.WriteElement("input", ""); GXSoapXMLWriter.WriteAttribute("message", "wsdlns:"+"WWPBaseObjects.GetHomeSampleData.ExecuteSoapIn"); GXSoapXMLWriter.WriteElement("output", ""); GXSoapXMLWriter.WriteAttribute("message", "wsdlns:"+"WWPBaseObjects.GetHomeSampleData.ExecuteSoapOut"); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteStartElement("binding"); GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.GetHomeSampleDataSoapBinding"); GXSoapXMLWriter.WriteAttribute("type", "wsdlns:"+"WWPBaseObjects.GetHomeSampleDataSoapPort"); GXSoapXMLWriter.WriteElement("soap:binding", ""); GXSoapXMLWriter.WriteAttribute("style", "document"); GXSoapXMLWriter.WriteAttribute("transport", "http://schemas.xmlsoap.org/soap/http"); GXSoapXMLWriter.WriteStartElement("operation"); GXSoapXMLWriter.WriteAttribute("name", "Execute"); GXSoapXMLWriter.WriteElement("soap:operation", ""); GXSoapXMLWriter.WriteAttribute("soapAction", "DataAnalysisPlatformaction/"+"wwpbaseobjects.AGETHOMESAMPLEDATA.Execute"); GXSoapXMLWriter.WriteStartElement("input"); GXSoapXMLWriter.WriteElement("soap:body", ""); GXSoapXMLWriter.WriteAttribute("use", "literal"); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteStartElement("output"); GXSoapXMLWriter.WriteElement("soap:body", ""); GXSoapXMLWriter.WriteAttribute("use", "literal"); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteStartElement("service"); GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.GetHomeSampleData"); GXSoapXMLWriter.WriteStartElement("port"); GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.GetHomeSampleDataSoapPort"); GXSoapXMLWriter.WriteAttribute("binding", "wsdlns:"+"WWPBaseObjects.GetHomeSampleDataSoapBinding"); GXSoapXMLWriter.WriteElement("soap:address", ""); GXSoapXMLWriter.WriteAttribute("location", "http://"+context.GetServerName( )+((context.GetServerPort( )>0)&&(context.GetServerPort( )!=80)&&(context.GetServerPort( )!=443) ? ":"+StringUtil.LTrim( StringUtil.Str( (decimal)(context.GetServerPort( )), 6, 0)) : "")+context.GetScriptPath( )+"wwpbaseobjects.gethomesampledata.aspx"); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.Close(); return ; } else { currSoapErr = (short)(-20000); currSoapErrmsg = "No SOAP request found. Call " + "http://" + context.GetServerName( ) + ((context.GetServerPort( )>0)&&(context.GetServerPort( )!=80)&&(context.GetServerPort( )!=443) ? ":"+StringUtil.LTrim( StringUtil.Str( (decimal)(context.GetServerPort( )), 6, 0)) : "") + context.GetScriptPath( ) + "wwpbaseobjects.gethomesampledata.aspx" + "?wsdl to get the WSDL."; } } if ( currSoapErr == 0 ) { GXSoapXMLReader.OpenRequest(GXSoapHTTPRequest); GXSoapXMLReader.ReadExternalEntities = 0; GXSoapXMLReader.IgnoreComments = 1; GXSoapError = GXSoapXMLReader.Read(); while ( GXSoapError > 0 ) { this.SetPrefixesFromReader( GXSoapXMLReader); if ( StringUtil.StringSearch( GXSoapXMLReader.Name, "Body", 1) > 0 ) { if (true) break; } GXSoapError = GXSoapXMLReader.Read(); } if ( GXSoapError > 0 ) { GXSoapError = GXSoapXMLReader.Read(); if ( GXSoapError > 0 ) { this.SetPrefixesFromReader( GXSoapXMLReader); currMethod = GXSoapXMLReader.Name; if ( ( StringUtil.StringSearch( currMethod+"&", "Execute&", 1) > 0 ) || ( currSoapErr != 0 ) ) { if ( currSoapErr == 0 ) { Gxm2rootcol = new GXBaseCollection<GeneXus.Programs.wwpbaseobjects.SdtHomeSampleData_HomeSampleDataItem>( context, "HomeSampleDataItem", "DataAnalysisPlatform"); } } else { currSoapErr = (short)(-20002); currSoapErrmsg = "Wrong method called. Expected method: " + "Execute"; } } } GXSoapXMLReader.Close(); } if ( currSoapErr == 0 ) { if ( GXSoapError < 0 ) { currSoapErr = (short)(GXSoapError*-1); currSoapErrmsg = context.sSOAPErrMsg; } else { if ( GXSoapXMLReader.ErrCode > 0 ) { currSoapErr = (short)(GXSoapXMLReader.ErrCode*-1); currSoapErrmsg = GXSoapXMLReader.ErrDescription; } else { if ( GXSoapError == 0 ) { currSoapErr = (short)(-20001); currSoapErrmsg = "Malformed SOAP message."; } else { currSoapErr = 0; currSoapErrmsg = "No error."; } } } } if ( currSoapErr == 0 ) { executePrivate(); } context.CloseConnections() ; GXSoapXMLWriter.OpenResponse(GXSoapHTTPResponse); GXSoapXMLWriter.WriteStartDocument("utf-8", 0); GXSoapXMLWriter.WriteStartElement("SOAP-ENV:Envelope"); GXSoapXMLWriter.WriteAttribute("xmlns:SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/"); GXSoapXMLWriter.WriteAttribute("xmlns:xsd", "http://www.w3.org/2001/XMLSchema"); GXSoapXMLWriter.WriteAttribute("xmlns:SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/"); GXSoapXMLWriter.WriteAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); if ( ( StringUtil.StringSearch( currMethod+"&", "Execute&", 1) > 0 ) || ( currSoapErr != 0 ) ) { GXSoapXMLWriter.WriteStartElement("SOAP-ENV:Body"); GXSoapXMLWriter.WriteStartElement("WWPBaseObjects.GetHomeSampleData.ExecuteResponse"); GXSoapXMLWriter.WriteAttribute("xmlns", "DataAnalysisPlatform"); if ( currSoapErr == 0 ) { if ( Gxm2rootcol != null ) { Gxm2rootcol.writexmlcollection(GXSoapXMLWriter, "ReturnValue", "DataAnalysisPlatform", "HomeSampleDataItem", "DataAnalysisPlatform"); } } else { GXSoapXMLWriter.WriteStartElement("SOAP-ENV:Fault"); GXSoapXMLWriter.WriteElement("faultcode", "SOAP-ENV:Client"); GXSoapXMLWriter.WriteElement("faultstring", currSoapErrmsg); GXSoapXMLWriter.WriteElement("detail", StringUtil.Trim( StringUtil.Str( (decimal)(currSoapErr), 10, 0))); GXSoapXMLWriter.WriteEndElement(); } GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.WriteEndElement(); } GXSoapXMLWriter.WriteEndElement(); GXSoapXMLWriter.Close(); cleanup(); }
public virtual bool FromJSonFile(GxFile file, GXBaseCollection <SdtMessages_Message> Messages) { throw new NotImplementedException(); }
public virtual bool FromJSonString(string s, GXBaseCollection <SdtMessages_Message> Messages) { throw new NotImplementedException(); }
public bool Connect(string profileName, GXProperties properties, ref GxStorageProvider storageProvider, ref GXBaseCollection <SdtMessages_Message> messages) { if (providerService != null) { if (profileName.Trim().ToLower() == "default") { profileName = providerService.Name; } return(Create(profileName, properties, ref storageProvider, ref messages)); } StorageMessages(new SystemException("Provider cannot be local"), messages); return(false); }
public bool Create(string name, GXProperties properties, ref GxStorageProvider storageProvider, ref GXBaseCollection <SdtMessages_Message> messages) { storageProvider = null; if (string.IsNullOrEmpty(name)) { GXUtil.ErrorToMessages("Unsopported", "Provider cannot be empty", messages); return(false); } try { if (providerService == null || !string.Equals(providerService.Name, name, StringComparison.OrdinalIgnoreCase)) { providerService = new GXService(); providerService.Type = GXServices.STORAGE_SERVICE; providerService.Name = name; providerService.AllowMultiple = false; providerService.Properties = new GXProperties(); } preprocess(name, properties); GxKeyValuePair prop = properties.GetFirst(); while (!properties.Eof()) { providerService.Properties.Set(prop.Key, prop.Value); prop = properties.GetNext(); } string typeFullName = providerService.ClassName; logger.Debug("Loading storage provider: " + typeFullName); #if !NETCORE Type type = Type.GetType(typeFullName, true, true); #else Type type = new AssemblyLoader(FileUtil.GetStartupDirectory()).GetType(typeFullName); #endif this.provider = (ExternalProvider)Activator.CreateInstance(type, new object[] { providerService }); } catch (Exception ex) { logger.Error("Couldn't connect to external storage provider. ", ex); StorageMessages(ex, messages); return(false); } storageProvider = this; return(true); }