0

我正在处理我想将 csv 数据保存到 XML 文件的 oracle SOA 项目。到目前为止,我使用翻译活动以 xml 的形式获得了有效负载,但我只能直接使用它。我想将负载保存到 xml 文件。

我面临以下错误:

<?xml version="1.0" encoding="UTF-8"?><bpelFault>
   <faultType>0</faultType>
   <subLanguageExecutionFault xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable">
      <part name="summary">
         <summary>An error occurs while processing the XPath expression; the expression is ora:doXSLTransformForDoc("../Transformations/Transformation.xsl", $Receive_Read_InputVariable.body)</summary>
      </part>
      <part name="code">
         <code>XPath expression failed to execute</code>
      </part>
      <part name="detail">
         <detail>XPath expression failed to execute.
An error occurs while processing the XPath expression; the expression is ora:doXSLTransformForDoc("../Transformations/Transformation.xsl", $Receive_Read_InputVariable.body)
The XPath expression failed to execute; the reason was: javax.xml.transform.TransformerException: oramds:/deployed-composites/default/CSV_To_XML_rev1.0/Transformations/Transformation.xsl&lt;Line 30, Column 109&gt;: XML-22031: (Error) Variable not defined: 'oracle_empty_param'.
Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
</detail>
      </part>
   </subLanguageExecutionFault>
</bpelFault>

我正在使用oracle soa 套件 12c。

4

1 回答 1

0

听起来您想将变量转换为字符串。我会使用 XSL 转换。转换的输入将是您新翻译的变量,输出是一个普通的旧字符串变量。转换将如下所示:

  <xsl:template match="/">
    <tns:myString>
      <xsl:copy-of select="/ns0:RootElement"/>
    </tns:myString>
  </xsl:template>

如果您愿意,您可以将此字符串写入文件适配器

于 2018-06-04T13:49:34.617 回答