xins 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map cc new...
TRANSCRIPT
![Page 1: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/1.jpg)
1
XINS 2.1 features
101 new features of XINS 2.1.
This presentation has 102 pages
![Page 2: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/2.jpg)
2
_xins-soap-map CC● New calling convention● Map request and response as done by the 'xins
wsdl-to-api' command● Useful for implementing an API according to a
given WSDL.● Can be extended in case the mapping doesn't
match what is expected.● Element attributes are mapped to sub elements.
● Namespaces are copied from the request.
![Page 3: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/3.jpg)
3
ACL for calling convention● Restrict request based on the calling convention
used.– Force users to use a specific calling convention (for example
for authentication).
– Exclude one specific calling convention.
org.xins.server.acl=allow 127.0.0.1/24 *;\deny 192.168.0.0/16 _ResetStatistics *;\allow 192.168.0.0/16 _* _xins-std;\allow 192.168.0.25 SimpleTypes;\allow 0.0.0.0/0 * _xins-soap
![Page 4: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/4.jpg)
4
Javadoc for error codes
● Added Javadoc of the error code exception to the call method of the CAPI.
![Page 5: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/5.jpg)
5
Ajax section in user guide
● Added new section in the user guide on how to integrate Ajax with XINS.
![Page 6: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/6.jpg)
6
Ant section in user guide
● Added new section in user guide on how to integrate Ant with XINS.
![Page 7: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/7.jpg)
7
Auto detection of WAR file
● Automatic detection of the location of the WAR file in the HTTPServletStarter when not passed as parameter.
![Page 8: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/8.jpg)
8
Bug fixes
● Several bug fixes.● The main ones are explained in this
presentation.
![Page 9: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/9.jpg)
9
Categories in OpenDocument
● Categories have been added in the generated OpenDocument format.
![Page 10: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/10.jpg)
10
ChainedMap cloneable and serialazable
● The ChainedMap class now implements Cloneable and Serialazable.
![Page 11: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/11.jpg)
11
Order kept of Element attributes
● Asking for the attributes of an XML Element will return then in the same order as they were added.– Use ChainedMap instead of HashMap
![Page 12: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/12.jpg)
12
Session properties order
● The session properties are now listed in the same order as they were added.
● The _inputs session property will also return the input parameters in the same order as they were set.
![Page 13: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/13.jpg)
13
Use of equals() instead of ==
● Changed in the generated Request.equals() method the way to compare two values from == to equals()
![Page 14: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/14.jpg)
14
clean-<api> deletes WSDL
● The clean-<api name> target now also delete the generated WSDL file.
![Page 15: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/15.jpg)
15
Color in OpenDocument
● Added more colors to the generated OpenDocument format:– The example query– The example result– The table headers
![Page 16: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/16.jpg)
16
runtime props passed to test
● In the nbbuild.xml the location of the runtime properties file is passed to the test target
![Page 17: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/17.jpg)
17
New default log pattern
● The new default logs pattern moved the NDC to just before the message– Easier to read the message ID– Easier to read the log level of the message
![Page 18: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/18.jpg)
18
Dependencies in run and test
● The dependencies are added to the classpath of the run-<api name> and test-<api name>.– No need to unpack them with the
ServletClassLoader– Faster start-up
![Page 19: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/19.jpg)
19
Upgraded Docbook libs
● Upgraded libraries used to generate the documentation– FOP 0.94– XSLT DOC 1.73.2
![Page 20: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/20.jpg)
20
Servlet filters
● Indicated in api_to_webxml.xslt where to add Servlet filters if needed.
● Servlet filters can be used for encryption, compression, authentication, auditing, ...
![Page 21: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/21.jpg)
21
Dojo toolkit documentation
● Added a new section in the user guide on how to use the Dojo toolkit with XINS
![Page 22: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/22.jpg)
22
JMX downloaded if needed
● The JMX library is automatically downloaded if the user tries to recompile the XINS distribution with Java 1.4.
![Page 23: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/23.jpg)
23
Spring framework downloaded
● The Spring Framework library is downloaded if you want to rebuild the XINS from the release.
![Page 24: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/24.jpg)
24
emma target
● New XINS command: emma.● This command will produce the code
coverage of the API code by the unit tests.
● This command is similar to the coverage command expect that the EMMA library is used instead of Cobertura.
● http://emma.sourceforge.net
![Page 25: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/25.jpg)
25
Equals in CAPI requests
● Equals (and hashCode) has been overridden in AbstractCAPIRequest to that two requests with the same destination and the same parameters are consider equals().
● Useful if you want to build a client side cache for example.
![Page 26: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/26.jpg)
26
Equals in XML Element
● Overridden equals() and hashCode() in Element so that two Elements are equal if they represent the same XML.
![Page 27: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/27.jpg)
27
PropertyReader equals()
● If two PropertyReader contain the same keys and same values, they are considered equals.– hashCode() also overridden.
![Page 28: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/28.jpg)
28
ESB + Java EE documentation
● Added new section in the user guide on how to integrate XINS with an ESB and/or a Java EE server.
![Page 29: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/29.jpg)
29
Favicon for specdocs
● A favicon is copied for the specdocs● Avoid 404 returned by browser asking for
it.● http://en.wikipedia.org/wiki/Favicon
![Page 30: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/30.jpg)
30
Watch multiple files
● The FileWatcher has been extended to be able to watch multiple files.
![Page 31: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/31.jpg)
31
dojo directory in release
● src/tools/dojo is added to the release (bug fix)
![Page 32: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/32.jpg)
32
wsdl-to-api working
● Fixed templates not found in wsdl-to-api
![Page 33: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/33.jpg)
33
Full description in OpenDocument
● Fixed description of functions, errors and parameters contain all the sentences of the description in the generated OpenDocument format– Used to be only the first sentence
![Page 34: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/34.jpg)
34
Correct Locale in xins.properties
● In the demo directory, the runtime property used for the logdoc locale was incorrect. This is fixed.
![Page 35: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/35.jpg)
35
SOAP CC with correct transformation
● Fixed incorrect transformation for soap elements in _xins-soap calling convention
![Page 36: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/36.jpg)
36
One textarea for input data elements
● If you had more than one input data element, you had more than one text area displayed in the test form. This is fixed.
![Page 37: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/37.jpg)
37
getWithDefault()
● New utility method PropertiesReaderUtils#getWithDefault()– Gets the value of a PropertyReader or the
provided fallback value if the null.
![Page 38: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/38.jpg)
38
Shared error code in examples
● It is now possible to defined a shared error code in a function example.
![Page 39: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/39.jpg)
39
Correct XML-RPC returned
● Correct XML-RPC is returned if there is an output data section.
![Page 40: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/40.jpg)
40
New Fonts for OpenDocument
● Fonts in generated OpenDocument format have been improved– Less bold fonts– Courier New for literals
![Page 41: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/41.jpg)
41
Correct element name from WSDL
● Generate API from WSDL uses the correct element name.– it used to use the type name
![Page 42: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/42.jpg)
42
Smaller generated build.xml
● Much smaller● Example:
18,784 KB37,768 KB
8811 lines38850 lines
AfterBefore
18,784 KB37,768 KB
8811 lines38850 lines
AfterBefore
![Page 43: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/43.jpg)
43
ParameterSpec#getDefault()
● New method in ParameterSpec to get the default value of the parameter or the attribute.
![Page 44: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/44.jpg)
44
Type#getDescription()
● New method to get the description of a type.– Simple types returns the same text.– Defined types uses the description provided
by the user.
![Page 45: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/45.jpg)
45
Calling Convention names
● New methods in calling convention:– void setName(String)– String getName()
![Page 46: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/46.jpg)
46
Glean target
● New target: "glean"– Execute the glean tool for an API.– Generate an editable glean.properties if
needed.– http://jbrugge.com/glean/
![Page 47: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/47.jpg)
47
GWT documentation
● Added section in the user guide on how to integrate the Google Web Toolkit with XINS.
![Page 48: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/48.jpg)
48
Meta function GUI
● New graphical user interface to call the meta functions of an API.
![Page 49: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/49.jpg)
49
Specification GUI
● New graphical user interface to look at the specification of the API.
![Page 50: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/50.jpg)
50
New maintainer Lex Uijthof
● Changed maintainer from Anthony Goubard to Lex Uijthof.
![Page 51: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/51.jpg)
51
Upgraded HttpClient
● The HttpClient library has been upgraded from 3.0.1 to 3.1.
![Page 52: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/52.jpg)
52
HTTPFileWatcher
● New utility class that monitor URLs for changes.
![Page 53: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/53.jpg)
53
No empty context sent
● If no context is available, the _context parameter is not sent.
![Page 54: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/54.jpg)
54
No empty data section sent
● If no data section, the _data parameter is not sent.
![Page 55: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/55.jpg)
55
No environment -> test form
● If no environment set, the test form is still generated and a text field is used for the target location.
![Page 56: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/56.jpg)
56
Specdocs CSS improved
● Removed invalid element
![Page 57: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/57.jpg)
57
XHTML of specdocs improved
● Better compliance with XHTML specifications.
![Page 58: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/58.jpg)
58
Include of runtime properties
● It is possible to include other runtime properties from the main runtime properties file.
● org.xins.server.config.include
– Can include more than one file (comma separated)– File locations are relative to the main runtime
properties file.
![Page 59: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/59.jpg)
59
java -jar <api name>.war
● Possibility to run the API with java -jar– The runtime properties location is given
using -Dorg.xins.server.config=... (before -jar)
– Defined the port number with -port=... (after the war file)
– Also -help option– -loader=<class loader mode> option
![Page 60: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/60.jpg)
60
javadoc-apis command
● New command 'xins javadoc-apis'– Generates the Javadoc for all APIs
![Page 61: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/61.jpg)
61
javadoc-test-<api name>
● New command: 'xins javadoc-test-<api name>'– Generates the Javadoc of the unit tests
![Page 62: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/62.jpg)
62
Larger tables in ODT
● The tables in the generated OpenDocument format are larger.– Useful for description which are more
readable
![Page 63: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/63.jpg)
63
Log4J upgraded
● Log4J upgraded from 1.2.14 to 1.2.15
![Page 64: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/64.jpg)
64
Maven documentation
● Added new section in the user guide about the integration of XINS with Maven.
![Page 65: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/65.jpg)
65
Meta description in specdocs
● The generated specdocs have meta description in the html header.– <meta name="description" content="...”>
![Page 66: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/66.jpg)
66
Improved NetBeans debug
● xins-server.jar and xins-common.jar classes have been added to the debug sources which allow to trace deeper if a problem occurs.
![Page 67: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/67.jpg)
67
More error detection in build.xml
● Improved detection of possible specification errors when generating the build.xml file.– if the name of the function does not match
the name of the file.– if properties are defined in impl.xml without
<bootstrap-properties> or <runtime-properties>
![Page 68: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/68.jpg)
68
More unit tests
● Added more unit tests.
![Page 69: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/69.jpg)
69
Mule section in user guide
● Added new section in the user guide about the integration of XINS with the ESB mule.
![Page 70: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/70.jpg)
70
Servlet container multi-threaded
● The internal Servlet container can accept now more than one request at the same time.– Each request has its own thread.
![Page 71: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/71.jpg)
71
Namespace prefix support
● The org.xins.common.xml.Element also has namespace prefix support.– Used to be ns0: ns1: ....
![Page 72: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/72.jpg)
72
NetBean project in CVS
● NetBeans project files are added in CVS– Easier for users to apply modifications and
try bug fixes.
![Page 73: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/73.jpg)
73
New xslt-plus task
● New <xslt-plus> task that has a new option to never overwrite the destination file.– Make the generated build.xml smaller and
with less targets
![Page 74: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/74.jpg)
74
New XINS diagram
● New XINS explanation diagram in the frontpage.
![Page 75: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/75.jpg)
75
Rename namespace
● Added possibility to change the namespace prefix and the namespace URI for an XML element.
![Page 76: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/76.jpg)
76
Get all runtime properties
● Added new method to get all runtime properties in the generated RuntimeProperties class.
![Page 77: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/77.jpg)
77
Regexp test on type page
● If the type is a pattern type, it is now possible to test the regular expression directly in the specdoc page of the type.– Done in Javascript– Removed patterntest element in the xins-
project.dtd
![Page 78: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/78.jpg)
78
Regexp user interface
● Graphical User interface for testing regular expressions– User javakarta-oro– Test also the validity of the regular
expression– Validate as you type– java -jar <api name>.war -port=-1 -gui; File
-> Test regular expression
![Page 79: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/79.jpg)
79
_errorResult when needed
● Removed creation of _errorResult when the function has no input parameters and no input data section.– There cannot be any error then.– Reported by FindBugs
![Page 80: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/80.jpg)
80
No parameter if _text
● Removed creation of the parameter when the type is _text and is optional in checkOutputParameters() as not used.– Reported by FindBugs
![Page 81: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/81.jpg)
81
REST demo fixed
● Fixed compilation error of the REST API.
![Page 82: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/82.jpg)
82
URL for runtime properties
● The org.xins.server.config properties now also accept URL to indicate the location of the runtime properties files.– Check for update using last-modified HTTP
header– Support the org.xins.server.config.include
property– Useful to share properties in a team.– Useful to provide the API to clients/testers.
![Page 83: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/83.jpg)
83
Script languages section
● Added new section in the XINS user guide on how to integrate XINS with script languages.
![Page 84: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/84.jpg)
84
Servlet container GUI
● Swing Graphical User Interface for the Servlet container.– Logs are in color depending on the log level– Possibility to clear the console, copy logs– java [-Dorg.xins.server.config=...] -jar <api
name>.war [-port=...] -gui
![Page 85: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/85.jpg)
85
SessionId -> SessionID
● The name of the cookie used to store the session id in the front-end framework has changed from SessionId to SessionID.
![Page 86: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/86.jpg)
86
SimpleDateFormat synchronized
● All instances of SimpleDateFormat has been synchronized as the class is not thread safe.
![Page 87: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/87.jpg)
87
index.html regeneration
● The index.html of the specdocs is regenerated when impl.xml changes.
![Page 88: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/88.jpg)
88
Spring Framework doc.
● Added new section in the XINS user guide about the integration of XINS with the Spring Framework.
![Page 89: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/89.jpg)
89
BeanUtils support for 'is'
● BeanUtils now takes into account the methods starting with 'is' or 'has' and returning a boolean.– Used to be only 'get' methods.
![Page 90: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/90.jpg)
90
Support for <em> in ODT
● Added support for the <em> element of the descriptions in the generated OpenDocument format.
![Page 91: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/91.jpg)
91
Test form GUI
● New Swing Graphical User Interface to query API functions with a generate test form.– java -jar <api name>.war -port=-1 -gui;
Test form -> function name.
![Page 92: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/92.jpg)
92
check version
● The build directory is deleted if the version of XINS has changed between two build.
![Page 93: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/93.jpg)
93
Class Loader xins detection
● The ServletClassLoader can detect the xins-common.jar using the XINS_HOME environment variable if needed.
![Page 94: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/94.jpg)
94
This presentation
● This presentation
![Page 95: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/95.jpg)
95
Transaction logs
● The transaction are logged at one place.
![Page 96: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/96.jpg)
96
Log4j config for unit tests
● Unit test generated with default Log4J configuration.
![Page 97: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/97.jpg)
97
Fixed package list for Javadoc
● Updated and fixed package-list used for Javadoc.
![Page 98: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/98.jpg)
98
webstart target
● New 'xins webstart' command.– Does not sign the WAR file.– Dependencies and location of the runtime
properties should be added.
![Page 99: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/99.jpg)
99
XML-RPC fault
● XML-RPC returns a fault when an error occur instead of HTTP 400.
![Page 100: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/100.jpg)
100
XMLViewer
● New class org.xins.common.xml.Viewer– XML viewer– Syntax highlight– Indentation if wanted– Show text if not XML
![Page 101: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/101.jpg)
101
Filter logs
● Possibility to filter the logs based on a regular expression.– Only in the Servlet container UI (java -jar
<api name>.war -gui)– Useful for finding errors or tracing request
![Page 102: XINS 2.1 featuresxins.sourceforge.net/presentations/xins2.1-features.pdf · 2 _xins-soap-map CC New calling convention Map request and response as done by the 'xins wsdl-to-api' command](https://reader033.vdocuments.us/reader033/viewer/2022042223/5ec9817a840bd01f0a0e24cd/html5/thumbnails/102.jpg)
102
Code checked
● XINS code have been checked with the latest version of PMD, FindBugs and Lint4J.