Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A ColdFusion CFC to add WS-Security to SOAP requests
ColdFusion
tree: 9d99161f04

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
lib
src
LICENSE
README

README

OVERVIEW:	Adds WSAuthentication to SOAP Requests, Sends SOAP request and returns result
AUTHOR: 	Anthony Israel-Davis

=====================================================
This requires the following jar files in the [cf_home]/lib directories:

xmlsec-1.4.2.jar
wss4j-1.5.8.jar

Alternately you could use Mark Mandel's JavaLoader to load the JARs.
http://www.compoundtheory.com/?action=javaloader.index

Updated versions of the jars should be tested before dropping them into production

=======================================================
THE FOLLOWING ARE REQUIRED FOR SENDING THE SOAP REQUEST
	<cfhttpparam type="Header" name="Accept-Encoding" value="deflate;q=0">
	<cfhttpparam type="Header" name="TE" value="deflate;q=0"> 
		
	EXAMPLE	
	<cfhttp url="https://some.url.com/rpc/soap/SomeService" method="POST" result="result" >
		<cfhttpparam type="Header" name="Accept-Encoding" value="deflate;q=0">
		<cfhttpparam type="Header" name="TE" value="deflate;q=0"> 
		
		
		<cfhttpparam type="header" name="SOAPAction" value="""SomeSoapAction""">
		<cfhttpparam type="xml" value="#toString(xmlParse(soapEnvelope))#"/>
	</cfhttp>
====================================================
Something went wrong with that request. Please try again.