Question
consuming a webservice
I am attempting to create a webservice from one site to be
consumed by
another site. I have gone through various webservices tuts in the
distant past but I am stuck on this one.
On server A I have the following CFC...
<cfcomponent hint="Returns minimal member data for consumption">
<cffunction name="getMembersbyState" access="public" returntype="query"
hint="Members by State" description="FInd and return member listing by
state">
<cfargument name="state" required="yes" default="">
<cfset var rsGetResults="">
<cfquery name="rsGetMembers" datasource="#request.dsn#"
username="#request.dsnusrnm#" password="#request.dsnpwd#" >
SELECT member_id, city as member_City, company_name as member_Name,
dba_name as member_DBA
FROM members_tbl
WHERE Active = 1
AND state = '#argument.state#'
ORDER BY company_name
</cfquery>
<cfreturn rsGetMembers>
</cffunction>
</cfcomponent>
Now simply browsing to this page on my local server results in the cfc
description details. Browsing to in on the server - results in the
following error...
Could not import the tag library specified by "../administrator/cftags/".
The following error was encountered:
D:\inetpub\wwwroot-ct\CFIDE\componentutils\..\administrator\cftags.
Please ensure that you have specified a valid tag library.
The CFML compiler was processing:
* a cfimport tag beginning on line 3, column 2.
The error occurred in
D:\inetpub\wwwroot-ct\CFIDE\componentutils\login.cfm: line 3
Called from D:\inetpub\wwwroot-ct\CFIDE\componentutils\Application.cfm:
line 55
Called from D:\inetpub\wwwroot-ct\CFIDE\componentutils\Application.cfm:
line 55
1 : <cfsilent>
2 : <!--- Import L10N Taglib (System Generated) --->
3 : <cfimport prefix="admin" taglib="../administrator/cftags/">
4 :
5 : <!--- Establish page locale, default is english (en). --->
Does anyone have any pointers? PLEASE.
I have attempted to map the custom tag path to my cfc folder in the site
- via the system control panel. ( Using Crystaltech as host)
Should I be creating a diff. mapping of some kind? I can add a mapping
instead of a custom tag path but I have never done this thing before so
I completely lost.
Thanks so much.
Chris
another site. I have gone through various webservices tuts in the
distant past but I am stuck on this one.
On server A I have the following CFC...
<cfcomponent hint="Returns minimal member data for consumption">
<cffunction name="getMembersbyState" access="public" returntype="query"
hint="Members by State" description="FInd and return member listing by
state">
<cfargument name="state" required="yes" default="">
<cfset var rsGetResults="">
<cfquery name="rsGetMembers" datasource="#request.dsn#"
username="#request.dsnusrnm#" password="#request.dsnpwd#" >
SELECT member_id, city as member_City, company_name as member_Name,
dba_name as member_DBA
FROM members_tbl
WHERE Active = 1
AND state = '#argument.state#'
ORDER BY company_name
</cfquery>
<cfreturn rsGetMembers>
</cffunction>
</cfcomponent>
Now simply browsing to this page on my local server results in the cfc
description details. Browsing to in on the server - results in the
following error...
Could not import the tag library specified by "../administrator/cftags/".
The following error was encountered:
D:\inetpub\wwwroot-ct\CFIDE\componentutils\..\administrator\cftags.
Please ensure that you have specified a valid tag library.
The CFML compiler was processing:
* a cfimport tag beginning on line 3, column 2.
The error occurred in
D:\inetpub\wwwroot-ct\CFIDE\componentutils\login.cfm: line 3
Called from D:\inetpub\wwwroot-ct\CFIDE\componentutils\Application.cfm:
line 55
Called from D:\inetpub\wwwroot-ct\CFIDE\componentutils\Application.cfm:
line 55
1 : <cfsilent>
2 : <!--- Import L10N Taglib (System Generated) --->
3 : <cfimport prefix="admin" taglib="../administrator/cftags/">
4 :
5 : <!--- Establish page locale, default is english (en). --->
Does anyone have any pointers? PLEASE.
I have attempted to map the custom tag path to my cfc folder in the site
- via the system control panel. ( Using Crystaltech as host)
Should I be creating a diff. mapping of some kind? I can add a mapping
instead of a custom tag path but I have never done this thing before so
I completely lost.
Thanks so much.
Chris
