Page 1 of 1

SOAP and XML datatype

Posted: Fri Mar 19, 2010 3:12 pm
by timah
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 ???

Re: SOAP and XML datatype

Posted: Fri Mar 19, 2010 5:39 pm
by mwieder
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.