Forums / Developer / SOAP interface methods available

SOAP interface methods available

Author Message

Robert Fokken

Friday 27 May 2011 3:43:29 am

Hello,

For my company we are developing a new website.We are still looking for a Cms. Now i was at the Dutch PHP conference where i had some to talk to Nicolas Pastorino. He told me a lot about the Ez Publish and i also visited his presentation session of eZ publish and Mobile / REST.

For our website we are developing the front-end ourself. Now we want to use eZ publish as a CMS. This is only to maintain and provide the front-end with content. We want to use SOAP to make our information available to the front-end (and yes we will use caching :) )

The rapid application developement (with structures) and the interface of eZ publish look great. But i was kind of curious if it is possible to fetch data structures for example an: "Article"

I have had a look at soapadmin wich provides nice methods to clear template cache etc. But not a really good example of how to extract other information from the Cms like an Article.

And there is no WSDL support available i read? You have to make one your own or did somebody already made it?

To make a long story short:

- Is there a SOAP interface to fetch data structures? (like e.a. "Article" )

- Is there an example of somebody doing it?

- Is there somebody who already prepared a WSDL for it?

- Is there maybe a possibilty to use eZ publish as a library and call components like e.a. a poll with methods in our own front-end?

I hope i used the right forum for this question. Anyway thanks for making it to the end of this question :)

Regards,

Robert Fokken

Jérôme Vieilledent

Friday 27 May 2011 4:55:06 am

Hi Robert

I don't get your usecase... Where are you going to pull your data from ? I don't understand your use of SOAP here.

But anyway, you can check Gaetano's extension ggWebservices, which have nice features for webservices, including SOAP.

Robert Fokken

Friday 27 May 2011 5:47:03 am

"

Hi Robert

I don't get your usecase... Where are you going to pull your data from ? I don't understand your use of SOAP here.

But anyway, you can check Gaetano's extension ggWebservices, which have nice features for webservices, including SOAP.

"

Hello Jéróme,

Thanks for your quick response! I will check ggWebservices and that looks promising.

In my case we want to pull data from the eZ publish database to our website. Best way to do this is by using webservices. Since we have a system that integrates SOAP (by using wsdl) we want to use SOAP to do it.

Let's say we want to get a node structure from the eZ publish system. We want to do a webservice soap method call to let say "getEZPublishStructureTree". Then it returns an array of nodes.

Does this make it more clear?

Or maybe i have the wrong approach here. Maybe i should fix this in the workflow? After a publish call one of our own webservices to refresh the navigation node structure on the site? And then clear cache?

Regards,

Robert

Jérôme Vieilledent

Friday 27 May 2011 6:03:19 am

Mmm, I think the best way would be to use the new REST interface instead, as it is fast, secured and easily extendable. Plus, it has its own cache (currently not linked to content publication though, only TTL based).

You could develop your own REST services (check the doc here) to fit your needs, or use the built-in ones.

What do you think ?

eZ debug

Timing: Jan 29 2025 13:43:42
Script start
Timing: Jan 29 2025 13:43:42
Module start 'content'
Timing: Jan 29 2025 13:43:42
Module end 'content'
Timing: Jan 29 2025 13:43:42
Script end

Main resources:

Total runtime0.1529 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.9375180.8359
Module start 'content' 0.00630.0050 768.773498.1016
Module end 'content' 0.01130.1415 866.8750527.7813
Script end 0.1528  1,394.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.2427200.0002
Check MTime0.00130.8780200.0001
Mysql Total
Database connection0.00080.542910.0008
Mysqli_queries0.106969.92021410.0008
Looping result0.00120.80371390.0000
Template Total0.141192.310.1411
Template load0.00090.559310.0009
Template processing0.140391.764210.1403
Override
Cache load0.00060.385410.0006
Sytem overhead
Fetch class attribute can translate value0.00110.705110.0011
XML
Image XML parsing0.00030.212010.0003
General
dbfile0.00473.1066200.0002
String conversion0.00000.005830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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