Capturing XML to be sent to a Web Service
I need to generate the XML to be sent to a cfc remote function (web service)-- but not actually send the XML!
It is easy to use <cfinvoke ...> pointing to the WSDL to actually send the XML, but I can't do that.
What I need to do is capture the XML that would be sent to the service and store it in a database record in an ntext field along with the URL of the web service.
Then a second process will do the actual transmission of the XML to the URL.
(The reason is that the transmission MUST happen and I want to isolate the user of the service from the generic asynchronous process that will do the actual transmission repeatedly until it succeeds. The user stores the web service URL and data in a table which a second asynchronous process then attempts to deliver until successful.)
So, how do I use <cfinvoke ...><cfinvokeargument...>...</cfinvoke> (or some other process) to grab the XML that would be sent to the web service without actually sending it?
I also don't want to simply pass all the information to the asynchronous process and let it do the <cfinvoke>. This adds processing to store all the information (and there is a lot of it) into the table and then collect the information from the table and build the XML for each attempt. This also adds intelligence to the generic asynchronous process it doesn't need to possess.
I suspect there is a simple solution I'm not seeing because this is clearly something commonly needed.
