best way to call a CFML webservice
Posted: Thu May 25, 2006 2:17 pm
I have been reading through the forum and am a little confused about how to go about calling a ColdFusion web service from one of my pages.
let's say my webservice is at:
http://www.mysite.com/components/mywebservice.cfc?wsdl
I want to pass in one variable (a PIN that the user has entered) and the function mywebservice returns a string containing the accountID or the user if it is valid and an empty string if it is not.
I know i need to call it as method POST because i am sending a variable but where is my return value (the string) going to be located? should i use submit, data or subdialog?
Thanks!
let's say my webservice is at:
http://www.mysite.com/components/mywebservice.cfc?wsdl
I want to pass in one variable (a PIN that the user has entered) and the function mywebservice returns a string containing the accountID or the user if it is valid and an empty string if it is not.
I know i need to call it as method POST because i am sending a variable but where is my return value (the string) going to be located? should i use submit, data or subdialog?
Thanks!