HPOSSOD 1.0 Technical Note

HP Web Services for Output Server 62
Using HP Web Services for Output Server
Automated steps to build WSG client proxies using Integrated Development Environment (IDE)
Automated steps to build WSG client proxies using
Integrated Development Environment (IDE)
You can build Web Services for Output Server client using NetBeans 5.5 Integrated Development Environment as
follows:
1. To create a Java project you need to perform the following steps:
i. Go to File > New Project and New Project window is displayed.
ii. Select General from the Categories list and Java Application from Projects list.
iii. Click Next.
iv. Specify a project name and click Finish.
2. To create Web Services for Output Server proxies you need to perform the following steps:
i. Right -click on the project created and select New > File/Folder.
ii. The New File window is displayed.
iii. Select Web Services from the Categories list and Web Service Client from File Types list.
iv. Click Next.
v. Select WSDL URL and specify the URL as follows:
http://<IP>:<Port>/HPOSGateway/HPOSGateway?wsdl
vi. Specify the name of the Package (Example: com.hp.om.wsg.proxies). The proxies will be generated in the
mentioned package.
vii. Select JAX Version as JAX-WS.
viii. Click Finish.
3. To create jar files for proxies you need to perform the following steps:
i. Right-click on the project and select Clean and Build Project.
A .jar file will be created in the project (project_home/dist) created in step 1 iv.
4. You can create the Web Services for Output Server client by importing the proxies. For more details, refer to the
“Sample clients” on page 37.