You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "FURTADO, Murray, GBM" <Mu...@rbos.com> on 2007/04/12 14:23:18 UTC
Axis2-1.1.1 How to read attributes from ADB generated Stub classe
s?
Hi,
I have some wsdl defined below.
The <s:attribute > on QueryType is ignored in my generated Stub class - ie.
there is no way to access the contents of this attribute programatically.
Is this because attributes aren't supported in Axis 2 yet, or am I doing
something wrong?
Many thanks,
Murray
<s:complexType name="QueryTypeDefault">
−
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="querytype"
type="tns:QueryType"/>
<s:element minOccurs="0" maxOccurs="1" name="DefaultColumns"
type="tns:DefaultColumnCollection"/>
</s:sequence>
</s:complexType>
−
<s:complexType name="QueryType">
<s:attribute name="name" type="tns:QType" use="required"/>
</s:complexType>
−
<s:complexType name="DefaultColumnCollection">
−
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="DefaultColumn"
type="tns:DefaultColumn"/>
</s:sequence>
</s:complexType>
−
<s:complexType name="DefaultColumn">
<s:attribute name="sortingDirection" type="tns:SortDirection"
use="required"/>
<s:attribute name="id" type="s:string"/>
<s:attribute name="displayOrder" type="s:string"/>
<s:attribute name="sortingOrder" type="s:string"/>
</s:complexType>
−
<s:simpleType name="SortDirection">
−
<s:restriction base="s:string">
<s:enumeration value="Ascending"/>
<s:enumeration value="Descending"/>
<s:enumeration value="None"/>
</s:restriction>
</s:simpleType>
***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
Authorised and regulated by the Financial Services Authority
This e-mail message is confidential and for use by the
addressee only. If the message is received by anyone other
than the addressee, please return the message to the sender
by replying to it and then delete the message from your
computer. Internet e-mails are not necessarily secure. The
Royal Bank of Scotland plc does not accept responsibility for
changes made to this message after it was sent.
Whilst all reasonable care has been taken to avoid the
transmission of viruses, it is the responsibility of the recipient to
ensure that the onward transmission, opening or use of this
message and any attachments will not adversely affect its
systems or data. No responsibility is accepted by The
Royal Bank of Scotland plc in this regard and the recipient should carry
out such virus and other checks as it considers appropriate.
Visit our websites at:
www.rbs.com
www.rbsgc.com
www.rbsmarkets.com
***********************************************************************************
Re: Axis2-1.1.1 How to read attributes from ADB generated Stub classe s?
Posted by Amila Suriarachchi <am...@gmail.com>.
Can you send your whole wsdl file?
Can you test with the RC2 or with a nightly build?
On 4/12/07, FURTADO, Murray, GBM <Mu...@rbos.com> wrote:
>
> Hi,
>
> I have some wsdl defined below.
>
> The <s:attribute > on QueryType is ignored in my generated Stub class -
> ie. there is no way to access the contents of this attribute
> programatically.
> Is this because attributes aren't supported in Axis 2 yet, or am I doing
> something wrong?
>
> Many thanks,
>
> Murray
>
> <s:complexType name="QueryTypeDefault">
> −
> <s:sequence>
> <s:element minOccurs="0" maxOccurs="1" name="querytype"
> type="tns:QueryType"/>
> <s:element minOccurs="0" maxOccurs="1" name="DefaultColumns"
> type="tns:DefaultColumnCollection"/>
> </s:sequence>
> </s:complexType>
> −
> <s:complexType name="QueryType">
> *<s:attribute name="name" type="tns:QType" use="required"/>*
> </s:complexType>
> −
> <s:complexType name="DefaultColumnCollection">
> −
> <s:sequence>
> <s:element minOccurs="0" maxOccurs="unbounded" name="DefaultColumn"
> type="tns:DefaultColumn"/>
> </s:sequence>
> </s:complexType>
> −
> <s:complexType name="DefaultColumn">
> <s:attribute name="sortingDirection" type="tns:SortDirection"
> use="required"/>
> <s:attribute name="id" type="s:string"/>
> <s:attribute name="displayOrder" type="s:string"/>
> <s:attribute name="sortingOrder" type="s:string"/>
> </s:complexType>
> −
> <s:simpleType name="SortDirection">
> −
> <s:restriction base="s:string">
> <s:enumeration value="Ascending"/>
> <s:enumeration value="Descending"/>
> <s:enumeration value="None"/>
> </s:restriction>
> </s:simpleType>
>
> ***********************************************************************************
> The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
> Authorised and regulated by the Financial Services Authority
>
> This e-mail message is confidential and for use by the
> addressee only. If the message is received by anyone other
> than the addressee, please return the message to the sender
> by replying to it and then delete the message from your
> computer. Internet e-mails are not necessarily secure. The
> Royal Bank of Scotland plc does not accept responsibility for
> changes made to this message after it was sent.
>
> Whilst all reasonable care has been taken to avoid the
> transmission of viruses, it is the responsibility of the recipient to
> ensure that the onward transmission, opening or use of this
> message and any attachments will not adversely affect its
> systems or data. No responsibility is accepted by The
> Royal Bank of Scotland plc in this regard and the recipient should carry
> out such virus and other checks as it considers appropriate.
> Visit our websites at:
> www.rbs.comwww.rbsgc.comwww.rbsmarkets.com
> ***********************************************************************************
>
>
--
Amila Suriarachchi,
WSO2 Inc.