You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Olivier DUGAST (JIRA)" <ji...@apache.org> on 2007/02/14 17:31:05 UTC

[jira] Created: (AXIS2-2179) Unexpected subelement & inheritance & attribute

Unexpected subelement & inheritance & attribute
-----------------------------------------------

                 Key: AXIS2-2179
                 URL: https://issues.apache.org/jira/browse/AXIS2-2179
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: databinding
    Affects Versions: 1.1.1
         Environment: Linux 2.6.12
Jrockit 1.4.2
weblogic 8.2
Axis2 1.1.1
            Reporter: Olivier DUGAST


Hi all, 

I try to use Axis2 with my service. One of my methods return a tab of BeanB class which extend an other BeanA class. But the SOAP response return only the attribute of BeanB without the attribute of BeanA as you can see below :

---- extract of wsdl -----
....
<xs:element name="BeanB" type="ax21:BeanB" /> <xs:complexType name="BeanB"> <xs:sequence> <xs:element name="attributeA"
nillable="true" type="xs:string" /> <xs:element name="attributeB"
nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> ...
<xs:element name="getBeanBTabResponse">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="return" nillable="true"
type="ns0:BeanB" /> </xs:sequence> </xs:complexType> </xs:element> ...
--------------------------


---- SOAP request ---- 
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
  <soapenv:Header />
  <soapenv:Body>
    <getBeanBTab />
  </soapenv:Body>
</soapenv:Envelope>
-----------------------------


---- SOAP response of getBeanBTab webmethod  without attribute A ----- 
<?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
  <soapenv:Header />
  <soapenv:Body>
    <ns:getBeanBTabResponse xmlns:ns="http://server.me.com/xsd">
      <ns:return>
        <attributeB xmlns="http://bean.service.server.me.com/xsd">attrB
BeanB</attributeB>
      </ns:return>
    </ns:getBeanBTabResponse>
  </soapenv:Body>
</soapenv:Envelope>
--------------------------------------------------

When i try to invoke the method "getBeanBTab" as you can see above, no attributeA return , i catch this Exception :
--- stack trace -------------------------------------------
Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement attributeB
	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3720)
	at com.me.client.ServiceTestStub.getBeanBTab(ServiceTestStub.java:365)
	at com.me.client.ServiceTestClient.getBeanBTab(ServiceTestClient.java:61)
	at com.me.client.ServiceTestClientMain.main(ServiceTestClientMain.java:15)
Caused by: java.lang.RuntimeException: Unexpected subelement attributeB
	at com.me.client.ServiceTestStub$BeanB$Factory.parse(ServiceTestStub.java:1304)
	at com.me.client.ServiceTestStub$GetBeanBTabResponse$Factory.parse(ServiceTestStub.java:3592)
	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3714)
	... 3 more
--------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2179) Unexpected subelement & inheritance & attribute

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484766 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-2179:
-----------------------------------------------------

Are you generating your wsdl using a your class and then codegen for produced wsdl?

> Unexpected subelement & inheritance & attribute
> -----------------------------------------------
>
>                 Key: AXIS2-2179
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2179
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.1.1
>         Environment: Linux 2.6.12
> Jrockit 1.4.2
> weblogic 8.2
> Axis2 1.1.1
>            Reporter: Olivier DUGAST
>         Assigned To: Amila Chinthaka Suriarachchi
>         Attachments: ServiceTest.zip
>
>
> Hi all, 
> I try to use Axis2 with my service. One of my methods return a tab of BeanB class which extend an other BeanA class. But the SOAP response return only the attribute of BeanB without the attribute of BeanA as you can see below :
> ---- extract of wsdl -----
> ....
> <xs:element name="BeanB" type="ax21:BeanB" /> <xs:complexType name="BeanB"> <xs:sequence> <xs:element name="attributeA"
> nillable="true" type="xs:string" /> <xs:element name="attributeB"
> nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> ...
> <xs:element name="getBeanBTabResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element maxOccurs="unbounded" name="return" nillable="true"
> type="ns0:BeanB" /> </xs:sequence> </xs:complexType> </xs:element> ...
> --------------------------
> ---- SOAP request ---- 
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <getBeanBTab />
>   </soapenv:Body>
> </soapenv:Envelope>
> -----------------------------
> ---- SOAP response of getBeanBTab webmethod  without attribute A ----- 
> <?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <ns:getBeanBTabResponse xmlns:ns="http://server.me.com/xsd">
>       <ns:return>
>         <attributeB xmlns="http://bean.service.server.me.com/xsd">attrB
> BeanB</attributeB>
>       </ns:return>
>     </ns:getBeanBTabResponse>
>   </soapenv:Body>
> </soapenv:Envelope>
> --------------------------------------------------
> When i try to invoke the method "getBeanBTab" as you can see above, no attributeA return , i catch this Exception :
> --- stack trace -------------------------------------------
> Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3720)
> 	at com.me.client.ServiceTestStub.getBeanBTab(ServiceTestStub.java:365)
> 	at com.me.client.ServiceTestClient.getBeanBTab(ServiceTestClient.java:61)
> 	at com.me.client.ServiceTestClientMain.main(ServiceTestClientMain.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub$BeanB$Factory.parse(ServiceTestStub.java:1304)
> 	at com.me.client.ServiceTestStub$GetBeanBTabResponse$Factory.parse(ServiceTestStub.java:3592)
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3714)
> 	... 3 more
> --------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Assigned: (AXIS2-2179) Unexpected subelement & inheritance & attribute

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi reassigned AXIS2-2179:
---------------------------------------------------

    Assignee: Deepal Jayasinghe  (was: Amila Chinthaka Suriarachchi)

deepal can you please look at this patch?

> Unexpected subelement & inheritance & attribute
> -----------------------------------------------
>
>                 Key: AXIS2-2179
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2179
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.1.1
>         Environment: Linux 2.6.12
> Jrockit 1.4.2
> weblogic 8.2
> Axis2 1.1.1
>            Reporter: Olivier DUGAST
>         Assigned To: Deepal Jayasinghe
>         Attachments: BeanUtil.java, ServiceTest.zip
>
>
> Hi all, 
> I try to use Axis2 with my service. One of my methods return a tab of BeanB class which extend an other BeanA class. But the SOAP response return only the attribute of BeanB without the attribute of BeanA as you can see below :
> ---- extract of wsdl -----
> ....
> <xs:element name="BeanB" type="ax21:BeanB" /> <xs:complexType name="BeanB"> <xs:sequence> <xs:element name="attributeA"
> nillable="true" type="xs:string" /> <xs:element name="attributeB"
> nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> ...
> <xs:element name="getBeanBTabResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element maxOccurs="unbounded" name="return" nillable="true"
> type="ns0:BeanB" /> </xs:sequence> </xs:complexType> </xs:element> ...
> --------------------------
> ---- SOAP request ---- 
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <getBeanBTab />
>   </soapenv:Body>
> </soapenv:Envelope>
> -----------------------------
> ---- SOAP response of getBeanBTab webmethod  without attribute A ----- 
> <?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <ns:getBeanBTabResponse xmlns:ns="http://server.me.com/xsd">
>       <ns:return>
>         <attributeB xmlns="http://bean.service.server.me.com/xsd">attrB
> BeanB</attributeB>
>       </ns:return>
>     </ns:getBeanBTabResponse>
>   </soapenv:Body>
> </soapenv:Envelope>
> --------------------------------------------------
> When i try to invoke the method "getBeanBTab" as you can see above, no attributeA return , i catch this Exception :
> --- stack trace -------------------------------------------
> Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3720)
> 	at com.me.client.ServiceTestStub.getBeanBTab(ServiceTestStub.java:365)
> 	at com.me.client.ServiceTestClient.getBeanBTab(ServiceTestClient.java:61)
> 	at com.me.client.ServiceTestClientMain.main(ServiceTestClientMain.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub$BeanB$Factory.parse(ServiceTestStub.java:1304)
> 	at com.me.client.ServiceTestStub$GetBeanBTabResponse$Factory.parse(ServiceTestStub.java:3592)
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3714)
> 	... 3 more
> --------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-2179) Unexpected subelement & inheritance & attribute

Posted by "Olivier DUGAST (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier DUGAST updated AXIS2-2179:
----------------------------------

    Attachment: ServiceTest.zip

source code + services.xml + build.xml

> Unexpected subelement & inheritance & attribute
> -----------------------------------------------
>
>                 Key: AXIS2-2179
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2179
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.1.1
>         Environment: Linux 2.6.12
> Jrockit 1.4.2
> weblogic 8.2
> Axis2 1.1.1
>            Reporter: Olivier DUGAST
>         Attachments: ServiceTest.zip
>
>
> Hi all, 
> I try to use Axis2 with my service. One of my methods return a tab of BeanB class which extend an other BeanA class. But the SOAP response return only the attribute of BeanB without the attribute of BeanA as you can see below :
> ---- extract of wsdl -----
> ....
> <xs:element name="BeanB" type="ax21:BeanB" /> <xs:complexType name="BeanB"> <xs:sequence> <xs:element name="attributeA"
> nillable="true" type="xs:string" /> <xs:element name="attributeB"
> nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> ...
> <xs:element name="getBeanBTabResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element maxOccurs="unbounded" name="return" nillable="true"
> type="ns0:BeanB" /> </xs:sequence> </xs:complexType> </xs:element> ...
> --------------------------
> ---- SOAP request ---- 
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <getBeanBTab />
>   </soapenv:Body>
> </soapenv:Envelope>
> -----------------------------
> ---- SOAP response of getBeanBTab webmethod  without attribute A ----- 
> <?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <ns:getBeanBTabResponse xmlns:ns="http://server.me.com/xsd">
>       <ns:return>
>         <attributeB xmlns="http://bean.service.server.me.com/xsd">attrB
> BeanB</attributeB>
>       </ns:return>
>     </ns:getBeanBTabResponse>
>   </soapenv:Body>
> </soapenv:Envelope>
> --------------------------------------------------
> When i try to invoke the method "getBeanBTab" as you can see above, no attributeA return , i catch this Exception :
> --- stack trace -------------------------------------------
> Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3720)
> 	at com.me.client.ServiceTestStub.getBeanBTab(ServiceTestStub.java:365)
> 	at com.me.client.ServiceTestClient.getBeanBTab(ServiceTestClient.java:61)
> 	at com.me.client.ServiceTestClientMain.main(ServiceTestClientMain.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub$BeanB$Factory.parse(ServiceTestStub.java:1304)
> 	at com.me.client.ServiceTestStub$GetBeanBTabResponse$Factory.parse(ServiceTestStub.java:3592)
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3714)
> 	... 3 more
> --------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-2179) Unexpected subelement & inheritance & attribute

Posted by "Bruno Lombardi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bruno Lombardi updated AXIS2-2179:
----------------------------------

    Attachment: BeanUtil.java

Hi,

I've found same proble and I've solved with this patch in module ADB.

The problem seems related to the use of "getDeclaredProperties" only on subclass. I've cloned the code used in SchemaGenerator.java of module java2wsdl that made same things to generate the WSDL.

Bye

Bruno & Andrea

> Unexpected subelement & inheritance & attribute
> -----------------------------------------------
>
>                 Key: AXIS2-2179
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2179
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.1.1
>         Environment: Linux 2.6.12
> Jrockit 1.4.2
> weblogic 8.2
> Axis2 1.1.1
>            Reporter: Olivier DUGAST
>         Assigned To: Amila Chinthaka Suriarachchi
>         Attachments: BeanUtil.java, ServiceTest.zip
>
>
> Hi all, 
> I try to use Axis2 with my service. One of my methods return a tab of BeanB class which extend an other BeanA class. But the SOAP response return only the attribute of BeanB without the attribute of BeanA as you can see below :
> ---- extract of wsdl -----
> ....
> <xs:element name="BeanB" type="ax21:BeanB" /> <xs:complexType name="BeanB"> <xs:sequence> <xs:element name="attributeA"
> nillable="true" type="xs:string" /> <xs:element name="attributeB"
> nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> ...
> <xs:element name="getBeanBTabResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element maxOccurs="unbounded" name="return" nillable="true"
> type="ns0:BeanB" /> </xs:sequence> </xs:complexType> </xs:element> ...
> --------------------------
> ---- SOAP request ---- 
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <getBeanBTab />
>   </soapenv:Body>
> </soapenv:Envelope>
> -----------------------------
> ---- SOAP response of getBeanBTab webmethod  without attribute A ----- 
> <?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <ns:getBeanBTabResponse xmlns:ns="http://server.me.com/xsd">
>       <ns:return>
>         <attributeB xmlns="http://bean.service.server.me.com/xsd">attrB
> BeanB</attributeB>
>       </ns:return>
>     </ns:getBeanBTabResponse>
>   </soapenv:Body>
> </soapenv:Envelope>
> --------------------------------------------------
> When i try to invoke the method "getBeanBTab" as you can see above, no attributeA return , i catch this Exception :
> --- stack trace -------------------------------------------
> Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3720)
> 	at com.me.client.ServiceTestStub.getBeanBTab(ServiceTestStub.java:365)
> 	at com.me.client.ServiceTestClient.getBeanBTab(ServiceTestClient.java:61)
> 	at com.me.client.ServiceTestClientMain.main(ServiceTestClientMain.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub$BeanB$Factory.parse(ServiceTestStub.java:1304)
> 	at com.me.client.ServiceTestStub$GetBeanBTabResponse$Factory.parse(ServiceTestStub.java:3592)
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3714)
> 	... 3 more
> --------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-2179) Unexpected subelement & inheritance & attribute

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi updated AXIS2-2179:
------------------------------------------------

    Priority: Blocker  (was: Major)

> Unexpected subelement & inheritance & attribute
> -----------------------------------------------
>
>                 Key: AXIS2-2179
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2179
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.1.1
>         Environment: Linux 2.6.12
> Jrockit 1.4.2
> weblogic 8.2
> Axis2 1.1.1
>            Reporter: Olivier DUGAST
>            Assignee: Deepal Jayasinghe
>            Priority: Blocker
>         Attachments: BeanUtil.java, ServiceTest.zip
>
>
> Hi all, 
> I try to use Axis2 with my service. One of my methods return a tab of BeanB class which extend an other BeanA class. But the SOAP response return only the attribute of BeanB without the attribute of BeanA as you can see below :
> ---- extract of wsdl -----
> ....
> <xs:element name="BeanB" type="ax21:BeanB" /> <xs:complexType name="BeanB"> <xs:sequence> <xs:element name="attributeA"
> nillable="true" type="xs:string" /> <xs:element name="attributeB"
> nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> ...
> <xs:element name="getBeanBTabResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element maxOccurs="unbounded" name="return" nillable="true"
> type="ns0:BeanB" /> </xs:sequence> </xs:complexType> </xs:element> ...
> --------------------------
> ---- SOAP request ---- 
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <getBeanBTab />
>   </soapenv:Body>
> </soapenv:Envelope>
> -----------------------------
> ---- SOAP response of getBeanBTab webmethod  without attribute A ----- 
> <?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <ns:getBeanBTabResponse xmlns:ns="http://server.me.com/xsd">
>       <ns:return>
>         <attributeB xmlns="http://bean.service.server.me.com/xsd">attrB
> BeanB</attributeB>
>       </ns:return>
>     </ns:getBeanBTabResponse>
>   </soapenv:Body>
> </soapenv:Envelope>
> --------------------------------------------------
> When i try to invoke the method "getBeanBTab" as you can see above, no attributeA return , i catch this Exception :
> --- stack trace -------------------------------------------
> Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3720)
> 	at com.me.client.ServiceTestStub.getBeanBTab(ServiceTestStub.java:365)
> 	at com.me.client.ServiceTestClient.getBeanBTab(ServiceTestClient.java:61)
> 	at com.me.client.ServiceTestClientMain.main(ServiceTestClientMain.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub$BeanB$Factory.parse(ServiceTestStub.java:1304)
> 	at com.me.client.ServiceTestStub$GetBeanBTabResponse$Factory.parse(ServiceTestStub.java:3592)
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3714)
> 	... 3 more
> --------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-2179) Unexpected subelement & inheritance & attribute

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated AXIS2-2179:
------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> Unexpected subelement & inheritance & attribute
> -----------------------------------------------
>
>                 Key: AXIS2-2179
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2179
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.1.1
>         Environment: Linux 2.6.12
> Jrockit 1.4.2
> weblogic 8.2
> Axis2 1.1.1
>            Reporter: Olivier DUGAST
>         Assigned To: Amila Chinthaka Suriarachchi
>         Attachments: ServiceTest.zip
>
>
> Hi all, 
> I try to use Axis2 with my service. One of my methods return a tab of BeanB class which extend an other BeanA class. But the SOAP response return only the attribute of BeanB without the attribute of BeanA as you can see below :
> ---- extract of wsdl -----
> ....
> <xs:element name="BeanB" type="ax21:BeanB" /> <xs:complexType name="BeanB"> <xs:sequence> <xs:element name="attributeA"
> nillable="true" type="xs:string" /> <xs:element name="attributeB"
> nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> ...
> <xs:element name="getBeanBTabResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element maxOccurs="unbounded" name="return" nillable="true"
> type="ns0:BeanB" /> </xs:sequence> </xs:complexType> </xs:element> ...
> --------------------------
> ---- SOAP request ---- 
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <getBeanBTab />
>   </soapenv:Body>
> </soapenv:Envelope>
> -----------------------------
> ---- SOAP response of getBeanBTab webmethod  without attribute A ----- 
> <?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <ns:getBeanBTabResponse xmlns:ns="http://server.me.com/xsd">
>       <ns:return>
>         <attributeB xmlns="http://bean.service.server.me.com/xsd">attrB
> BeanB</attributeB>
>       </ns:return>
>     </ns:getBeanBTabResponse>
>   </soapenv:Body>
> </soapenv:Envelope>
> --------------------------------------------------
> When i try to invoke the method "getBeanBTab" as you can see above, no attributeA return , i catch this Exception :
> --- stack trace -------------------------------------------
> Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3720)
> 	at com.me.client.ServiceTestStub.getBeanBTab(ServiceTestStub.java:365)
> 	at com.me.client.ServiceTestClient.getBeanBTab(ServiceTestClient.java:61)
> 	at com.me.client.ServiceTestClientMain.main(ServiceTestClientMain.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub$BeanB$Factory.parse(ServiceTestStub.java:1304)
> 	at com.me.client.ServiceTestStub$GetBeanBTabResponse$Factory.parse(ServiceTestStub.java:3592)
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3714)
> 	... 3 more
> --------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-2179) Unexpected subelement & inheritance & attribute

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe resolved AXIS2-2179.
--------------------------------------

    Resolution: Fixed

fixed in current SVN

> Unexpected subelement & inheritance & attribute
> -----------------------------------------------
>
>                 Key: AXIS2-2179
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2179
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.1.1
>         Environment: Linux 2.6.12
> Jrockit 1.4.2
> weblogic 8.2
> Axis2 1.1.1
>            Reporter: Olivier DUGAST
>            Assignee: Deepal Jayasinghe
>            Priority: Blocker
>         Attachments: BeanUtil.java, ServiceTest.zip
>
>
> Hi all, 
> I try to use Axis2 with my service. One of my methods return a tab of BeanB class which extend an other BeanA class. But the SOAP response return only the attribute of BeanB without the attribute of BeanA as you can see below :
> ---- extract of wsdl -----
> ....
> <xs:element name="BeanB" type="ax21:BeanB" /> <xs:complexType name="BeanB"> <xs:sequence> <xs:element name="attributeA"
> nillable="true" type="xs:string" /> <xs:element name="attributeB"
> nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> ...
> <xs:element name="getBeanBTabResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element maxOccurs="unbounded" name="return" nillable="true"
> type="ns0:BeanB" /> </xs:sequence> </xs:complexType> </xs:element> ...
> --------------------------
> ---- SOAP request ---- 
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <getBeanBTab />
>   </soapenv:Body>
> </soapenv:Envelope>
> -----------------------------
> ---- SOAP response of getBeanBTab webmethod  without attribute A ----- 
> <?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <ns:getBeanBTabResponse xmlns:ns="http://server.me.com/xsd">
>       <ns:return>
>         <attributeB xmlns="http://bean.service.server.me.com/xsd">attrB
> BeanB</attributeB>
>       </ns:return>
>     </ns:getBeanBTabResponse>
>   </soapenv:Body>
> </soapenv:Envelope>
> --------------------------------------------------
> When i try to invoke the method "getBeanBTab" as you can see above, no attributeA return , i catch this Exception :
> --- stack trace -------------------------------------------
> Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3720)
> 	at com.me.client.ServiceTestStub.getBeanBTab(ServiceTestStub.java:365)
> 	at com.me.client.ServiceTestClient.getBeanBTab(ServiceTestClient.java:61)
> 	at com.me.client.ServiceTestClientMain.main(ServiceTestClientMain.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub$BeanB$Factory.parse(ServiceTestStub.java:1304)
> 	at com.me.client.ServiceTestStub$GetBeanBTabResponse$Factory.parse(ServiceTestStub.java:3592)
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3714)
> 	... 3 more
> --------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2179) Unexpected subelement & inheritance & attribute

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481487 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-2179:
-----------------------------------------------------

Can you try out with an axis2 SNAPSHOT nighltly build. I fixed a similar kind of bug in Axis2 1.1.1

> Unexpected subelement & inheritance & attribute
> -----------------------------------------------
>
>                 Key: AXIS2-2179
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2179
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.1.1
>         Environment: Linux 2.6.12
> Jrockit 1.4.2
> weblogic 8.2
> Axis2 1.1.1
>            Reporter: Olivier DUGAST
>         Assigned To: Amila Chinthaka Suriarachchi
>         Attachments: ServiceTest.zip
>
>
> Hi all, 
> I try to use Axis2 with my service. One of my methods return a tab of BeanB class which extend an other BeanA class. But the SOAP response return only the attribute of BeanB without the attribute of BeanA as you can see below :
> ---- extract of wsdl -----
> ....
> <xs:element name="BeanB" type="ax21:BeanB" /> <xs:complexType name="BeanB"> <xs:sequence> <xs:element name="attributeA"
> nillable="true" type="xs:string" /> <xs:element name="attributeB"
> nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> ...
> <xs:element name="getBeanBTabResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element maxOccurs="unbounded" name="return" nillable="true"
> type="ns0:BeanB" /> </xs:sequence> </xs:complexType> </xs:element> ...
> --------------------------
> ---- SOAP request ---- 
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <getBeanBTab />
>   </soapenv:Body>
> </soapenv:Envelope>
> -----------------------------
> ---- SOAP response of getBeanBTab webmethod  without attribute A ----- 
> <?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <ns:getBeanBTabResponse xmlns:ns="http://server.me.com/xsd">
>       <ns:return>
>         <attributeB xmlns="http://bean.service.server.me.com/xsd">attrB
> BeanB</attributeB>
>       </ns:return>
>     </ns:getBeanBTabResponse>
>   </soapenv:Body>
> </soapenv:Envelope>
> --------------------------------------------------
> When i try to invoke the method "getBeanBTab" as you can see above, no attributeA return , i catch this Exception :
> --- stack trace -------------------------------------------
> Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3720)
> 	at com.me.client.ServiceTestStub.getBeanBTab(ServiceTestStub.java:365)
> 	at com.me.client.ServiceTestClient.getBeanBTab(ServiceTestClient.java:61)
> 	at com.me.client.ServiceTestClientMain.main(ServiceTestClientMain.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub$BeanB$Factory.parse(ServiceTestStub.java:1304)
> 	at com.me.client.ServiceTestStub$GetBeanBTabResponse$Factory.parse(ServiceTestStub.java:3592)
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3714)
> 	... 3 more
> --------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2179) Unexpected subelement & inheritance & attribute

Posted by "Olivier DUGAST (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481544 ] 

Olivier DUGAST commented on AXIS2-2179:
---------------------------------------



I get http://people.apache.org/dist/axis2/nightly/Axis2.war ( 16 mars 2007 00:30 )
The war don't works.

I will try next nightly build.

Regards, 
Olivier.
 

-----Message d'origine-----
De : Amila Chinthaka Suriarachchi (JIRA) [mailto:jira@apache.org] 
Envoyé : vendredi 16 mars 2007 06:56
À : Olivier DUGAST
Objet : [jira] Commented: (AXIS2-2179) Unexpected subelement & inheritance & attribute


    [ https://issues.apache.org/jira/browse/AXIS2-2179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481487 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-2179:
-----------------------------------------------------

Can you try out with an axis2 SNAPSHOT nighltly build. I fixed a similar kind of bug in Axis2 1.1.1


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



> Unexpected subelement & inheritance & attribute
> -----------------------------------------------
>
>                 Key: AXIS2-2179
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2179
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.1.1
>         Environment: Linux 2.6.12
> Jrockit 1.4.2
> weblogic 8.2
> Axis2 1.1.1
>            Reporter: Olivier DUGAST
>         Assigned To: Amila Chinthaka Suriarachchi
>         Attachments: ServiceTest.zip
>
>
> Hi all, 
> I try to use Axis2 with my service. One of my methods return a tab of BeanB class which extend an other BeanA class. But the SOAP response return only the attribute of BeanB without the attribute of BeanA as you can see below :
> ---- extract of wsdl -----
> ....
> <xs:element name="BeanB" type="ax21:BeanB" /> <xs:complexType name="BeanB"> <xs:sequence> <xs:element name="attributeA"
> nillable="true" type="xs:string" /> <xs:element name="attributeB"
> nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> ...
> <xs:element name="getBeanBTabResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element maxOccurs="unbounded" name="return" nillable="true"
> type="ns0:BeanB" /> </xs:sequence> </xs:complexType> </xs:element> ...
> --------------------------
> ---- SOAP request ---- 
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <getBeanBTab />
>   </soapenv:Body>
> </soapenv:Envelope>
> -----------------------------
> ---- SOAP response of getBeanBTab webmethod  without attribute A ----- 
> <?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>   <soapenv:Header />
>   <soapenv:Body>
>     <ns:getBeanBTabResponse xmlns:ns="http://server.me.com/xsd">
>       <ns:return>
>         <attributeB xmlns="http://bean.service.server.me.com/xsd">attrB
> BeanB</attributeB>
>       </ns:return>
>     </ns:getBeanBTabResponse>
>   </soapenv:Body>
> </soapenv:Envelope>
> --------------------------------------------------
> When i try to invoke the method "getBeanBTab" as you can see above, no attributeA return , i catch this Exception :
> --- stack trace -------------------------------------------
> Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3720)
> 	at com.me.client.ServiceTestStub.getBeanBTab(ServiceTestStub.java:365)
> 	at com.me.client.ServiceTestClient.getBeanBTab(ServiceTestClient.java:61)
> 	at com.me.client.ServiceTestClientMain.main(ServiceTestClientMain.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement attributeB
> 	at com.me.client.ServiceTestStub$BeanB$Factory.parse(ServiceTestStub.java:1304)
> 	at com.me.client.ServiceTestStub$GetBeanBTabResponse$Factory.parse(ServiceTestStub.java:3592)
> 	at com.me.client.ServiceTestStub.fromOM(ServiceTestStub.java:3714)
> 	... 3 more
> --------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org