I tested on my server, it worked. So the code is fine. You may want to
check your server config.

Hua

-----Original Message-----
From: Sung Woo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 9:31 AM
To: CF-Talk
Subject: Web Services and CFMX6.1 -- Why doesn't it work?

I'm at my wit's end here, folks.  I don't know why my idiotic "hello
world" web service just isn't working.  Here's a path to my madness:

helloworld.cfc

<cfcomponent>
<cffunction name="getMessage" access="remote"
returntype="string" output="false">
<cfargument name="name" type="string" required="yes">
<cfreturn "Hello " & arguments.name & ", web service is
working.">
</cffunction>
</cfcomponent>

---

hello_component.cfm (to check if the CFC is working)

<cfinvoke component="helloworld"
method="getMessage"
returnvariable="aString">
<cfinvokeargument name="name" value="Bozo"/> </cfinvoke>

<cfoutput>#aString#</cfoutput>

Output: Hello Bozo, web service is working.

---

helloworld.cfc?wsdl

Output: works fine, displays the XML

---

hello.cfm

<cfinvoke webservice="http://localhost/ws/helloworld.cfc?wsdl"
method="getMessage"
returnvariable="aString">
<cfinvokeargument name="name" value="Bozo"/> </cfinvoke>

<cfoutput>#aString#</cfoutput>

Output:

Could not generate stub objects for web service invocation. Name:
http://localhost/ws/helloworld.cfc?wsdl. WSDL:
http://localhost/ws/helloworld.cfc?wsdl. org.xml.sax.SAXException: Fatal
Error: URI=null Line=1: Missing whitespace before SYSTEM literal URI.

------------------

What the hell am I doing wrong?  Any ideas?
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to