You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Susantha Kumara <su...@opensource.lk> on 2004/06/23 14:54:19 UTC
Re: There is a Known Issue in xsd:any DeSerializer - Need new
method getPrefix4NS() in the Parser
Hi Amila,
I had a look at the code you posted (diff, samples etc) and It seems
that to support xsd:any we need 2 more API functions in XMLParser
interface like following.
/* Returns the prefix for a given Namespace */
const char* getPrefix4NS(const char* pchNS);
/* Similar to next() but returns all events including whitespaces and
prefix mapping events */
const AnyElement* nextEvent();
Shall we add these API functions to the CVS so that we can have xsd:any
support in 1.2 Beta release next week ?.
If there is no any objections or alternative suggestions I will add
these API functions and improve the Expat and Xerce wrappers.
Thanks,
Susantha.
On Tue, 2004-06-22 at 17:34, Amila Rathnayake wrote:
> Hi All,
>
>
>
> I have sent the Serializer and DeSerializer for xsd:any type in
> wsdl’s.
>
>
>
> But, in the DeSerializer there is a known issue / bug. The
> DeSerializer was written for xsd:any type in the way once Susantha has
> suggested. But within the serializeTag() method in the DeSerializer it
> needs a way to get the namespace prefix for given namespace URI which
> is not there in the parser.
>
>
>
> But in both the XMLParserExpat.cpp and XMLParserXerces.cpp there is a
> method called getNS4Prefix(const XML_Ch* prefix) to get the namespace
> for given namespace prefix.
>
>
>
> So it needs to add a method into the XMLParser.h which is the base
> class for both XMLParserExpat.cpp and XMLParserXerces.cpp to return
> the namespace prefix for given namespace URI, which works in the other
> way round as getNS4Prefix().
>
>
>
> There is no other way to serialize the inner tags within xsd:any type
> in DeSerializer unless we add this functionality to the parser.
>
>
>
> Let’s discuss this issue and suggest a better answer.
>
>
>
> Thanks and Regards,
>
> Amila Rathnayake.
>
>
>
>
>
> ______________________________________________________________________
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!