Using WSS4CF with <cfhttp>
We are attempting to access a remote webservice using cfhttp, requiring WS Security with username/password. I was in the middle of implementing a method here and ran into classpath issues etc, when my colleague suggested I take at WSS4CF. It seemed just what I needed to avoid needing to deal with those additional jar files etc.
There is no example provided and I noticed that the cfc seems to be configured to work with something like a dotNet SOAP service where you simply call a method with arguments. I need an example that works with cfhttp where we pass an xml envelope in a cfhttpparam, e.g. as follows:
<cfhttpparam type="header" name="content-type" value="application/soap+xml" /><!---text/xml--->
<cfhttpparam type="header" name="SOAPAction" value="http://training.gov.au/services/IOrganisationService/Search"/>
<cfhttpparam type="header" name="accept-encoding" value="no-compression" />
<cfhttpparam type="xml" value="#trim(sXML)#"/>