axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Daniels (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-2564) Wrong type mapping for java.lang.Long
Date Mon, 11 Jun 2007 18:43:26 GMT

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

Glen Daniels updated AXIS2-2564:
--------------------------------

    Fix Version/s: 1.3

> Wrong type mapping for java.lang.Long
> -------------------------------------
>
>                 Key: AXIS2-2564
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2564
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>            Reporter: Eugeniy Nizhinskiy
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>             Fix For: 1.3
>
>
> 1. Wrong java2wsdl mapping occurs when try to use java.lang.Long types in web service.
> java.lang.Long mappes to long instead of nilable long.
> 2. Problem with complex types. If we use long (not java.lang.Long) as in/out parameter
in web service methods java2wsdl mappes it as nilable. But if we use in/out complex type with
long field we will get not nilable in wsdl. 
> Example:
> From the following classes java2wsdl generates wrong WSDL.
> [BatchManagerService.java]
> package x4444;
> public class BatchManagerService {
>     
>     public x4444.Person getPerson(java.lang.Long personINTN)
> 	{
> 	return null;
> 	};
>     public x4444.Person getPersonSimple(long personSIMPLEINTN)
> 	{
> 	return null;
> 	};
> }
> [Person.java]
> package x4444;
> public class Person {
>     public java.lang.Long getLong(){return null;};
>     public long getSimpleLong(){return 0;};
> }
> <xs:element name="getPerson">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="personINTN" nillable="true" type="xs:long" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="getPersonResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="return" nillable="true" type="ns:Person" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="Person" type="ns:Person" />
> <xs:complexType name="Person">
> <xs:sequence>
> <xs:element name="long" type="xs:long" />
> <xs:element name="simpleLong" type="xs:long" />
> </xs:sequence>
> </xs:complexType>
> <xs:element name="getPersonSimple">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="personSIMPLEINTN" nillable="true" type="xs:long" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="getPersonSimpleResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="return" nillable="true" type="ns:Person" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message