Can Lucee create (publish) a simple SOAP/WebService?

I seem to see endless posts and examples on consuming webservices – easy stuff. Also, building out a webservice (including one that serves complex object types) under ColdFusion doesn’t seem to be a problem. None of the service I’ve created for clients will run under Lucee, though, and I can’t really find much documentation on what needs to change. Can someone post or point me to a simple example of a SOAP/WebServices implementation that works under Lucee?

Here’s a simple example of some services that work fine under ColdFusion:

<CFComponent>
	<CFOutput>
		<CFFunction
			Name		= "getRandomNumber"
			Access		= "remote"
			ReturnType	= "any"
			Output		= "no"
			Hint		= "">
			<CFArgument
				Name		= "inMax"
				Type		= "string"
				Required	= "yes">
			<CFReturn #SerializeJSON(RandRange(0, Int(inMax)))#>
		</CFFunction>	
		<CFFunction
			Name		= "testStructures"
			Access		= "remote"
			ReturnType	= "any"
			Output		= "no"
			Hint		= "">
			<CFScript>
				/////////////////////////////////////////////////////////////////
				//
				var myRet		= structNew();
				myRet.Head		= 'This is my head.';
				myRet.Tail		= 'This is my tail.';
				return serializeJSON(myRet);
				//
				/////////////////////////////////////////////////////////////////
			</CFScript>
		</CFFunction>
		<CFFunction
			Name		= "testNames_Nested"
			Access		= "remote"
			ReturnType	= "any"
			Output		= "no"
			Hint		= "">
			<CFScript>
				/////////////////////////////////////////////////////////////////
				//
				var myRet		= structNew();
				myRet.Top		= 'This is my Top.';
				myRet.Bottom	= 'This is my Bottom.';
				return serializeJSON(myRet);
				//
				/////////////////////////////////////////////////////////////////
			</CFScript>
		</CFFunction>
	</CFOutput>
</CFComponent>

…is there anything similar as far as examples go for Lucee?

WOOOOOOOOOOOO!!!

Lucee installation was corrupted – all werkign now!! :slight_smile:

Just add remote=true to the component tag and call the CFC directly, add ?wdsl to the cfc URL to see the service xml