This week's giveaway is in the Spring forum.
We're giving away four copies of Microservices Testing (Live Project) and have Chris Love & Andres Sacco on-line!
See this thread for details.
Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Why is my WS expecting a XMLGregorianCalendar datatype?

Ranch Hand
Posts: 37
IntelliJ IDE Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone!

I wrote a method for one of my web services that has to two Date input parameters. From my client, when I try to access this method I get an error stating the following...

required: java.lang.Long,javax.xml.datatype.XMLGregorianCalendar,javax.xml.datatype.XMLGregorianCalendar
found: java.lang.Long,java.util.Date,java.util.Date

Here is my Interface...

Here is my class...

Why is it expecting/wanting a javax.xml.datatype.XMLGregorianCalendar instead of a java.util.Date?
    Bookmark Topic Watch Topic
  • New Topic