Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/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
Ibm mq IBM集成总线:跟踪节点_Ibm Mq_Ibm Integration Bus - Fatal编程技术网

Ibm mq IBM集成总线:跟踪节点

Ibm mq IBM集成总线:跟踪节点,ibm-mq,ibm-integration-bus,Ibm Mq,Ibm Integration Bus,在有3个节点的简单消息流中。一个是接收xml输入的MQ输入节点。另一个是MQ输出节点,它接收从MQ输入传递的消息。中间是跟踪节点。跟踪节点配置为在文件中生成跟踪。它跟踪整个xml消息,它的内容在文件中。如果我想跟踪一个xml文件标记,比如联系人号码,该怎么办 i、 e: 我现在明白问题所在了。 引用中的Body指向解析消息的域的根元素,例如,如果在消息的输入节点上将消息域设置为XMLNSC,则指向root.XMLNSC,而不是消息的根元素 如果要跟踪示例消息中contactPhoneNumber

在有3个节点的简单消息流中。一个是接收xml输入的MQ输入节点。另一个是MQ输出节点,它接收从MQ输入传递的消息。中间是跟踪节点。跟踪节点配置为在文件中生成跟踪。它跟踪整个xml消息,它的内容在文件中。如果我想跟踪一个xml文件标记,比如联系人号码,该怎么办

i、 e:

我现在明白问题所在了。 引用中的Body指向解析消息的域的根元素,例如,如果在消息的输入节点上将消息域设置为XMLNSC,则指向root.XMLNSC,而不是消息的根元素

如果要跟踪示例消息中contactPhoneNumber元素的值,应使用以下参考: ${Body.*:In_Request.contactDetails.contactPhoneNumber}

因此,在主体之后,必须指定元素的整个路径。*:部分是必需的,因为消息中的根元素位于命名空间中。

我现在看到问题了。 引用中的Body指向解析消息的域的根元素,例如,如果在消息的输入节点上将消息域设置为XMLNSC,则指向root.XMLNSC,而不是消息的根元素

如果要跟踪示例消息中contactPhoneNumber元素的值,应使用以下参考: ${Body.*:In_Request.contactDetails.contactPhoneNumber}


因此,在主体之后,必须指定元素的整个路径。*:部分是必需的,因为消息中的根元素位于命名空间中。

这些模式应该可以工作。您的XML元素可能没有名称空间吗?是的,以下是名称空间:
xmlns:tns=”http://www.ibm.lab.com“xmlns:xsd=”http://www.w3.org/2001/XMLSchema“xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance“
这些似乎来自XSD,而不是您的消息。你能在你的问题中包含全部信息吗?当然!我已经编辑了这个问题。请检查!这些模式应该有效。您的XML元素可能没有名称空间吗?是的,以下是名称空间:
xmlns:tns=”http://www.ibm.lab.com“xmlns:xsd=”http://www.w3.org/2001/XMLSchema“xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance“
这些似乎来自XSD,而不是您的消息。你能在你的问题中包含全部信息吗?当然!我已经编辑了这个问题。请检查!
<contactDetails>
    <contactName>Acme</contactName>
    <contactNumber>09200209</contactNumber>
</contactDetails>
<?xml version="1.0" encoding="utf-8"?>
<tns:In_Request xmlns:tns="http://www.ibm.lab.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <ActionRequest>O</ActionRequest>
    <DateRequest>10/12/2005</DateRequest>
    <customerNumber>1</customerNumber>
    <customerName>ACME Hardware</customerName>
    <customerDetails>
        <customerAddress1>1254 Main St</customerAddress1>
        <customerAddress2>Suite 12</customerAddress2>
        <customerCity>Dime Box</customerCity>
        <customerState>TX</customerState>
        <customerCountry>USA</customerCountry>
        <customerPostalCode>76543</customerPostalCode>
        <customerCreditLimit>1200</customerCreditLimit>
        <customerCreditScore>123</customerCreditScore>
    </customerDetails>
    <contactDetails>
        <contactFirstName>Freddy</contactFirstName>
        <contactLastName>Bloggs</contactLastName>
        <contactPhoneNumber>555-123-6543</contactPhoneNumber>
    </contactDetails>
    <requestDecision>Y</requestDecision>
    <comments>Just a Comment</comments>
    </tns:In_Request>