Echelon i.LON SmartServer Technical Information Page 408

  • Download
  • Add to my manuals
  • Print
  • Page
    / 443
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 407
i.LON SmartServer 2.0 Programmer’s Reference
22-3
22.2
Creating a JAX-WS Client
To create a JAX-WS client, follow these steps:
1. Create the java proxy classes for the SmartServer’s WSDL and create a sample Eclipse project for
programming the SmartServer in Java. To do this, follow these steps:
a. Browse to the C:\eclipse\eclipse 3.5\ilon.ws.clients\jax-ws\src\wsdl folder, open the
iLON100.wsdl file with a text editor, change the IP address at the bottom of the file to the IP
address of your SmartServer, and then save the file.
b. Open a Windows command prompt and change the directory to C:\eclipse\eclipse
3.5\ilon.ws.clients\jax-ws (enter cd C:\eclipse\eclipse 3.5\ilon.ws.clients\jax-ws).
c. This directory contains a pom.xml configuration file for Maven that enables you to quickly
create a JAX-WS project for a SmartServer client.
d. Enter the following command to verify that you set the Path system variables correctly:
mvn –version
The current version will be displayed if you set the Path system variables correctly.
e. Enter the following command to download all the required dependencies to your computer
and generate the corresponding java proxy classes for the iLON100.wsdl. Ignore any
warnings that appear.
mvn clean jaxws:wsimport
f. Enter the following command to create an Eclipse project:
mvn eclipse:eclipse
2. Start Eclipse. To do this, browse to the C:\eclipse\eclipse 3.5\eclipse-jee-galieo-win32 folder and then double-
click the eclipse.exe executable. The Eclipse JAVA EE development tool opens.
3. Import the sample Eclipse project for programming the SmartServer in Java following these steps:
a. Click File, and then click Import.
Page view 407
1 2 ... 403 404 405 406 407 408 409 410 411 412 413 ... 442 443

Comments to this Manuals

No comments