CFinvoke a Web Service
I'm trying to find out what Coldfusion actually does when you instantiate or invoke a web service as a coldfusion object, either with the cfobject or cfinvoke tags. Let's say I have the following code:
<cfinvoke webservice="https://#application.webServiceURL#/getArticle.cfc?wsdl" method="getArticle" returnvariable="myArticle" timeout="10">
<cfinvokeargument name="Article" value="3">
</cfinvoke>
What's actually happening behind the scenes here? Is Coldfusion making an HTTPS request? Is it a GET or a POST request? Or is something else I don't know about? What is the functional difference between that syntax versus something like this:
<cfhttp url="https://#application.webServiceURL#/getArticle.cfc?method=getArticle&Article=3" method="get" result="resultJSON" timeout="10">
<cfhttpparam type="header" name="Accept" value="application/json" />
</cfhttp>
<cfset myArticle= DeSerializeJSON(resultJSON.FileContent) />
Any help you have would be much appreciated. I'm just trying to wrap my head around what's going on under the hood here.
