axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnout Engelen <>
Subject Setting a default namespace for responses
Date Tue, 26 Aug 2008 10:44:46 GMT

I'm calling a webservice that returns XML elements without a namespace.

Is there any way I can specify a default namespace to use when none is
specified in the returned XML? Now I get a:

  Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement lfm
	at gennedservice.GeoStub$Lfm$Factory.parse(

because the following check fails:

  new javax.xml.namespace.QName("http://net/bzzt/lastfmlib/model/geo/getEvents","lfm").equals(reader.getName())

which is because the namespace of the element in the reader is 'null'.

Kind regards,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message