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.