In the last post we were able to map complex xml elements to classes. However it is recommended to build complex types and associate them to elements.
Learning the code way
A small step towards sharing what I have learned on the job.
Thursday, 16 May 2013
Wednesday, 15 May 2013
JAXB and Complex types
In the previous post we saw how JAXB generated JAXBElement instances from simple types. Simple types however are just that - simple (!!!)
We often need our elements to allows attributes, include child elements etc. These cannot be achieved using simple types. We need to create complex types for the same.
We often need our elements to allows attributes, include child elements etc. These cannot be achieved using simple types. We need to create complex types for the same.
Monday, 13 May 2013
JAXB and simple elements
In the past few weeks I have been working with web-services. So exposure to xml and xsd was inevitable. I had used xsd a while back and so I needed a revision of some of those topics. I decided to do a quick summary of some of the options available in xsd and how JAXB works with them
Friday, 10 May 2013
instanceof operator and equals method
I always based my equals implementation on the code written in the String class.
Tuesday, 7 May 2013
Contract First web service with CXF
In the post on Spring web services, I had used a contract first approach for development. This being the only style supported by Spring.
JAX-WS and also CXF on the other hand support both code first and contact first approaches.
I decided to use the same wsdl file from my Spring post:
JAX-WS and also CXF on the other hand support both code first and contact first approaches.
I decided to use the same wsdl file from my Spring post:
Subscribe to:
Posts (Atom)