axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Y A (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-4589) wsdl2java uses java primitives for the xsd primitives
Date Tue, 01 Feb 2011 16:00:29 GMT

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

Y A commented on AXIS2-4589:
----------------------------

How can i use the -Euwc  with Maven plugin?
what do i write in the pom.xml?

> wsdl2java uses java primitives for the xsd primitives
> -----------------------------------------------------
>
>                 Key: AXIS2-4589
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4589
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: nightly
>            Reporter: oit
>            Priority: Minor
>
> The type mapping for wsdl2java is wrong. 
> The XSD primitives are mapped to the java primitives. So it is not possible to transport
a null or nil value between the client and the server.
> Here is my suggested patch for file "modules/adb-codegen/src/org/apache/axis2/schema/typemap/JavaTypeMap.java":
>       addTypemapping(SchemaConstants.XSD_BOOLEAN, Boolean.class.getName());
>       addTypemapping(SchemaConstants.XSD_DOUBLE, Double.class.getName());
>       addTypemapping(SchemaConstants.XSD_FLOAT, Float.class.getName());
>       addTypemapping(SchemaConstants.XSD_INT, Integer.class.getName());
>       addTypemapping(SchemaConstants.XSD_LONG, Long.class.getName());
>       addTypemapping(SchemaConstants.XSD_SHORT, Short.class.getName());
>       addTypemapping(SchemaConstants.XSD_BYTE, Byte.class.getName());
> This works fine for me.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message