Instantly share code, notes, and snippets.

Embed
What would you like to do?
[cf] CFInvoke endpoint
<cfset service = createObject("webservice", serviceUrl) />
<cfset service._setProperty("javax.xml.rpc.service.endpoint.address", endpoint) />
<cfinvoke webservice="#service#" method="remoteMethodName" someArgument="hello" returnvariable="result" />
or
<cfscript>
service = createObject("webservice", serviceUrl);
service._setProperty("javax.xml.rpc.service.endpoint.address", endpoint);
result = service.remoteMethodName(someArgument="hello");
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment