2012-02-27 58 views

回答

6

ColdFusion中做到這一點,最簡單的方法是創建要面向外部世界有「遠程」爲「訪問」屬性值的功能的CFC,這將產生一個SOAP webservice。

如何做到這一點的一個例子(改編自CF文檔here):關於如何使用內置的web服務功能,可以發現here

<cfcomponent> 
    <cffunction name="echoString" access="remote" returnType="string" output="false"> 
     <cfargument name="input" type="string"> 
     <cfreturn arguments.input> 
    </cffunction> 
</cfcomponent> 

更多信息。