Re: [greenstone-users] Greenstone3 SOAP service errors:

From Steve Jones
DateTue, 26 Jun 2007 18:07:21 +1200
Subject Re: [greenstone-users] Greenstone3 SOAP service errors:
In-Reply-To (16359-144-120-8-37-1182825812-squirrel-webmail-scms-waikato-ac-nz)
> It seemed that an exception occured in those methods which could be
> any
> exception such as Null point exception etc (Greenstone3 suppressed
> those
> exceptions so that you only saw
> java.lang.reflect.InvocationTargetException


Thanks for the reply.
I managed to get to the point of seeing the real exceptions and
working around them yesterday.

It was very confusing. For example processDocumentMetadataRetrieve
threw a type casting exception on this line

Element param = (Element) param_list.getFirstChild();

After much blood sweat and tears (including coding around this and
several similar problems) I think I have identified the root cause. I
still have to check this properly.

I believe that the SOAP envelope sent to the server (the XML string)
must NOT have spaces or line breaks between the elements.

Hence the manual is a little misleading!


Steve Jones
Associate Professor, Computer Science
University of Waikato
Private Bag 3105
Hamilton, New Zealand