Igor's Blog

15-Mar-2017
Unmarshalling an XML fragment representing a JAXB object without XmlRootElement
I've recently had a requirement to unmarshal an XML fragment that was passed into one of my services. This in itself is typically not and issue and I've written code that does that plenty a time, however in this case I was having to unmarshal a fragment for a complex type, not for an element. That's where it got a little bit more complicated.
08-Mar-2017
Compiling the FHIR schema with XJC
I've written previously about fixing HL7 CDA schema compilation with XJC, now that I've been looking at FHIR it seems that there are name collisions in that schema too. The actual problem arises out of the W3C XHTML 1.0 Schema and not the FHIR schema per se.
03-Mar-2017
Generate JAXB jar from a Maven dependency that has multiple referenced schemas
I've been trying to get the maven-jaxb2-plugin to generate a JAXB jar out of XSDs that are stored inside a dependency that I have no control of. This was quite doable for a simple, single XSD Maven dependency that didn't import any other schemas, but when dealing with a more complex schema that did import multiple other XSDs from the same dependency jar, it didn't "just" work. After trying many approaches I found a solution however.
08-Jan-2016
WebLogic JAXB behaviour for XmlIDREF annotated attributes changes depending on whether a SOAPHandler is present
This issue had me stuck and I still don't know what is causing it. I've noticed that the JAXB behaviour for attributes that are annotated with @XmlIDREF changes based on whether the containing web service defines a SOAPHandler or not. This is all inside WebLogic 12.1.2.
05-Jan-2016
Generate XML Schema documentation the easy way with XS3P
I have to work with the CDA XML schema on a regular basis and sometimes it is easier to check things either via a tool that can visualise the schema or through hyperlinked documentation that describes the schema in a concise way. Unfortunately, as I found out, most tools can't handle a complex schema that has multiple cyclic references within it. So what's the solution? Use a tool that doesn't analyse the XSD! This is where xs3p comes in.
13-Nov-2015
Fixing the CDA schema compilation with xjc using a bindings file
If you're working with the CDA XML schema or one of it's derivatives like the Australian CDA Schema Extension and trying to use xjc to compile it into a set of usable Java classes you may be hitting this error...
11-Nov-2015
Compiling modular/dependent XML schemas using a catalog file and Maven
This is a quick guide to show how to use the maven-jaxb2-plugin to compile a schema that is dependent on another schema/module within the same set of Maven child projects while being able to build this schema separately as another Maven artefact.
08-Sep-2015
Resolving the 'XmlException: error: src-resolve.a: Could not find type' error in SoapUI
About a month after I posted an article with a similar error when generating a SoapUI project, I've come across this issue once more. The root cause for this one took longer to analyse, wasting a number of days pursuing the wrong lead, but eventually I found out what was causing it and how to fix it.
06-Aug-2015
SoapUI failing to create projects for web services using JAXB generated objects as return values
I've been working on moving all of our services at work away from WSDL first and towards the JWS file approach. I think that is a much cleaner way of going about writing web services, it certainly is a lot quicker. I've even written a post previously that shows an example build system that uses the JWSC weblogic task to build JWS file base services.
25-Jun-2015
JiBX fails to generate Java XML bindings for schemas with circular references
I wanted to compare how JiBX stacks against JAXB in terms of performance. From their website, they claim "It also provides very high performance, outperforming all other Java data binding tools across a wide variety of tests.". This sounded great, especially since I've identified that JAXB is a bottleneck. I downloaded JiBX 1.2.6 and proceeded to generate my bindings, only to find that it could not handle my schema.

Previous Post

Next Post

Programming, DIY, Games, Hacks, Tech and more.
Follow me on...
Current and Past Projects
See my Resume

Subscribe


RSS Feed

My Other Web Sites

Igor and Elise's Travels
Riverside Expressway Cam
300 George St Blogumentary

My Online Tools

UUID to OID Converter
Guru JSON-RPC Tester
Extrudifier Object Designer

Recent Blog Posts

Handling visibility of mobile only pop-over DIVs on a responsive web site

WebLogic package-name element classpath generator script

Using Jersey 2.x as a shared library on WebLogic 12.1.2

Google DFP with AdSense fallback is causing infinite scroll pages to go haywire

Workaround for Mobile Safari scrollTop() not updating during scroll

Skipping execution of Maven plugins that do not have a native skip option

Unmarshalling an XML fragment representing a JAXB object without XmlRootElement

Injecting a ContainerRequestContext into a Jersey entity provider class

Obfuscating PHP source code with Maven and YAK Pro PO

Making use of corner shelves with easy to make slide out draws

Recent Galleries

Space Food - Chocolate Ice Cream with Chocolate Chips

Legeod Star Wars AT-DP kit

DIY spare parts computer build with a RAIDMAX Anura case

Fake 'Lepin' brand Lego packaging

Hardwood garden bench with clear resin void filler

Fixing a 3D printer extruder that stopped heating up

Easily increase disk space in a Lenovo Ideapad 100S 14" laptop with an M.2 SSD

Making a multi-piece 3D printed solder spool holder stand

DIY indoor apartment grow light wiring

Good Friday Electronics fun Easter Bunny LED PCB Kit IBEABU-01.0

Top Categories

Blogs I follow

Matt Moores Blog
Georgi's FlatPress Guide
Perplexing Permutations
The Security Sleuth

Friends

RAWS Parts Online
Alpha Dimensions Hosting
Kristensen Photography
Ilia Rogatchevski
Travelling Fairy

Blog Activity

Blog Activity
Follow me on... 
     
...or subscribe for updates!

Don't show this again