XINS -
Migration from XINS 2.3 to XINS 3.0
Introduction
XINS 3.0 is not directly compatible with XINS 2.3.
The main reason is a simplification of the API.
Most of the changes to make your code work with 3.0 is by doing replacements
Replacements
- Replace PropertyReader with Map<String, String>.
- Replace org.xins.common.xml.Element with org.w3c.dom.Element
You may want to use org.xins.common.xml.ElementList to help you.
- Replace ipAddress() with backpack().get(BackpackConstants.IP).
- Replace Calling convertion protected void convertResultImpl(FunctionResult xinsResult,
HttpServletResponse httpResponse,
HttpServletRequest httpRequest) with
protected void convertResultImpl(FunctionResult xinsResult,
HttpServletResponse httpResponse,
Map<String, Object> backpack).
You can look at the XINS calling conventions for some examples.
- For custom calling convention, the FunctionRequest has changed of constructor arguments
from String, PropertyReader, org.xins.xml.Element to String, Map<String, String>, org.w3c.dom.Element
- Remove DTD validation from logdoc xml files
- Add the attributes domain and public to the log element.
- For the XML, the method Element.getAttribute() returns a empty string instead of null now. Note that the Java Element class has a hasAttribute() method.