2017-02-06 7 views
2

나는 lucee 5.1.0.34에서 fusebox 5 응용 프로그램을 구성했습니다. co.kr/reports/폴더에는 cfc가 있습니다. cfc에서 원격 메소드를 실행할 때. 그것은 나에게 다음과 같은 오류를주고있다.Lucee 문서가 비어 있습니다.

enter image description here

여기 내 CFC 코드입니다.

<cfcomponent displayname="Reports" output="yes"> 
<cffunction name="test" access="remote" output="yes"> 
    <cfoutput>testing</cfoutput> 
</cffunction> 
</cfcomponent> 

저는 브라우저에서이 방법을 실행하고 있습니다.

http://example.com/com/reports/abc.cfc?method=test

나는 로그를 확인하고 많이 검색했다. 이 문제에 대한 도움을 찾지 못했습니다. 어떤 몸이라도이 문제를 해결할 수 있습니까?

답변

1

메서드 원격을 실행하면 기본적으로 content-type이 text/xml 인 페이지가 반환됩니다. 브라우저가 깨진 XML로 해석합니다. 대신이 방법을 사용해보십시오.

<cfcomponent displayname="Reports" output="yes"> 
    <cffunction name="test" access="remote" output="yes"> 
     <cfcontent type="text/html"> 
     <cfoutput>testing</cfoutput> 
    </cffunction> 
</cfcomponent> 
관련 문제