XML to Record

  
Hi,
 
I have a xml that i want to put on a structure, after creating the structures exactly as the xml format, what is the next step to do?
 
Thanks
 
 
XML EXAMPLE
 
<?xml version="1.0" encoding="UTF-8"?>
<xmlResponse>
                <xmlWorkOrders>
                               <workOrder>
                                               <Number>1000001199323011</Number>
                                               <MASKED>NO</MASKED>
                                               <CAR_VALUE>10180</CAR_VALUE>
                                               <CLASSES>DHAZ</CLASSES>
                                               <COMPLETE_TIME/>
                               </workOrder>
                               <workOrder>
                                               <Number>1000001199323012</Number>
                                               <MASKED>YES</MASKED>
                                               <CAR_VALUE>10181</CAR_VALUE>
                                               <CLASSES/>
                                               <COMPLETE_TIME/>
                               </workOrder>
                               <workOrder>
                                               <Number>1000001199323013</Number>
                                               <MASKED>NO</MASKED>
                                               <CAR_VALUE>10182</CAR_VALUE>
                                               <CLASSES>Plan</CLASSES>
                                               <COMPLETE_TIME/>
                               </workOrder>
                </xmlWorkOrders>
                <xmlStatus>                     
                               <statusCode>0</statusCode>
                               <statusErrorMsg>OK</statusErrorMsg>
                               <statusSuccess>true</statusSuccess>
                               <statusrequestID>EEEB46D5</statusrequestID>
                </xmlStatus>
</xmlResponse>
Hi Pedro,

Welcome to the forums - hope to see you around often!

As for your question, have you looked into the XML Records components at

http://www.outsystems.com/NetworkSolutions/ProjectDetail.aspx?ProjectId=153

That may be what you need. Let me know how it works out.

Regards,


Miguel
Hi,

Thanks for your reply, i looked at it, and i find that very very weird, the example page is super complex, can i get some help on how to use it?

I would very much apreciate any kind of help.

Thanks
Hi Pedro,

I don't believe there is any additional documentation to what's on that thread. Having said that, the solution includes a sample eSpace that allows you to fill in sample Record, with sub-records and Record Lists, and then serializes/exports it to xml (and the reverse).

Have a look at that eSpace and try and adapt it by creating xmlResponse, workOrder and xmlStatus structures  and substitute the logic around the (sample) Group structure to work with your (new) xmlResponse structure.

Hopefully, you'll be able to select suitable serialization options that will make the output/input lign up with your XML payload.

Cheers,


Miguel