axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuval (JIRA)" <>
Subject [jira] Commented: (AXIS2-3331) wrong codegen for anytype
Date Tue, 13 Nov 2007 13:27:50 GMT


Yuval commented on AXIS2-3331:

Maybe I had cached files from Axis2-1.3 when I used SNAPSHOT?!? It doesn't make sense.

Anyway, the code from today's SNAPSHOT (Nov 13) generates the following line:
However, ConverterUtil.getAnyTypeObject() only knows about primitive types. It does not call
the generated ExtensionMapper.

I get:
Caused by: org.apache.axis2.databinding.ADBException: Unknown type ==> TaskInfo
	at org.apache.axis2.databinding.utils.ConverterUtil.getAnyTypeObject(
	at com.vmware.vim2.DynamicProperty$Factory.parse(
	... 6 more

> wrong codegen for anytype
> -------------------------
>                 Key: AXIS2-3331
>                 URL:
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3, nightly
>            Reporter: Yuval
>            Assignee: Amila Chinthaka Suriarachchi
> I'm trying to use Axis2 to access vmware webservices.
> Several problems arised with "anyType" code generation. Axis2 1.3 generated it as OMElement,
while the nightly snapshot of Nov 06, 2007 generated it as java.lang.Object.
> Object is wrong because the code will not even compile (it has no .serialize() method).
> OMElement is wrong because it ignores text nodes (string type), thus the "builder2.getOMElement().getFirstElement()"
generated call returns null.
> IMHO it should be generated as OMNode.
> xmlns:xsd=""
>  <complexType name="DynamicProperty">
>     <sequence>
>        <element name="name" type="xsd:string" />
>        <element name="val" type="xsd:anyType" />
>     </sequence>
>  </complexType>
> For reference, the full wsdl can be downloaded after free registration from
(VMware Infrastructure SDK Packages version 2.0.1). I'm using ant, but it should be identical
to the following call:
> java org.apache.axis2.wsdl.WSDL2Java -g -ss -ns2p urn:vim2=com.vmware.vim2,urn:vim2Service=com.vmware.vim2service
-u -uri vimService.wsdl

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