Stream: implementers
Topic: Getting Error while generating the XSD from java class
Suraj Kadam (May 09 2017 at 04:26):
Hi All,
I am generating the XSD from Extended java class, to do this am following below steps:
Right click on .java file.
WebServices->Generate XML Schema from java using JAXB.
But getting below Schema gen error:
"org.hl7.fhir.instance.model.api.IBaseResource is an interface, and JAXB can't handle interfaces."
Please help to solve this error.
Or How can i share the java class schema to dot net application.
Thanks
Suraj
Lloyd McKenzie (May 09 2017 at 06:10):
Are you aware that FHIR already publishes schemas for FHIR? I'm not sure why you'd try to generate them from the reference implementations. The reference implementations aren't really designed with that in mind and wouldn't necessarily produce something that would properly validate FHIR instances
Last updated: Apr 12 2022 at 19:14 UTC