[ 
https://issues.apache.org/jira/browse/AXIS2-4117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

juergen schad updated AXIS2-4117:
---------------------------------

    Description: 
We are using jaxb-databinding and unmarshalling of requests fails during 
processing of nodes with 
abstract base-classes. Unmarshalling of types with complexContent works fine 
but unmarshalling of types 
with simpleContent doesn't work at all. The attached example-wsdl and this 
sample request shows the problem. 


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
                  xmlns:tst="http://anywhere.nowhere.de/tst"; 
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
                  xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > 

   <soapenv:Header/>
   <soapenv:Body>
      <tst:getTestMessage>
         <tst:testMember xsi:type="tst:CT_TestDerived">
            <tst:Test xsi:type="tst:STE_TestDefault">02</tst:Test>
         </tst:testMember>
      </tst:getTestMessage>
   </soapenv:Body>

</soapenv:Envelope>


Unmarshalling of the tst:testMember-node suceeds, the given xsi-type is used to 
create an instance of the matching type. 
Unmarshalling of the tst:Test-node fails, the given xsi-type is ignored and the 
instantiation of the abstract baseclass STE_TestAbstract 
fails with an InstantiationError






  was:
We are using jaxb-databinding and unmarshalling of requests fails during 
processing of nodes with 
abstract base-classes. Unmarshalling of types with complexContent works fine 
but unmarshalling of types 
with simpleContent doesn't work at all. The attached example-wsdl and this 
sample request shows the problem. 

{noformat}
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
                  xmlns:tst="http://anywhere.nowhere.de/tst"; 
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
                  xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > 

   <soapenv:Header/>
   <soapenv:Body>
      <tst:getTestMessage>
         <tst:testMember xsi:type="tst:CT_TestDerived">
            <tst:Test xsi:type="tst:STE_TestDefault">02</tst:Test>
         </tst:testMember>
      </tst:getTestMessage>
   </soapenv:Body>

</soapenv:Envelope>
{noformat}

Unmarshalling of the tst:testMember-node suceeds, the given xsi-type is used to 
create an instance of the matching type. 
Unmarshalling of the tst:Test-node fails, the given xsi-type is ignored and the 
instantiation of the abstract baseclass STE_TestAbstract 
fails with an InstantiationError







> InstantiationError using abstract types
> ---------------------------------------
>
>                 Key: AXIS2-4117
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4117
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.4.1
>         Environment: axis 1.41, jdk 1.5.0_16
>            Reporter: juergen schad
>            Priority: Critical
>
> We are using jaxb-databinding and unmarshalling of requests fails during 
> processing of nodes with 
> abstract base-classes. Unmarshalling of types with complexContent works fine 
> but unmarshalling of types 
> with simpleContent doesn't work at all. The attached example-wsdl and this 
> sample request shows the problem. 
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
>                   xmlns:tst="http://anywhere.nowhere.de/tst"; 
>                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
>                   xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > 
>    <soapenv:Header/>
>    <soapenv:Body>
>       <tst:getTestMessage>
>          <tst:testMember xsi:type="tst:CT_TestDerived">
>             <tst:Test xsi:type="tst:STE_TestDefault">02</tst:Test>
>          </tst:testMember>
>       </tst:getTestMessage>
>    </soapenv:Body>
> </soapenv:Envelope>
> Unmarshalling of the tst:testMember-node suceeds, the given xsi-type is used 
> to create an instance of the matching type. 
> Unmarshalling of the tst:Test-node fails, the given xsi-type is ignored and 
> the instantiation of the abstract baseclass STE_TestAbstract 
> fails with an InstantiationError

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to