Open charlesmoore99 opened 6 years ago
Possible work around.
Add the following dependencies to whatever project you're using the bindings on...
<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.glassfish.jaxb/jaxb-core -->
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.googlecode.jaxb-namespaceprefixmapper-interfaces/JAXBNamespacePrefixMapper -->
<dependency>
<groupId>com.googlecode.jaxb-namespaceprefixmapper-interfaces</groupId>
<artifactId>JAXBNamespacePrefixMapper</artifactId>
<version>2.2.4</version>
</dependency>
Then implement a com.sun.xml.bind.marshaller.NamespacePrefixMapper that covers whatever namespace URIs are causing trouble.
I'm not entirely certain that this is the correct place to post this issue. If it isn't, please direct me to the proper venue.
There are two methods that accept data of type ANY in an SOS 2.0 Insert Observation document.
Via the JaxB API they are accessed by:
The namespace prefixes of these elements are being corrupted when they are marshalled.
Example (with an excessive number of namespaces): Consider the below SOS2 InsertObservation document...