Skip to main content
Participant
June 26, 2010
Question

Consuming web service with CFINVOKE not working

  • June 26, 2010
  • 1 reply
  • 1556 views

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

This topic has been closed for replies.

1 reply

Inspiring
June 26, 2010

Change .wsdl to .cfc?wsdl

Participant
June 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

Inspiring
June 27, 2010

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