SOAP and XML datatype

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
timah
Posts: 1
Joined: Fri Mar 19, 2010 12:54 pm

SOAP and XML datatype

Post by timah » Fri Mar 19, 2010 3:12 pm

Hi,

How do I connect to a SOAP service and retrieve the data in an object model?
Do Revolution have some kind of XML datatype? I cant seem to locate it.

For example, I imagine a Revolution XML type based on a scheme like:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="address">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element name="street" type="xs:string"/>
<xs:element name="city"type="xs:string"/>
<xs:element name="country"type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

could be accessed as a structured and hierarical object-structure like :

address[1].name = ...
address[1].street = ...
address[1].city = ...

with the address instance having methods like count, export, import, GetFromSOAPURL, etc.

I know the notation above is more traditional than Revolution - and please forgive me for that, I'm still in research phase - but why does Revolution not have such basic and simple ways of doing XML/SOAP ???

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: SOAP and XML datatype

Post by mwieder » Fri Mar 19, 2010 5:39 pm

Check revOnline for a couple of implementations: I posted my SOAP library and I believe David Beck did as well. XML itself is handled by rev, of course, and there is at least one json library that I know of if you need that.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”