Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

problem sending XML primitive type gMonth (the request ends up null on server) #1114

@glassfishrobot

Description

@glassfishrobot

The MarshallDateTime test sends/receives from client and server all the XML Schema DateTime types like: time, date, gYearMonth, gYear, gMonthDay, gDay, gMonth. The only 1 that fails is the gMonth type.

When sending the request from the client to the server, the request is populated fine with XMLGregorianCalendar type for gMonth but when it is received on the server it is always null and the server sends back what it receives (null) in this case and the tests fails during comparison.

[javatest.batch] 05-10-2013 07:33:51: MarshallDateTimeTest(GMonthTest)
[javatest.batch] 05-10-2013 07:33:51: Passing/Returning Time class to/from JAXWS Service
[javatest.batch] request.getValue()=0006-05-01T10:00:00.000Z
[javatest.batch] response.getResult()=null
[javatest.batch] JAXWS_Data:compareDate
[javatest.batch] Failed comparison

This does not happen with the other types. For instance here is gDay test:

[javatest.batch] 05-10-2013 07:33:51: MarshallDateTimeTest(GDayTest)
[javatest.batch] 05-10-2013 07:33:51: Passing/Returning Time class to/from JAXWS Service
[javatest.batch] request.getValue()=0006-05-01T10:00:00.000Z
[javatest.batch] response.getResult()=---01Z
[javatest.batch] JAXWS_Data:compareDate
[javatest.batch] Expected
[javatest.batch] JAXWS_Data:dumpDate
[javatest.batch] - 1
[javatest.batch] Received
[javatest.batch] JAXWS_Data:dumpDate
[javatest.batch] - 1

Sample wsdl

.
.
.







Sample schema

#### Affected Versions [2.2.8]

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions