Re: Euphoria SOAP client

new topic     » goto parent     » topic index » view thread      » older message » newer message
Jules said...

I would like to use euphoria to interact with web site which uses a SOAP API.

I recently wrote code that lets me do ecommerce transactions with PayPal, during which you have to send form POST data back to them. I'm using wget for that and it works very well, though I'm sure there's a library available that would let me skip the step of saving the result into a file and then reading it into a variable. Other than that, I'm satisfied with using wget for this.

I hope in the future to use an integrated Euphoria library that does not require an external program like wget.

Here's a little snippet to show how simple can be interface wise:

if SANDBOX then -- when doing transaction testing 
	confirm = "cmd=_notify-synch&tx=" & pptx & "&at=" & my_code 
	pp_site = "https://www.sandbox.paypal.com/cgi-bin/webscr" 
else -- when doing live transactions 
	confirm = "cmd=_notify-synch&tx=" & pptx & "&at=" & my_code 
	pp_site = "https://www.paypal.com/cgi-bin/webscr" 
end if 
 
result = getURL( pp_site, {"--post-data \"" & confirm & "\"","--no-check-certificate"}) 

The --post-data parameter tells wget to send it as a form POST instead of as GET. result ends up containing the text of the URL grabbed (in the case above, the URL stored in pp_site).

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu