Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Pedro Moreira
2
Views
3
Comments
XML to Record
Question
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>
Miguel Seabra Melo
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
https://www.outsystems.com/NetworkSolutions/ProjectDetail.aspx?ProjectId=153
That may be what you need. Let me know how it works out.
Regards,
Miguel
Pedro Moreira
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
1 reply
13 Mar 2012
Show thread
Hide thread
Miguel Seabra Melo
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
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...