it is posible create a JdbcResultset by code (on the fly / on the go)
I'm trying to get a xml from .net and transform to json (doit), and now i need replace in all my previous code a JdbcResulst to list, but, may be, i can transform xml/json to jdbcresulset.
attach a sample with the resultset from webservice in .net
I need to, get the fields, and the data.
Can you, community, say a 'magic solution' (good ideas)
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			I'm trying to get a xml from .net and transform to json (doit), and now i need replace in all my previous code a JdbcResulst to list, but, may be, i can transform xml/json to jdbcresulset.
attach a sample with the resultset from webservice in .net
I need to, get the fields, and the data.
Can you, community, say a 'magic solution' (good ideas)
			
				B4X:
			
		
		
		{
  "Envelope": {
    "Body": {
      "getComandoResponse": {
        "getComandoResult": {
          "schema": {
            "Attributes": {
              "id": "NewDataSet"
            },
            "element": {
              "Attributes": {
                "name": "NewDataSet",
                "IsDataSet": "true",
                "MainDataTable": "DataSet",
                "UseCurrentLocale": "true"
              },
              "complexType": {
                "choice": {
                  "Attributes": {
                    "minOccurs": "0",
                    "maxOccurs": "unbounded"
                  },
                  "element": {
                    "Attributes": {
                      "name": "DataSet"
                    },
                    "complexType": {
                      "sequence": {
                        "element": [
                          {
                            "Attributes": {
                              "name": "CAMPO1"
                            },
                            "simpleType": {
                              "restriction": {
                                "Attributes": {
                                  "base": "xs:string"
                                },
                                "maxLength": {
                                  "Attributes": {
                                    "value": "10"
                                  },
                                  "Text": ""
                                }
                              }
                            }
                          },
                          {
                            "Attributes": {
                              "name": "CAMPO2",
                              "minOccurs": "0"
                            },
                            "simpleType": {
                              "restriction": {
                                "Attributes": {
                                  "base": "xs:string"
                                },
                                "maxLength": {
                                  "Attributes": {
                                    "value": "20"
                                  },
                                  "Text": ""
                                }
                              }
                            }
                          },
                          {
                            "Attributes": {
                              "name": "CAMPO3",
                              "minOccurs": "0"
                            },
                            "simpleType": {
                              "restriction": {
                                "Attributes": {
                                  "base": "xs:string"
                                },
                                "maxLength": {
                                  "Attributes": {
                                    "value": "20"
                                  },
                                  "Text": ""
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "diffgram": {
            "DocumentElement": {
              "DataSet": [
                {
                  "Attributes": {
                    "id": "DataSet1",
                    "rowOrder": "0"
                  },
                  "CAMPO1": "AAAA"
                },
                {
                  "Attributes": {
                    "id": "DataSet2",
                    "rowOrder": "1"
                  },
                  "CAMPO1": "BBBB",
                  "CAMPO2": "DASDG",
                  "CAMPO3": "ASDG"
                }
              ]
            }
          }
        }
      }
    }
  }
} 
				 
 
		 
 
		 
 
		 
 
		