uCosminexus Application Server, Web Service Development Guide

[Contents][Glossary][Index][Back][Next]

10.23 A functionality to dynamically generate wrapper bean

With the functionality to dynamically generate the wrapper bean, the JAX-WS engine dynamically generates the wrapper bean (the request bean and response bean), and the Javabeans classes of the fault bean. You can use the functionality in Web Services that are developed starting from SEI. However, the Web Services clients or Web Services, for which the development started from the WSDL, do not support the functionality to dynamically generate the wrapper bean.

This section describes the performance and error checks of the functionality to dynamically generate the wrapper bean.

Organization of this section
(1) Using the cjwsgen command for checking errors
(2) Performance

(1) Using the cjwsgen command for checking errors

When developing Web Services starting from SEI, compile Web Services Implementation Class by using the javac command. However, when compiling Web Services Implementation Class by using the javac command, the following mapping errors are not checked:

For this reason, if definitions unsupported in the JAX-WS functionality are included in Web Services Implementation Class, the process of starting Web Service or acquiring the metadata after Web Service starts successfully, might lead to errors. To avoid errors, you must execute the cjwsgen command in Web Services Implementation Classes compiled by using the javac command and check for the errors in advance. If Web Service fails to start, the following error messages are output to the log or the standard error output.

(2) Performance

The JAX-WS engine dynamically generating a JavaBeans class is an on-memory processing. As compared to the process in which a JavaBeans class is statically generated, the starting performance of Web Service, therefore, declines when the JAX-WS engine puts a load on the Web Service when dynamically generating a JavaBeans class. However, the process of dynamically generating a JavaBeans class does not require the process of reading the WAR file, thereby reducing the load.

Because the JavaBeans class that is statically generated by JAX-WS is the same as the JavaBeans class that is statically generated by the cjwsgen command, the performance of the SOAP communication after you start Web Service is the same irrespective of whether the JavaBeans class is generated dynamically or statically.