0 Replies Latest reply on May 25, 2007 3:29 PM by blastbeat

    Webservices - Premature end of File

    blastbeat Level 1

      I'm using a DAO/Bean pattern with CFC's and am trying to invoke a simple method through a Remote Service Layer with CFMX 7.02

      My Remote Service method call is:


      <!--- this allows our service to get a user --->
      <cffunction name="getUser" access="remote" returntype="user">
      <cfargument name="UserID" type="numeric" required="yes" />
      <cfreturn application.userService.getUser(arguments.UserID) />


      Here's my web service test call to this method.

      webservice=" http://localhost/usermanager/userRemote.cfc?wsdl"
      <cfinvokeargument name="UserID" value="1"/>

      <cfdump var="#foo#">

      The error I am getting is:

      Could not perform web service invocation "getUser".
      Here is the fault returned when invoking the web service operation:

      faultCode: { http://schemas.xmlsoap.org/soap/envelope/}Server.userException
      faultString: org.xml.sax.SAXParseException: Premature end of file.

      I've tested this method internally with a test.cfm page and it's fine. Additionally, I have been googling and haven't found anything just yet. I have already tried deleting the service from the administrator and re-registering. My user.cfc (bean) has CFPROPERTY tags describing the complex data type.

      Any suggestions?