axis-java-user mailing list archives

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

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(GeoStub.java:1319)

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,

Arnout

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message