• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Webservice Return Problem

New Here ,
Jul 31, 2007 Jul 31, 2007

Copy link to clipboard

Copied

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
TOPICS
Advanced techniques

Views

303

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 31, 2007 Jul 31, 2007

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 31, 2007 Jul 31, 2007

Copy link to clipboard

Copied

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.....

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 31, 2007 Jul 31, 2007

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 01, 2007 Aug 01, 2007

Copy link to clipboard

Copied

LATEST
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....

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation