axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "FURTADO, Murray, GBM" <Murray.FURT...@rbos.com>
Subject RE: Axis2-1.1.1 WSDL2JAVA not creating subclasses!!!
Date Mon, 02 Apr 2007 11:37:27 GMT
Hello again...
 
Can anyone help me with my question? I can't imagine I am the only person
trying to use subclasses with Axis2. 
Could it be a bug in Axis2 - perhaps it is not handling the tns namespace
prefix in  <s:extension base="tns:XPortfolioProduct"> correctly, and 
skipping the generation of subclasses because it doesn't realise that tns
means 'this name space'?
 
Any thoughts???
 
Many thanks,
 
Murray
 

  _____  

From: FURTADO, Murray, GBM 
Sent: 30 March 2007 12:36
To: 'axis-user@ws.apache.org'
Subject: Axis2-1.1.1 WSDL2JAVA not creating subclasses!!!


Hi,
 
we have a class XPortfolioProduct, defined by the following wsdl:
 
<s:complexType name="XPortfolioProduct">
 <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="PaidOut" type="s:boolean"/>
    <s:element minOccurs="0" maxOccurs="1" name="InOut" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="RebateAmount"
type="s:double"/>
    <s:element minOccurs="0" maxOccurs="1" name="RebateCurrency"
type="s:string"/>
    ...
</s:sequence>
</s:complexType>
 
We have a number of subclasses of XPortfolioProduct, a couple of which are
shown defined below:
 
<s:complexType name="FVADetails">
 <s:complexContent mixed="false">
     <s:extension base="tns:XPortfolioProduct">
     <s:sequence>
        <s:element minOccurs="1" maxOccurs="1" name="FVAVolatility"
type="s:double"/>
        <s:element minOccurs="0" maxOccurs="1" name="FixingSource"
type="s:string"/>
        <s:element minOccurs="0" maxOccurs="1" name="FVAType"
type="s:string"/>
        <s:element minOccurs="1" maxOccurs="1" name="ResetDate"
type="s:dateTime"/>
        <s:element minOccurs="0" maxOccurs="1" name="FixedPrincipal"
type="s:string"/>
      </s:sequence>
</s:extension>
</s:complexContent>
</s:complexType>
 
<s:complexType name="DoubleAverageRateDetails">
 <s:complexContent mixed="false">
 <s:extension base="tns:XPortfolioProduct">
 <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="OffsetCurrency"
type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="FixingSource"
type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="OffsetType"
type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="CompensationCcy"
type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="OffsetAmount"
type="s:double"/>
    <s:element minOccurs="0" maxOccurs="1" name="DAvroFixings"
type="tns:DavroFixingElement"/>
    <s:element minOccurs="1" maxOccurs="1" name="CompensationAmount"
type="s:double"/>
</s:sequence>
</s:extension>
</s:complexContent>
</s:complexType>
 
When using wsdl2java using the adb databinding, this generates a
Stub.XPortfolioProduct inner class, but no Stub.FVADetails and
Stub.DoubleAverageRateDetails classes.  
 
Can anyone tell me why this is happening? This wsdl generates the correct
classes using Axis 1.4, but not with Axis2.-1.1.1  
 
Thanks in advance,
 
Murray
 
Murray Furtado
Currency Options Sales Technology
RBS Global Banking and Markets 
280 Bishopsgate, London EC2M 4RB / 135 Bishopsgate, London EC2M 3TP 
 ( +44 207 085 0748 | * murray.furtado@rbos.com
<mailto:murray.furtado@rbos.com> 
 
****************************************************************************
*******

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

****************************************************************************
*******

Mime
View raw message