Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Consume XML from a WEB service

  1. #11
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Yes, just to explain.

    When DEBUG is ON it lets us (and you) see how lianja is introspecting the ActiveX.

    Lianja looks into the ActiveX and determines the method and property signatures and maps them from VFP to the correct case sensitive ones, and also marshals the parameters that you pass to them.

    Thats what all that mumbo-jumbo is.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  2. #12
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,185
    Quote Originally Posted by barrymavin View Post
    I'd also like to point out that we do in fact support loading tables from XML in our SQL but the format of that XML has to be in Microsoft ADO format. There are also built-in functions that will map XML to and from an object.
    When using Copy to create them xml

    use mytable
    copy to "myfile.xml" xml

    is the xml that is produced in the Microsoft ADO format?

    tia,

    Hank

  3. #13
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,259
    Yes it is if you:

    SET XMLFORMAT TO ADO

    Which I believe is the default.

  4. #14
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,185
    Quote Originally Posted by lianjasupport View Post
    Yes it is if you:

    SET XMLFORMAT TO ADO

    Which I believe is the default.
    The Docs indicate that the SET XMLFORMAT command applies only to the Select ... SAVE AS XML

    Question: does SET XMLFORMAT work with any of the other commands for importing/exporting data as XML?

    tia,

    Hank

  5. #15
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    SET XMLFORMAT TO ADO is the default in Lianja.

    So the COPY command produces XML in Microsoft ADO format. If you execute the following commands in the console workspace you can see the xml output.

    Code:
    open database southwind
    use example
    copy to export xml
    type export.xml
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  6. #16
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Please look at this link which explains how to parse big data in JSON or XML.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us