creating an XML API to import/export eZpersistentObject data

Author Message

Massimiliano Bariola

Tuesday 05 July 2005 7:21:01 am

Hi all,

what would, in your opinion be the best way to go to implement some XML APIs to read/write ezPersistentObjects?

this is what I mean:

a client (not necessarily a browser sends an XML (POST?) request to my eZ site.
the eZ site parses it and returns to the client an XML structure with data taken from the database (actually from my own external database; I have written an extension to hook into it). Remember that the client will most likely not be a browser.

From certain points of view, this seems to me like a variation on the "print the PDF output of this page". but I am rather unsure about the "get and parse the request" part.

Any hints?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 01:16:35
Script start
Timing: Jan 31 2025 01:16:35
Module start 'layout'
Timing: Jan 31 2025 01:16:35
Module start 'content'
Timing: Jan 31 2025 01:16:35
Module end 'content'
Timing: Jan 31 2025 01:16:35
Script end

Main resources:

Total runtime0.0223 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.3906151.2422
Module start 'layout' 0.00530.0030 739.6328220.7500
Module start 'content' 0.00830.0126 960.3828993.8672
Module end 'content' 0.02090.0013 1,954.250029.9922
Script end 0.0222  1,984.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.5906140.0002
Check MTime0.00115.0923140.0001
Mysql Total
Database connection0.00073.277510.0007
Mysqli_queries0.00198.541130.0006
Looping result0.00000.053510.0000
Template Total0.00104.410.0010
Template load0.00073.219710.0007
Template processing0.00021.109310.0002
Override
Cache load0.00052.267810.0005
General
dbfile0.00198.428780.0002
String conversion0.00000.039640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs