在Mule中,我使用的是SOAP组件,它以XML格式接收WSDL文件。之后,我想获取XML数据。但它显示错误。我在这里使用如何获取mule中的XML值?
#[message.InboundProperties['Subject']]
它显示空值。这是我的XML代码
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:out="http://soap.sforce.com/2005/09/outbound" xmlns:urn="urn:sobject.enterprise.soap.sforce.com">
<soapenv:Header/>
<soapenv:Body>
<out:notifications>
<out:OrganizationId>00D9XXXXXXXXXXXx</out:OrganizationId>
<out:ActionId>04k90xxxxxx</out:ActionId>
<out:SessionId>XXXXXXXXXXXXXXX</out:SessionId>
<out:EnterpriseUrl>https://ap1.salesforce.com/services/Soap/c/29.0/00D90000000q0Mc</out:EnterpriseUrl>
<out:PartnerUrl>https://ap1.salesforce.com/services/Soap/u/29.0/00D90000000q0Mc</out:PartnerUrl>
<!--1 to 100 repetitions:-->
<out:Notification>
**<out:Id>?</out:Id>
<out:sObject>
<!--Zero or more repetitions:-->
<urn:fieldsToNull>?</urn:fieldsToNull>
<!--Optional:-->
<urn:Subject>Test</urn:Subject>
</out:sObject>**
</out:Notification>
</out:notifications>
</soapenv:Body>
</soapenv:Envelope>
SOAP正常工作。 <urn:Subject>Test</urn:Subject>
从这个XML文件
现在流量是工作的罚款节点值。用于接收我正在使用的XML节点XPATH 但它只支持LocalSystem,我该如何使用Online。它显示在线工作时间的错误。 –
user3129532
对不起本地系统 - mule Studio是什么意思? 你能为我添加错误吗? –
localhost:8081此地址为xpath工作。但它不适用于URL。好吧你能告诉我如何检索XML节点值。已经我粘贴我的xml代码格式基于这种格式我应该通过使用XPATH接收值。我怎么能够? – user3129532