【问题标题】:RightFax 10.5 java integration issueRightFax 10.5 java集成问题
【发布时间】:2014-11-01 00:26:24
【问题描述】:

我正在尝试在 Rightfax 与 JAVA API 的集成上做一些 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. 

【问题讨论】:

    标签: rightfax


    【解决方案1】:
    //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 下载此文件或询问服务器支持并将其添加到您的类路径中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-17
      • 2019-09-28
      • 2016-07-18
      • 2022-12-15
      • 2016-11-29
      • 1970-01-01
      • 2016-10-07
      • 2022-06-17
      相关资源
      最近更新 更多