axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srinath Perera <hemap...@gmail.com>
Subject Re: [Axis2] Namespace serialization problem
Date Thu, 16 Dec 2004 04:31:45 GMT
On Thu, 16 Dec 2004 10:09:50 +0600, Eran Chinthaka
<chinthaka@opensource.lk> wrote:
> 
> >>
> >>Hi all,
> >>When I was writing the serializers I came across the following
> >>problems (they are not actually problems but kind of confusing areas
> >>!) I am talking about serializing OM to TEXT!
> >>Anyway here is the problem.
> >>When you create the OMnodes in a jdom like manner (where there is no
> >>restriction to construction, you can just say new Node()) the
> >>namespace declarations get into a mess! Have a look at the following
> >>piece of code.(BTW this is an actual piece of code from a test class)
> >>
> >>  OMNamespace omNs = fac.createOMNamespace("http://localhost/my","my");
> >>  OMElement method =  fac.createOMElement("echoOMElement",omNs) ;
> >>  OMElement value =  fac.createOMElement("myValue",omNs) ;
> >>  value.setValue("Isaac Assimov, the foundation Sega");
> >>  method.addChild(value);
> >>
> 
> [Chinthaka] Wait a minute. I think createOMNamespace method should not be
> there in the Factory.
> It should only be in the OMElement interface.
> 
> I think that will solve the problem.
> 
> (BTW : Did I put the createOMNamespace in factory. If yes, I've done
> something wrong. But I can't remember me doing that :()

I is there .. remove it :) it slove the pro I think :)

Mime
View raw message