axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Caslavsky (JIRA)" <>
Subject [jira] Created: (AXIS2-3678) Type inheritance does not work with JAXBRI
Date Fri, 28 Mar 2008 13:42:24 GMT
Type inheritance does not work with JAXBRI

                 Key: AXIS2-3678
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: databinding
    Affects Versions: 1.3
         Environment: JDK 1.5
            Reporter: Martin Caslavsky
         Attachments: example.wsdl

Type inheritance does not work with JAXBRI

Code generated using the following settings from the attached WSDL:

The following code
Example z = new ExampleStub("http://localhost:8888/axis2/services/Example");
MetodaInput m = new MetodaInput();
m.setTest("test string");
Child ch = new Child();

renders this incorrect SOAP (child type and "s" field are lost):
<soapenv:Body><metoda xmlns=""><test>test string</test><par><i>19</i></par></metoda></soapenv:Body>

while correct would be:
<soapenv:Body><metoda xmlns=""><test>test string</test><par
xmlns:xsi="" xsi:type="child"><i>19</i><s>child</s></par></metoda></soapenv:Body>

The problem could be in JAXBContext creation in Stub:
jc = javax.xml.bind.JAXBContext.newInstance(org.example.MetodaInput.class);

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:
For additional commands, e-mail:

View raw message