Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

One of the goals of KWebS is to provide the KIELER layout to a broader range of users by hiding its java nature behind a web service. As the server uses a SOAP web service, it describes the user interface in a platform independent way using the Web Service Description Language (WSDL). You can use this contract to automatically generate the code necessary to access the operations provided by KWebS. For example, if you have a java based project, you can use the tool wsimport:

 

Code Block
wsimport -p my.kwebs.client -keep http://layout.rtsys.informatik.uni-kiel.de:9442/layout?wsdl

...

Normally, wsimport will derive the package where it puts the generated classes into from the XML name space declared in the contract, but this will in general not fit to your needs. You can declare a different package with the -p option, in the given example the classes will be generated to the package my.kwebs.client. The -keep option tells wsimport not to delete the generated java sources after it has compiled them to class files. As a last option, wsimport requires the contract from which it shall generate the code. This may be a file on your local computer, or as an alternative, wsimport can download it from the internet. The public demo service of KWebS is located at http://layout.rtsys.informatik.uni-kiel.de:9442/layout, and you can access its contract by adding ?wsdl to this location.

...