Send XML request by HTTP POST in workflow (check shipping rates from external server)

Author Message

Claire Lin

Friday 09 January 2004 2:35:48 pm

Hi,

I am trying to implement a workflow that will talk to an external server that returns the shipping fee for the products in the basket. I need to send a request in XML by HTTP Post. Can anyone suggest some ideas? I have a sense that the ezSOAPClient is related, but what I need is not to call a function on an external server and send parameters for the fuction, which it appears that the ezSOAPClient does. What I need is simply to HTTP post a variable (which I've set to be the xml request in text) by http post. This should be simpler than the ezSOAP. But I've been trying to modify the codes of ezSOAPClient without success yet.

Has any one done similar things before?

Thanks,
Claire

Claus Jensen

Monday 12 January 2004 3:39:38 am

Hi,
Are you talking about making a regular http post with a form containing a field with a textual value, where this textual value is some xml? In this case you could do this by writing a small extension. Or maybe just make a template containing this form, but it depends on what you should get back in response... Think I would go for the extension.

regards,
claÜs

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 18 2025 16:14:55
Script start
Timing: Jan 18 2025 16:14:55
Module start 'layout'
Timing: Jan 18 2025 16:14:55
Module start 'content'
Timing: Jan 18 2025 16:14:56
Module end 'content'
Timing: Jan 18 2025 16:14:56
Script end

Main resources:

Total runtime0.7119 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.5391152.6875
Module start 'layout' 0.00500.0022 742.226639.5547
Module start 'content' 0.00720.7034 781.7813460.2500
Module end 'content' 0.71060.0013 1,242.03138.0625
Script end 0.7119  1,250.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4157160.0002
Check MTime0.00130.1786160.0001
Mysql Total
Database connection0.00060.086510.0006
Mysqli_queries0.678995.3576540.0126
Looping result0.00050.0653520.0000
Template Total0.686096.420.3430
Template load0.00170.236020.0008
Template processing0.684396.113320.3421
Template load and register function0.00010.012610.0001
states
state_id_array0.00090.124710.0009
state_identifier_array0.00060.083320.0003
Override
Cache load0.00140.1948130.0001
Sytem overhead
Fetch class attribute can translate value0.00040.061020.0002
Fetch class attribute name0.00070.093120.0003
XML
Image XML parsing0.00020.031520.0001
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00060.0781100.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs