V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ray0625
V2EX  ›  Java

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

  •  
  •   ray0625 · 2015-09-25 15:02:02 +08:00 · 3244 次点击
    这是一个创建于 3144 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我的 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">,想问这种东西应该怎样获取,在线等,,急

    2 条回复    2015-09-28 10:46:06 +08:00
    vitovan
        1
    vitovan  
       2015-09-26 08:24:17 +08:00 via Android
    来个不对题的答案:
    弃 axis ,换 cxf 手写。
    ray0625
        2
    ray0625  
    OP
       2015-09-28 10:46:06 +08:00
    @vitovan 公司要用这个,木得办法啊
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1062 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 18:13 · PVG 02:13 · LAX 11:13 · JFK 14:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.