I have blogged before about how to generate JAXB binding classes based on your WSDL file, this time I wanted to generate JAXB classes based on just XSD files. Although I expected this to be simple, it took me quite some time to get it right, so I decided to give this item its own post :-)
Continue reading…
While performing the load test of our web service (of course with my favourite tool SoapUI) I was getting some errors when I used a number of threads at a time to call my service. Most error messages were related to an invalid XML format of the incoming message. I was told this probably had something to do with SoapUI (that would be the first drawback with it…). When multiple threads are used in SoapUI to sent the messages, they somehow would get mixed up and invalid SOAP messages were sent. So I was told.
Continue reading…
So far I have worked a lot with Java and XML but mostly with the DOM parser. For my current project I had to split a big XML document into smaller ‘messages’ and put these small messages on a queue. Well, if you have the same experience as I do with DOM then you know that that is not going to work without a lot of available memory. So that’s why I chose a SAX parser and to be more specific a StAX parser.
Continue reading…
Although JDK5 is available for quite some time I just recently used the builtin ‘XPath’ functionality. I wanted to check if a certain WSDL file contained certain tags and if the message style was set to ‘Document’ and not ‘RPC’. Now this seemed as a great oppertunity to use the XPath object so I started with the following code.
(Please note that this code is just for showing my issue, this is not how I actually would make it
). The base for this code I found here.
Continue reading…