Tuesday 30 September 2008

JAXB

I've been having problems with a JAXB based program which I'm making changes to - when marshalling the bean into the XML doc some of the elements were empty even though they were populated in the bean.
I thought I found the solution in this article http://java.sun.com/developer/technicalArticles/WebServices/jaxb/ which pointed me to use the javax.xml.bind.Validator class which showed that some of the data in the bean is invalid according to the schema however having fixed this it still wasn't working...

In the end I upgraded to JAXB 2 which sorted out the problem

Friday 12 September 2008

Axis SOAP Client problems

I've recently been attempting to connect to a Axis webservice using a PHP client and I've had problems where the Body has been returning empty - no fault just an empty body.
This can be solved by removing any line feeds from the request