Error trying to access component by cfinvoke

I have been trying to access components using cfinvoke and always get an error message. The only way I can get it to work is through cfhttp.

When I use cfinvoke, I always get the following error:
XML document structures must start and end within the same entity.

The same component works just fine through cfhttp.

This fails:

	<cfinvoke component="componentfolder.componentname" method="method" returnvariable="return">
		<cfinvokeargument name="variable" value="#id#">
	</cfinvoke>

This works:

<cfhttp url="http://component.cfc" method="get" result="result" charset="utf-8">
		<cfhttpparam type="url" name="method" value="method">
		<cfhttpparam type="url" name="variable" value="#id#">
	</cfhttp>

@isruther always mention version. Can you please share your stack trace?

Version 5.3.7.47

ucee.runtime.exp.NativeException: Fatal Error: URI=: Content is not allowed in prolog. at org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.java:723) at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:181) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1471) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:978) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:541) at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888) at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824) at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:246) at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339) at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369) at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361) at java.base/java.lang.Thread.run(Thread.java:832) Caused by: org.xml.sax.SAXException: Fatal Error: URI=: Content is not allowed in prolog. … 19 more

Should I be able to call a component on a remote server by url using cfinvoke? I know I can with Adobe CF because this same code works in that environment.