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

Consuming web service with CFINVOKE not working

New Here ,
Jun 25, 2010 Jun 25, 2010

Hello

I'm trying to add a web service to a web site that is being hosted on GoDaddy.com. The host account is Linux with Coldfusion 7. I'm using the CFINVOKE tag because its seems simple and its about the only way I can consume the web service. Here is my code:

<cfinvoke
webservice="http://www.communitymx.com/services/cmxfeed.wsdl"
method="getContent"
returnvariable="aObjectArray">
<cfinvokeargument name="type" value="0"/>
</cfinvoke>

I'm getting the dreaded error "Could not generate stub objects for web service invocation".

I'm able to access the wsdl file in my browser using the link above.

Like I said, the web site is hosted on GoDaddy and I'm limited in what I can do.

Does anyone know how I can fix this?

Thank you.

Ohioguy_tim

TOPICS
Advanced techniques
1.5K
Translate
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 ,
Jun 26, 2010 Jun 26, 2010

Change .wsdl to .cfc?wsdl

Translate
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 ,
Jun 26, 2010 Jun 26, 2010

Hi Dan

Thanks for responding to my question.

I made the change to my code and it didn't work. Came up right away and said page could not be found.

<cfinvoke
webservice="http://www.communitymx.com/services/cmxfeed.cfc?wsdl"
method="getContent"
returnvariable="aObjectArray">
<cfinvokeargument name="type" value="0"/>
</cfinvoke>

Ohioguy_tim

Translate
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 ,
Jun 26, 2010 Jun 26, 2010

Did it say what page could not be found?  I clicked on the link in your post and the wsdl code came up.

Translate
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
Enthusiast ,
Jun 27, 2010 Jun 27, 2010
LATEST

I was able to get a response of "Not implemented yet" using the code below.

<cfinvoke webservice="http://www.communitymx.com/services/cmxfeed.wsdl" method="getTip" returnvariable="serviceResult">
</cfinvoke>

<cfdump var="#serviceResult#" />

Translate
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