Consuming web service with CFINVOKE not working
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Change .wsdl to .cfc?wsdl
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Did it say what page could not be found? I clicked on the link in your post and the wsdl code came up.
Copy link to clipboard
Copied
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#" />

