You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by "Glaessl, Danilo" <da...@eds.com> on 2001/08/28 14:47:33 UTC

Another "Unable to resolve namespace URI for 'ns2'" problem - but different!

Hello everyone,

I'm currently working on my diploma thesis: "Distributed Object
Communication over SOAP". Therefore I am writing a serializer serializing
(almost) any object by saving all its fields to a hashtable. This is then
passed to Apache SOAP's HashtableSerializer. This is working well, but
there's the namespace URI problem when deserializing the hashtable. I want
the HashtableSerializer to deserialize the transferred hashtable and return
it to my serializer for further processing and rebuilding the original
object.
The error "Unable to resolve namespace URI for 'ns2'" occurs when the
HashtableSerializer tries to deserialize the hashtable. The according
unmarshall method within my serializer is:

	public Bean unmarshall(String inScopeEncStyle, QName elementType,
Node src, XMLJavaMappingRegistry xjmr, SOAPContext ctx)
		throws IllegalArgumentException
	{
		HashtableSerializer htSer = new HashtableSerializer();
		Hashtable ht = new Hashtable();

		ht = (Hashtable) (htSer.unmarshall(inScopeEncStyle,
elementType, src, xjmr, ctx)).value;

		return new Bean(Hashtable.class, ht);
	}

This is just a draft version, only trying to deserialize the hashtable. But
this goes wrong as I mentioned. I was first using Tomcat 3.2.2 and Xerces
1.4.1. When the error occurred I upgrade Tomcat to 3.2.3 and tried Xerces
1.4.3, 2.0.0b2, and 1.3.0. Without any success!
What is going wrong? Can anyone help me?

Danilo