CF7/8 - soapenv:Server.userException
Hi, I’ve been banging my head against the wall with this one for quite some time now, and I’ve decided to see what the rest of the community thinks about this: I made a very simple webservice:
<cfcomponent>
<cffunction name="init" access="public">
<cfset CreateObject("java", "coldfusion.server.ServiceFactory").XmlRpcService.RefreshWebService(
GetPageContext().GetRequest().GetRequestUrl().Append("?wsdl").ToString()
) />
</cffunction>
<cffunction name="GetProshops" access="remote" returntype="query">
<cfquery name="qryProshops" datasource="#application.datasource#">
SELECT *col1*, *col2*
FROM *table*
ORDER BY *col1*
</cfquery>
<cfreturn qryProshops>
</cffunction>
</cfcomponent>
and when i attach the ?wsdl to the cfc, no problems nicely formatted XML schema. When i exec the function from anywhere (soapUI, VB.NET2008) i get:
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXParseException: Premature end of file.</faultstring>
<detail>
<ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException..... LONG!
Please help, i really hit rock bottom here. Thanks.
