Dear Axis(2) developers,
I create a client stub from a WSDL2.0 file.
I encountered two problems.
The first is that the code throws errors when it parses the returned response
from the REST service.
I have traced it down to ADBBeanTemplate-bean.xsl and produced a patch that
makes my sample running:
2466a2467
> if (reader.isEndElement()) reader.next();
I think there is an error because the parser() function checks after the first
parsed element:
while (!reader.isStartElement() && !reader.isEndElement())
reader.next()
Which stops at the endElement of the parsed element and does not advance to the
next startElement (that's what the patch introduces).
Since I am new to the WSDL2.0 processing I cannot compare it to previous
versions. Could you please have a look and see if my suggestion makes sense?
The second one is more a feature request.
The JSON that is returned by the REST service I am using does not contain any
namespace information.
Jettison provides a way of telling it what to set as the default namespace. I
have modified JSONDataSource.java where the method was already called, line 51,
instead of declaring an empty map
XMLToJSNNamespaceMap.put("", "");
I now pass my default namespace:
XMLToJSNNamespaceMap.put("http://my.namespace", "");
Would you accept a request to add maybe a property in axis2.xml to define a
default namespace that would be consumed by JSONDataSource?
I have browsed to see if jettison supports some kind of dynamic namespace
mapping through properties files but could not find anything.
I don't know the overall structure of the Axis2 code base good enough to go any
further with this suggestion.
Many thanks for your support!
Best regards,
Roman
IMPORTANT - CONFIDENTIALITY NOTICE - This e-mail is intended only for the use
of the individual or entity shown above as addressees . It may contain
information which is privileged, confidential or otherwise protected from
disclosure under applicable laws . If the reader of this transmission is not
the intended recipient, you are hereby notified that any dissemination,
printing, distribution, copying, disclosure or the taking of any action in
reliance on the contents of this information is strictly prohibited. If you
have received this transmission in error, please immediately notify us by reply
e-mail or using the address below and delete the message and any attachments
from your system . Amadeus Data Processing GmbH Gesch?ftsf?hrer: Dr. Wolfgang
Krips Sitz der Gesellschaft: Erding HR M?nchen 48 199 Berghamer Strasse 6 85435
Erding Germany