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

Web services: Error in the first step

LEGEND ,
Jul 15, 2006 Jul 15, 2006

Copy link to clipboard

Copied

Hi,
I am testing web services with ColdFusion and stuck in the first step. I've
copied several coding examples from online and am having all the same errors
when I tested locally on my laptop. But when I tried the files on real
website of my office, it shows the result string with problem. So I assume
I need some kind of server side configuration. My laptop is on Win XP and
the office server is on Win 2000 and both of them are running on IIS.

This is one of the files I tried.

"helloworld.cfc" file =>
<cfcomponent>
<cffunction name="getMessage" access="remote" returntype="string"
output="no">
<cfargument name="name" type="string" required="yes">

<cfreturn "Hello " & arguments.name &"! " & "I've been invoked as a web
service.">
</cffunction>
</cfcomponent>

"helloworld.cfm" file =>
<cfinvoke
webservice=" http://localhost/tutorial/ColdFusion/template/webservices/helloworld/helloworld.cfc?wsdl"
method="getMessage"
returnvariable="aString">
<cfinvokeargument name="name" value="Rob"/>
</cfinvoke>

<cfoutput>
#aString#
</cfoutput>

And this is the error message when I tried locally.
Error Occurred While Processing Request
Could not generate stub objects for web service invocation.
Name:
http://localhost/tutorial/ColdFusion/template/webservices/helloworld/helloworld.cfc?wsdl.
WSDL:
http://localhost/tutorial/ColdFusion/template/webservices/helloworld/helloworld.cfc?wsdl.
org.xml.sax.SAXException: Fatal Error: URI=null Line=1: White spaces are
required between publicId and systemId. It is recommended that you use a web
browser to retrieve and examine the requested WSDL document for correctness.
If the requested WSDL document can't be retrieved or it is dynamically
generated, it is likely that the target web service has programming errors.



Can anyone give a clue to solve this problem?

Thanks in advance
YC


TOPICS
Advanced techniques

Views

504

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 15, 2006 Jul 15, 2006

Copy link to clipboard

Copied

Did you register the web service on the ColdFusion server?


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 15, 2006 Jul 15, 2006

Copy link to clipboard

Copied

I didn't know I need to register the web service on the ColdFusion server.
How do I do that?

YC

"Wally Kolcz" <wkolcz@projectproofing.com> wrote in message
news:e9bs24$po$1@forums.macromedia.com...
> Did you register the web service on the ColdFusion server?
>


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 15, 2006 Jul 15, 2006

Copy link to clipboard

Copied

In the Coldfusion admin under "Data & Services" there is a link that says
Web Services

Name the web service, Give the WSDL URL address and a username and password
(if you require it)

It should appear under the Active Coldfusion Web Services menu and be able
to be accessed.


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 15, 2006 Jul 15, 2006

Copy link to clipboard

Copied

LATEST
Should I put
http://localhost/tutorial/ColdFusion/template/webservices/helloworld/helloworld.cfc?wsdl
for the WSDL URL address?

I get this error message: "Error creating web service. Please ensure that
you have entered a correct Web Service name or URL."

Does it matter that my ColdFusion server is a developer version?

YC

"Wally Kolcz" <wkolcz@projectproofing.com> wrote in message
news:e9cagv$fkc$1@forums.macromedia.com...
> In the Coldfusion admin under "Data & Services" there is a link that says
> Web Services
>
> Name the web service, Give the WSDL URL address and a username and
> password (if you require it)
>
> It should appear under the Active Coldfusion Web Services menu and be able
> to be accessed.
>



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