axis2 解析客户端返回值问题,,急!!

2015-09-25 15:02:02 +08:00
 ray0625

我的 xsd 是这种格式的

<xs:element name="GetOUandUserResponse">
<xs:annotation>
<xs:documentation>组织机构与人员获取返回值/xs:documentation
/xs:annotation
<xs:complexType>
<xs:sequence>
<xs:element name="Group" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>组织机构--组/xs:documentation
/xs:annotation
<xs:complexType>
<xs:sequence>
<xs:element name="Department" type="tns:Department" maxOccurs="unbounded"/>
/xs:sequence
<xs:attribute name="GROUPID" use="required">
<xs:annotation>
<xs:documentation>组 ID/xs:documentation
/xs:annotation
/xs:attribute
<xs:attribute name="ou" use="required">
<xs:annotation>
<xs:documentation>组名称/xs:documentation
/xs:annotation
/xs:attribute
/xs:complexType
/xs:element
<xs:element name="ResponseMessage" type="tns:ResponseMessageType"/>
/xs:sequence
/xs:complexType
/xs:element
用 axis1.6 生成客户端,调用服务后返回 response 对象,现在可以得到 response 中的对象,比如说 group
但是得不到 group 的属性,也就是<xs:attribute name="GROUPID" use="required">,想问这种东西应该怎样获取,在线等,,急

3267 次点击
所在节点    Java
2 条回复
vitovan
2015-09-26 08:24:17 +08:00
来个不对题的答案:
弃 axis ,换 cxf 手写。
ray0625
2015-09-28 10:46:06 +08:00
@vitovan 公司要用这个,木得办法啊

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/223627

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX