RightFax 10.5 java集成问题

时间:2014-04-24 17:27:04

标签: rightfax

我正在尝试在与JAVA API的Rightfax集成上做一些POC。安装Rightfax Server(JAVA / XML API)中的所有必需组件并配置IIS(安装rightfax服务器时要小心),同时运行示例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. 

1 个答案:

答案 0 :(得分: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服务器上可用,@此位置\ RightFax \ Production \ xml \ schemas \ XML_FAX_SUBMIT_schema.xml下载此文件或询问服务器支持并将其添加到类路径中。