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

Web Service Remote Access

Explorer ,
Nov 12, 2007 Nov 12, 2007

Copy link to clipboard

Copied

Hi,

Working locally I can access a web service with the following 2 files in directory root, no mappings, no config of web service in Administrator:
<!--- /simpleTextConsume.cfm/ --->

<cfcomponent>
<cffunction name="firstws" access="remote" returntype="string">
<cfreturn "Developer Center is great!">
</cffunction>
</cfcomponent>
<!--- simpleTextConsume.cfc/ --->
<cfinvoke
webservice=" http://127.0.0.1:8500/cbweblatest/webservices/simpleText.cfc?wsdl"
method="firstws"
returnvariable="returnedText">
</cfinvoke>

<cfoutput>
#variables.returnedText#
</cfoutput>

The error I get when I try to run http://www.myurl.com\webservices\simpleTextConsume.cfm is the following:
/*____________________________________________________
Could not generate stub objects for web service invocation.
Name: http://127.0.0.1:8500/cbweblatest/webservices/simpleText.cfc?wsdl. WSDL: http://127.0.0.1:8500/cbweblatest/webservices/simpleText.cfc?wsdl. org.xml.sax.SAXException: Fatal Error: URI=null Line=1: Next character must be ">" terminating comment ....
__________________________________________________*/

I've played around with trying to use a mapping and creating a webservice in admin, but get similar error, 'cant create..'

The server in question is a linux based virtual server, non enterprise edition of CF 6.1, However, I use CF8 locally, everything locally tests fine with the above, also Flash datagrid with SQL testing works fine locally.

The above not working is a major block, any pointers appreciated.


Colm

TOPICS
Advanced techniques

Views

392

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

correct answers 1 Correct answer

LEGEND , Nov 12, 2007 Nov 12, 2007
Looks like a forward slash backslash problem.

Votes

Translate

Translate
LEGEND ,
Nov 12, 2007 Nov 12, 2007

Copy link to clipboard

Copied

Looks like a forward slash backslash problem.

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
Explorer ,
Nov 12, 2007 Nov 12, 2007

Copy link to clipboard

Copied

LATEST
yes, thanks, some sample web services registered fine in CF Admin along with a database query, so its working fine, now...can't believe I missed the backslash..

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