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 "clint dovholuk (JIRA)" <ax...@ws.apache.org> on 2005/11/14 15:21:28 UTC

[jira] Updated: (AXIS-2302) Failure to add xsi:type information on returned object

     [ http://issues.apache.org/jira/browse/AXIS-2302?page=all ]

clint dovholuk updated AXIS-2302:
---------------------------------

    Attachment: axis_test.jar

The attached jar contains a wsdl and the generated classes (via WSDL2Java using: java -cp %classpath% org.apache.axis.wsdl.WSDL2Java -paxistest axis_test.wsdl -v -s).  It is just an echo Test where the object that is input is returned.

on the first method, the one which returns an abstract object, works as expected.  however if the abstract object is embedded within another concrete object the "child" does not serialize correctly.  

using this as input:
    <?xml version="1.0" encoding="utf-16"?>
    <soap:Envelope
        xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     <soap:Body>
        <echoWrappedObject xmlns="http://test.com">
          <echoWrappedObjectInput>
            <wrappedObject xsi:type="ConcreteObject">
              <testString>asdf</testString>
            </wrappedObject>
          </echoWrappedObjectInput>
        </echoWrappedObject>
      </soap:Body>
    </soap:Envelope>

i get this xml back: 
    <?xml version="1.0" encoding="utf-16"?>
    <soapenv:Envelope 
      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
      xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
        <echoWrappedObjectResponse xmlns="http://test.com">
          <echoWrappedObjectReturn>
            <wrappedObject />
          </echoWrappedObjectReturn>
        </echoWrappedObjectResponse>
      </soapenv:Body>
    </soapenv:Envelope>

where i'd expect the wrappedObject to be of "xsi:type=ConcreteObject" as in the input.

Please let me know if this is not enough information.

Thanks,
-Clint

> Failure to add xsi:type information on returned object
> ------------------------------------------------------
>
>          Key: AXIS-2302
>          URL: http://issues.apache.org/jira/browse/AXIS-2302
>      Project: Apache Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.3
>  Environment: win xp, resin app server, env run via eclipse
>     Reporter: clint dovholuk
>  Attachments: axis_test.jar
>
> When returning an object which contains abstract types, xsi:type, the concrete class is not serialized correcly.
> Attachment to follow

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira