2014-04-24 5 views
0

Rightfax에서 Java API와 통합 할 때 일부 POC를 수행하려고합니다. 이 파일을 사용할 수 있어야합니다 다음과 같은 메시지가RightFax 10.5 Java 통합 문제

here are the details of the output in debug mode 

<XML_FAX_SUBMIT java="1" stylesheet="XML_FAX_SUBMIT.xslt" xmlns="x-schema:XML_FAX_SUBMIT.xdr"> 
<INCLUDE_BEG>xml.beg</INCLUDE_BEG> 
    <SENDER> 
     <RF_USER>ADMINISTRATOR</RF_USER> 
    </SENDER> 
    <DESTINATIONS> 
     <FAX> 
      <TO_FAXNUM>555-7777</TO_FAXNUM> 
     </FAX> 
    </DESTINATIONS> 
    <BODY> 
How about some body text. 
Line 2 
Line 3 
    </BODY> 
<INCLUDE_END>xml.end</INCLUDE_END> 
</XML_FAX_SUBMIT> 

Initiating Connection to: http://<name>/rfxml/rfwebcon.dll 
RETURN XML: 
<?xml version="1.0"?> 
<XML_FAX_SUBMIT_REPLY> 
    <FAX unique_id="unknown"> 
     <STATUS_CODE>-1</STATUS_CODE> 
     <STATUS_MSG>Failed to load XML into DOM tree.</STATUS_MSG> 
    </FAX> 
</XML_FAX_SUBMIT_REPLY> 
Message Successfully Transported 
ID: unknown 
`Code`: -1 
**Msg: Failed to load XML into DOM tree.** 
Ended 


could anyone help me if you come across this type of issue or any configuration is missing at Fax Server or IIS side. 

답변

0
//Create a outbound fax object 
RFaxSubmit faxSubmit= new RFaxSubmit(); 
//set XMLNS and make sure you have XML_FAX_SUBMIT_schema.xml in your classpath. 
faxSubmit.m_FaxDocument.setXMLNS("classpath:XML_FAX_SUBMIT_schema.xml"); 

를 받고 샘플 자바 프로그램을 실행하는 동안 Rightfax 서버 (JAVA/XML의 API)에 필요한 모든 구성 요소를 설치하고 IIS를 구성합니다 (rightfax 서버를 설치하는 동안 처리했다) RightFax 서버의 @ this location \ RightFax \ Production \ xml \ schemas \ XML_FAX_SUBMIT_schema.xml에서이 파일을 다운로드하거나 서버 지원에 문의하여 classpath에 추가하십시오.