Form post process & web services

Author Message

Tom W

Wednesday 07 July 2010 1:39:47 pm

Hi there,

I'm about 2 months in, working on a Ez Publishing project and need some help.

I have a form where the information need to be collected(easy part, new class with Information collector attributes), but the information also need be sent to salesforce.com via web services.

Right now, I'm thinking of letting Ez Publish do its thing with information collector, and I will put in a custom template operator on the confirmation page that will handle the web service portion.

Just wondering if there's a better way to handle this task.

Thanks in advance,

Gabriel Finkelstein

Wednesday 07 July 2010 4:47:33 pm

Perhaps you could set a cronjob that runs periodically and processes al newly created information collections and sends them to salesforce.com

Gaetano Giunta

Thursday 08 July 2010 12:18:39 am

For the part "making webservices calls", the ggwebservices extension might help you. It allows to quickly connect to external soap servers, either from php code or from within templates.

Principal Consultant International Business
Member of the Community Project Board

Gaetano Giunta

Thursday 08 July 2010 12:20:47 am

PS. it sure would be nice to have pre_ and post_information_collection events so that workflows could be hooked up to it. Would you mind opening a feature request in issues.ez.no?

Principal Consultant International Business
Member of the Community Project Board

Tom W

Thursday 05 August 2010 8:18:02 am

Thanks for the help. Finally got this piece of code out of the way.
Request has been sent in as well, hope I did it right.
Now onto the self registry into specific group issue. :)

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 29 2025 23:48:41
Script start
Timing: Jan 29 2025 23:48:41
Module start 'layout'
Timing: Jan 29 2025 23:48:41
Module start 'content'
Timing: Jan 29 2025 23:48:41
Module end 'content'
Timing: Jan 29 2025 23:48:41
Script end

Main resources:

Total runtime0.0141 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.1328151.2109
Module start 'layout' 0.00560.0022 739.343836.6484
Module start 'content' 0.00780.0050 775.992294.1563
Module end 'content' 0.01280.0013 870.148433.9922
Script end 0.0141  904.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002316.5318140.0002
Check MTime0.00107.1022140.0001
Mysql Total
Database connection0.00139.265410.0013
Mysqli_queries0.002114.950930.0007
Looping result0.00000.062610.0000
Template Total0.00106.810.0010
Template load0.00075.211610.0007
Template processing0.00021.582610.0002
Override
Cache load0.00053.351410.0005
General
dbfile0.00096.601280.0001
String conversion0.00000.035540.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