Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Oracle 获取ora的元素:getFaultAsString_Oracle_Xpath_Soa_Jdeveloper_Bpel - Fatal编程技术网

Oracle 获取ora的元素:getFaultAsString

Oracle 获取ora的元素:getFaultAsString,oracle,xpath,soa,jdeveloper,bpel,Oracle,Xpath,Soa,Jdeveloper,Bpel,我有一个BPEL流程,它捕获提出的任何错误并将其分配给一个变量: <assign name="AssignFault"> <copy> <from>ora:getFaultAsString()</from> <to>$myVariable</to> </copy> </assign> com.oracle.bpel.client.BPELFault: faultName: {

我有一个BPEL流程,它捕获提出的任何错误并将其分配给一个变量:

<assign name="AssignFault">
  <copy>
    <from>ora:getFaultAsString()</from>
    <to>$myVariable</to>
  </copy>
</assign>
com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault}
messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
parts: {{
summary=<summary>oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): myServer/myService</summary>
,detail=<detail>Unable to access the following endpoint(s): myServer/myService</detail>
,code=<code>404</code>}
是否有任何方法可以获取单个元素值,即“摘要”、“详细信息”和“代码”标记中包含的文本值?我想把每个变量的文本分配给各个变量,并用它们做不同的事情


提前感谢您的帮助。

我使用

<from>substring-before(substring-after(ora:getFaultAsString(), "&lt;code&gt;"), "&lt;/code&gt;")</from>
<from>substring-before(substring-after(ora:getFaultAsString(), "&lt;summary&gt;"), "&lt;/summary&gt;")</from>
<from>substring-before(substring-after(ora:getFaultAsString(), "&lt;detail&gt;"), "&lt;/detail&gt;")</from>
前面的子字符串(后面的子字符串)(ora:getFaultAsString(),“code”),“/code”)
前子字符串(后子字符串)(ora:getFaultAsString(),“summary”),“/summary”)
前子字符串(后子字符串)(ora:getFaultAsString(),“detail”),“/detail”)

。。。然后使用concat函数重新组装成非XML的内容。

我正在尝试使用,例如:substring before(substring after)(ora:getFaultAsString(),“
”,“
”)。但是,我的IDE(JDeveloper 11.1.1.6.0)不喜欢字符串“
”中的大于号。请尝试将大于号替换为
。这样就可以了-谢谢!如果这解决了您的问题,请随意将其标记为答案,以便将问题记录为已回答。回答你们自己的问题并没有错。我打算——我必须等24小时才能把它记下来。