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

Could not generate stub objects for web service invocation.

New Here ,
Jan 29, 2007 Jan 29, 2007

Copy link to clipboard

Copied

Trying to consume a .NET web service, this code throws an error:
---------------------------CODE--------------------------------------
<...standard HTML deleted for brevity>

<cfinvoke webservice=" http://www.xmlme.com/WSDailyNet.asmx?WSDL" method="getDotnetDailyFact" returnvariable="aString">

<cfoutput>
Daily DotNet for #DateFormat(now(), "MM/DD/YYYY")# is <br>
#aString#<br>
</cfoutput>
<...standard HTML deleted for brevity>
----------------------ERRROR------------------------------------
Could not generate stub objects for web service invocation.
Name: http://www.xmlme.com/WSDailyNet.asmx?WSDL. WSDL: http://www.xmlme.com/WSDailyNet.asmx?WSDL. org.xml.sax.SAXException: Fatal Error: URI=null Line=9: The element type "p" must be terminated by the matching end-tag "

".
Has anyone encountered this before? We run IIS6 with CFMX 7.02 on JRun4 Updater 6 in distributed mode.
TOPICS
Advanced techniques

Views

910

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 ,
Jan 29, 2007 Jan 29, 2007

Copy link to clipboard

Copied

I just ran your example code and I received the following result. If
this is not the expected result, I would read this as a programming
error in the ASP web service code


<cfinvoke webservice=" http://www.xmlme.com/WSDailyNet.asmx?WSDL"
method="getDotnetDailyFact" returnvariable="aString">
<cfoutput>#aString#</cfoutput>

"The MyBase keyword in VB.NET can be used to call base class properties
or methods from a derived class that has overridden these properties or
methods."

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 ,
Jan 29, 2007 Jan 29, 2007

Copy link to clipboard

Copied

This worked fine for me as is on CFMX 7.02 on linux. I got:

Daily DotNet for 01/29/2007 is
The MyBase keyword in VB.NET can be used to call base class properties or methods from a derived class that has overridden these properties or methods.

Mike

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 ,
Jan 29, 2007 Jan 29, 2007

Copy link to clipboard

Copied

Thanks, Mike, for testing it.
A couple of additional questions might help our suspicion of the root issue:
(1) Are you running ColdFusion in distributed mode, i.e. web server is on a separate physical server from the JRun-CFMX server?

(2) Is your test installation outside of your firewall and using NAT?

Thanks,
Scott

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 ,
Jan 29, 2007 Jan 29, 2007

Copy link to clipboard

Copied

Correction to my previous post:
(2) Is your test installation outside your firewall, or if behind a firewall, is it using NAT?
Thanks,
Scott

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 ,
Jan 29, 2007 Jan 29, 2007

Copy link to clipboard

Copied

1)No, I tested this where cf, jrun and apache are on the same server.
2)Behind a firewall using a nat

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 ,
Jan 29, 2007 Jan 29, 2007

Copy link to clipboard

Copied

LATEST
Thanks, Mike. We tracked down the problem: firewall required that the developer use proxy settings and now the web service is accessible and the response is making it back via the proxy.

Scott

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