highsource / ogc-schemas

XML<->Java and XML<->JS for OGC XSDs.
BSD 2-Clause "Simplified" License
82 stars 49 forks source link

Error when marshaling wps LiteralValue #189

Open ryeats opened 7 years ago

ryeats commented 7 years ago

Getting this error when marshaling WPS 2.0 LiteralValue objects:

Instance of "net.opengis.wps.v_2_0.LiteralValue" is substituting "net.opengis.ows.v_2_0.ValueType", but "net.opengis.wps.v_2_0.LiteralValue" is bound to an anonymous type.. Instance of "net.opengis.wps.v_2_0.LiteralValue" is substituting "net.opengis.ows.v_2_0.ValueType", but "net.opengis.wps.v_2_0.LiteralValue" is bound to an anonymous type..

Looking at the generated code for LiteralValue it has a @XmlType(name = "") which is causing the issue and seems to be coming from the nested complexType.

ryeats commented 7 years ago

Created a PR with a proposed fix https://github.com/highsource/ogc-schemas/pull/190