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

donald yang updated AXIS2-2253:
-------------------------------

    Description: 
I found the AXIS2 can not correctly map the following java data type to 
correpsonding xml data type in the generated WSDL. It considers them as complex 
type and further serializes their fields(see attachment wsdl).

java.math.BigDecimal;
java.math.BigInteger;
javax.xml.namespace.QName;

org.apache.axis.types.Day;
org.apache.axis.types.Duration;
org.apache.axis.types.Month;
org.apache.axis.types.MonthDay;
org.apache.axis.types.NegativeInteger;
org.apache.axis.types.NonNegativeInteger;
org.apache.axis.types.NonPositiveInteger;
org.apache.axis.types.PositiveInteger;
org.apache.axis.types.Time;
org.apache.axis.types.UnsignedByte;
org.apache.axis.types.UnsignedInt;
org.apache.axis.types.UnsignedLong;
org.apache.axis.types.UnsignedShort;
org.apache.axis.types.Year;
org.apache.axis.types.YearMonth;

If I still consider them as corresponding xml data type not a customized 
complex type, and send the value with corresponding format, for example, 
"---12" for Day, one exception will be thrown (see the attached file, "SOAP 
message for echoDay function.txt") . It seems that axis2 can not correctly 
marshall and unmarshall these objects. 

  was:
I found the AXIS2 can not correctly map the following java data type to 
correpsonding xml data type in the generated WSDL. It considers them as complex 
type and further serializes their fields(see attachment wsdl).

java.math.BigDecimal;
java.math.BigInteger;
javax.xml.namespace.QName;

org.apache.axis.types.Day;
org.apache.axis.types.Duration;
org.apache.axis.types.Month;
org.apache.axis.types.MonthDay;
org.apache.axis.types.NegativeInteger;
org.apache.axis.types.NonNegativeInteger;
org.apache.axis.types.NonPositiveInteger;
org.apache.axis.types.PositiveInteger;
org.apache.axis.types.Time;
org.apache.axis.types.UnsignedByte;
org.apache.axis.types.UnsignedInt;
org.apache.axis.types.UnsignedLong;
org.apache.axis.types.UnsignedShort;
org.apache.axis.types.Year;
org.apache.axis.types.YearMonth;

If I still consider them as corresponding xml data type not a customized 
complex type, and send the value with corresponding format, for example, 
"---12" for Day, one exception will be thrown. It seems that axis2 can not 
correctly marshall and unmarshall these objects. 


> AXIS2 can not correctly map some java data type to corresponding xml data 
> type and can not marshall and unmarshall these object
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2253
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2253
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>            Reporter: donald yang
>         Assigned To: Deepal Jayasinghe
>         Attachments: SOAP message for echoDay function.txt, 
> TestCaseService.java, TestCaseService.xml
>
>
> I found the AXIS2 can not correctly map the following java data type to 
> correpsonding xml data type in the generated WSDL. It considers them as 
> complex type and further serializes their fields(see attachment wsdl).
> java.math.BigDecimal;
> java.math.BigInteger;
> javax.xml.namespace.QName;
> org.apache.axis.types.Day;
> org.apache.axis.types.Duration;
> org.apache.axis.types.Month;
> org.apache.axis.types.MonthDay;
> org.apache.axis.types.NegativeInteger;
> org.apache.axis.types.NonNegativeInteger;
> org.apache.axis.types.NonPositiveInteger;
> org.apache.axis.types.PositiveInteger;
> org.apache.axis.types.Time;
> org.apache.axis.types.UnsignedByte;
> org.apache.axis.types.UnsignedInt;
> org.apache.axis.types.UnsignedLong;
> org.apache.axis.types.UnsignedShort;
> org.apache.axis.types.Year;
> org.apache.axis.types.YearMonth;
> If I still consider them as corresponding xml data type not a customized 
> complex type, and send the value with corresponding format, for example, 
> "---12" for Day, one exception will be thrown (see the attached file, "SOAP 
> message for echoDay function.txt") . It seems that axis2 can not correctly 
> marshall and unmarshall these objects. 

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to