ray0625
V2EX  ›  Java

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

  •  
  •   ray0625 · Sep 25, 2015 · 3945 views
    This topic created in 3911 days ago, the information mentioned may be changed or developed.

    我的 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 replies    2015-09-28 10:46:06 +08:00
    vitovan
        1
    vitovan  
       Sep 26, 2015 via Android
    来个不对题的答案:
    弃 axis ,换 cxf 手写。
    ray0625
        2
    ray0625  
    OP
       Sep 28, 2015
    @vitovan 公司要用这个,木得办法啊
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6003 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 64ms · UTC 06:14 · PVG 14:14 · LAX 23:14 · JFK 02:14
    ♥ Do have faith in what you're doing.