4 Replies Latest reply on Aug 1, 2007 6:07 AM by mberkland

    Webservice Return Problem

    mberkland
      Very strange problem and I am about to pull my hair out.

      I have a series of CFCs that I can call nativley (ie CreateObject("component","mycfc")) and call all the methods on it I want and get data back. When I call some of them via a webservice from a JAVA or .NET client, the CF engine spits back nothing, no header, or body data, just 0 bytes and a HTTP 200 code.

      I use a code generator to create the code that these services run so I know programatically they are solid. Like I said I can call them nativley as components without issue in CF, but when I try to call them remotely, some work, some just return a blank response.

      Any ideas? This is on CFMX 7.02.

      CF 8.0 is doing the same thing.

      Matt
        • 1. Re: Webservice Return Problem
          Level 7
          I have a series of CFCs that I can call nativley (ie
          CreateObject("component","mycfc"))


          What happens if you try to call them as a web service with ColdFusion?
          I.E. CreateObject("webservice","http:/myDomain/mycfc")

          Have you confirmed that the methods you want to use are configured to be
          webservices with their 'access' property set to 'remote'?

          <cffunction ... access="remote"...>
          ...
          </cffunction>

          Do you have any authentication on the webservice location that your
          browser handles in the background but the webservice call can not? This
          sometimes happens when 'Windows Integrated Security' is used on
          resources meant to be utilized as web services.
          • 2. Re: Webservice Return Problem
            mberkland Level 1
            I have tried calling them as webservices through CF and am getting the following Error:

            The string "--" is not permitted within comments

            I have turned off integrated Authentication and all the methods have Remote for the access property. I have some webservices I can call, others that I can't. They all follow the same pattern for their source code because of the code generator I wrote.

            There are always 2 CFCs involved, once CFC is nothing put <cfproperty> tags to create a message format, the DAO cfc (the ones I call directly) essentially get some rows from a database and return an Array of the CFC messageformat type, those are the methods that return no data, but other methods like updating and deleting data from the tables does work via a webservice, its only calling methods that return data that fails, and not for every service, only certain tables, and there is no rhym or reason to it thus far.

            Any other ideas? I would hate to have to start using .NET.....
            • 3. Re: Webservice Return Problem
              Level 7
              The string "--" is not permitted within comments


              With this error message, I would look at all your comments in your code.
              Do you have ColdFusion triple dash comments someplace they are not
              allowed or something?

              • 4. Re: Webservice Return Problem
                mberkland Level 1
                The generated code is totally devoid of comments. I think it might have to do with the comment CF puts in at the top of the auto generated WSDL file....