예제 #1
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     GXt_objcol_SdtHomeSampleData_HomeSampleDataItem1 = AV5HomeSampleData;
     new GeneXus.Programs.wwpbaseobjects.gethomesampledata(context).execute(out GXt_objcol_SdtHomeSampleData_HomeSampleDataItem1);
     AV5HomeSampleData = GXt_objcol_SdtHomeSampleData_HomeSampleDataItem1;
     Gxv1skipcount     = 0;
     AV12GXV1          = 1;
     while (AV12GXV1 <= AV5HomeSampleData.Count)
     {
         AV6HomeSampleDataItem       = ((GeneXus.Programs.wwpbaseobjects.SdtHomeSampleData_HomeSampleDataItem)AV5HomeSampleData.Item(AV12GXV1));
         Gxv1skipcount               = (int)(Gxv1skipcount + 1);
         Gxm2homesamplenamevaluedata = new GeneXus.Programs.wwpbaseobjects.SdtHomeSampleNameValueData_HomeSampleNameValueDataItem(context);
         Gxm3rootcol.Add(Gxm2homesamplenamevaluedata, 0);
         Gxm2homesamplenamevaluedata.gxTpr_Name  = AV6HomeSampleDataItem.gxTpr_Productname;
         Gxm2homesamplenamevaluedata.gxTpr_Value = AV6HomeSampleDataItem.gxTpr_Productprice;
         if ((6 != 0) && (Gxv1skipcount >= 6))
         {
             /* Exit For each command. Update data (if necessary), close cursors & exit. */
             if (true)
             {
                 break;
             }
         }
         AV12GXV1 = (int)(AV12GXV1 + 1);
     }
     if (context.WillRedirect( ))
     {
         context.Redirect(context.wjLoc);
         context.wjLoc = "";
     }
     this.cleanup();
 }
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     GXt_objcol_SdtHomeModulesSDT_HomeModulesSDTItem1 = AV5HomeModulesSDT;
     new GeneXus.Programs.wwpbaseobjects.gethomemodulessample(context).execute(out GXt_objcol_SdtHomeModulesSDT_HomeModulesSDTItem1);
     AV5HomeModulesSDT = GXt_objcol_SdtHomeModulesSDT_HomeModulesSDTItem1;
     Gxv1skipcount     = 0;
     AV12GXV1          = 1;
     while (AV12GXV1 <= AV5HomeModulesSDT.Count)
     {
         AV6HomeModulesSDTItem = ((GeneXus.Programs.wwpbaseobjects.SdtHomeModulesSDT_HomeModulesSDTItem)AV5HomeModulesSDT.Item(AV12GXV1));
         Gxv1skipcount         = (int)(Gxv1skipcount + 1);
         Gxm2homemodulessdt    = new GeneXus.Programs.wwpbaseobjects.SdtHomeModulesSDT_HomeModulesSDTItem(context);
         Gxm3rootcol.Add(Gxm2homemodulessdt, 0);
         Gxm2homemodulessdt.gxTpr_Optiontitle               = AV6HomeModulesSDTItem.gxTpr_Optiontitle;
         Gxm2homemodulessdt.gxTpr_Optioniconthemeclass      = AV6HomeModulesSDTItem.gxTpr_Optioniconthemeclass;
         Gxm2homemodulessdt.gxTpr_Optionbackgroundimage     = AV6HomeModulesSDTItem.gxTpr_Optionbackgroundimage;
         Gxm2homemodulessdt.gxTpr_Optionbackgroundimage_gxi = AV6HomeModulesSDTItem.gxTpr_Optionbackgroundimage_gxi;
         Gxm2homemodulessdt.gxTpr_Optiondescription         = AV6HomeModulesSDTItem.gxTpr_Optiondescription;
         if ((4 != 0) && (Gxv1skipcount >= 4))
         {
             /* Exit For each command. Update data (if necessary), close cursors & exit. */
             if (true)
             {
                 break;
             }
         }
         AV12GXV1 = (int)(AV12GXV1 + 1);
     }
     this.cleanup();
 }
예제 #3
0
 public override void webExecute( )
 {
     context.SetDefaultTheme("WorkWithPlusTheme");
     initialize();
     Gxm3rootcol = new GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtHomeSampleNameValueData_HomeSampleNameValueDataItem>(context, "HomeSampleNameValueDataItem", "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.GetHomeSampleNameValueData");
             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", "HomeSampleNameValueData");
             GXSoapXMLWriter.WriteStartElement("sequence");
             GXSoapXMLWriter.WriteStartElement("element");
             GXSoapXMLWriter.WriteAttribute("minOccurs", "0");
             GXSoapXMLWriter.WriteAttribute("maxOccurs", "unbounded");
             GXSoapXMLWriter.WriteAttribute("name", "HomeSampleNameValueDataItem");
             GXSoapXMLWriter.WriteAttribute("type", "tns:WWPBaseObjects.HomeSampleNameValueData.HomeSampleNameValueDataItem");
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteStartElement("complexType");
             GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.HomeSampleNameValueData.HomeSampleNameValueDataItem");
             GXSoapXMLWriter.WriteStartElement("sequence");
             GXSoapXMLWriter.WriteStartElement("element");
             GXSoapXMLWriter.WriteAttribute("name", "Name");
             GXSoapXMLWriter.WriteAttribute("type", "xsd:string");
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteStartElement("element");
             GXSoapXMLWriter.WriteAttribute("name", "Value");
             GXSoapXMLWriter.WriteAttribute("type", "xsd:double");
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteStartElement("element");
             GXSoapXMLWriter.WriteAttribute("name", "Check");
             GXSoapXMLWriter.WriteAttribute("type", "xsd:boolean");
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteStartElement("element");
             GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.GetHomeSampleNameValueData.Execute");
             GXSoapXMLWriter.WriteStartElement("complexType");
             GXSoapXMLWriter.WriteStartElement("sequence");
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteStartElement("element");
             GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.GetHomeSampleNameValueData.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:HomeSampleNameValueData");
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteStartElement("message");
             GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.GetHomeSampleNameValueData.ExecuteSoapIn");
             GXSoapXMLWriter.WriteElement("part", "");
             GXSoapXMLWriter.WriteAttribute("name", "parameters");
             GXSoapXMLWriter.WriteAttribute("element", "tns:WWPBaseObjects.GetHomeSampleNameValueData.Execute");
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteStartElement("message");
             GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.GetHomeSampleNameValueData.ExecuteSoapOut");
             GXSoapXMLWriter.WriteElement("part", "");
             GXSoapXMLWriter.WriteAttribute("name", "parameters");
             GXSoapXMLWriter.WriteAttribute("element", "tns:WWPBaseObjects.GetHomeSampleNameValueData.ExecuteResponse");
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteStartElement("portType");
             GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.GetHomeSampleNameValueDataSoapPort");
             GXSoapXMLWriter.WriteStartElement("operation");
             GXSoapXMLWriter.WriteAttribute("name", "Execute");
             GXSoapXMLWriter.WriteElement("input", "");
             GXSoapXMLWriter.WriteAttribute("message", "wsdlns:" + "WWPBaseObjects.GetHomeSampleNameValueData.ExecuteSoapIn");
             GXSoapXMLWriter.WriteElement("output", "");
             GXSoapXMLWriter.WriteAttribute("message", "wsdlns:" + "WWPBaseObjects.GetHomeSampleNameValueData.ExecuteSoapOut");
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteEndElement();
             GXSoapXMLWriter.WriteStartElement("binding");
             GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.GetHomeSampleNameValueDataSoapBinding");
             GXSoapXMLWriter.WriteAttribute("type", "wsdlns:" + "WWPBaseObjects.GetHomeSampleNameValueDataSoapPort");
             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.AGETHOMESAMPLENAMEVALUEDATA.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.GetHomeSampleNameValueData");
             GXSoapXMLWriter.WriteStartElement("port");
             GXSoapXMLWriter.WriteAttribute("name", "WWPBaseObjects.GetHomeSampleNameValueDataSoapPort");
             GXSoapXMLWriter.WriteAttribute("binding", "wsdlns:" + "WWPBaseObjects.GetHomeSampleNameValueDataSoapBinding");
             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.gethomesamplenamevaluedata.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.gethomesamplenamevaluedata.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)
                     {
                         Gxm3rootcol = new GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtHomeSampleNameValueData_HomeSampleNameValueDataItem>(context, "HomeSampleNameValueDataItem", "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.GetHomeSampleNameValueData.ExecuteResponse");
         GXSoapXMLWriter.WriteAttribute("xmlns", "DataAnalysisPlatform");
         if (currSoapErr == 0)
         {
             if (Gxm3rootcol != null)
             {
                 Gxm3rootcol.writexmlcollection(GXSoapXMLWriter, "ReturnValue", "DataAnalysisPlatform", "HomeSampleNameValueDataItem", "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();
 }