0
我得到这样的SOAP请求:CXF - 解析SOAP消息元素的属性
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<notifications xmlns="xxxxx">
<sometags></sometags>
<Notification>
<Id>yyyyy</Id>
<sObject xsi:type="sf:Dog" xmlns:sf="urn:some.enterprise.object.soap.com">
<sf:Id>zzzzz</sf:Id>
</sObject>
</Notification>
</notifications>
</soapenv:Body>
</soapenv:Envelope>
,我想找出什么样的对象是有关通知(==我想读的sObject的类型属性,所以 我知道卫生组织类型的sObject是相关ID标签)。
我希望能够做同样的事情:
如果(sObject.type.equals( “狗”))// 做一些
如果(sObject.type.equals (“猫”))// 做别的事情
,但我怎样才能在SOAP请求属性值?
我使用的是用java CXF库。
谢谢
Cloutz
你有此服务的? – 2012-04-14 02:52:04