0
特定元素的所有子節點我有一個SOAP請求信封看起來是這樣的:Mule-解析SOAP封套
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tsh="http://mulesoft.org/tshirt-service">
<soapenv:Header>
<tsh:AuthenticationHeader>
<apiKey>?</apiKey>
</tsh:AuthenticationHeader>
</soapenv:Header>
<soapenv:Body>
<tsh:OrderTshirt>
<size>xxl</size>
<email>[email protected]</email>
<name>xyz</name>
<address1>aaaa</address1>
<address2>asdf</address2>
<city>werty</city>
<stateOrProvince>sdd</stateOrProvince>
<postalCode>111111</postalCode>
<country>India</country>
</tsh:OrderTshirt>
</soapenv:Body>
</soapenv:Envelope>
現在在這裏,我需要解析的<tsh:OrderTshirt>
即所有子元素解析後的輸出應該是這樣的:
<tsh:OrderTshirt>
<size>xxl</size>
<email>[email protected]</email>
<name>xyz</name>
<address1>aaaa</address1>
<address2>asdf</address2>
<city>werty</city>
<stateOrProvince>sdd</stateOrProvince>
<postalCode>111111</postalCode>
<country>India</country>
</tsh:OrderTshirt>
我已經通過在騾子的命名空間管理聲明命名空間解析一個元素的想法。 (簡稱reading soap header element in payload)。
不確定如何使用它的子元素解析節點。
請分享您的想法:)