developpement arround sage x3 using web service

I want to save data from sage to my sql database, the problem is in soap i get a group structure. example:

"ITM0_1": {
"TCLCOD": "ASSET",
"ZTCLCOD": "Invest",
"ITMSTA": "1",
"ITMSTA_LBL": "Actif",
"ITMREF": "ASS001",
"DES1AXX": "Serveur informatique"
},
"ITM1_1": {
"DES2AXX": "Serveur",
"DES3AXX": ""
},

etc...

but i don't think that's right to create lot of group tables and even there is no relations between those groups to create classes for them for 1 model like ITMMASTER. any idea how i can deal with this structure.

Parents Reply
  • in reply to wassimmeziou

    Hi,

    I don't think it's necessary to use the GRP names in order to create or save a record.
    I just checked creating a product using the ITM web service object, and I created a product just using the following parameters:

    <PARAM>
    <FLD NAME="TCLCOD">BMSOL</FLD>
    <FLD NAME="ITMSTA">1</FLD>
    <FLD NAME="DES1AXX">Flat Top Table</FLD>
    <FLD NAME="DES2AXX">Poly Top Flat Top Table</FLD>
    </PARAM>

Children