<< Click to Display Table of Contents >>

How to link OZ Server and web service

OZ Server provides web services as below:

Post – provides DataModule web service for SOAP request

Post – provides DataAction web service for SOAP request

Provides WSDL for Get requests


OZ Java Server

To use the Apache Axis web service, the following settings are required:

1. Set ozservice.properties

Open the ozservice.properties file and set the enable_ozserver and enable_webservice option to true.

2. Copy library files

Copy the soap2_3_1.jar, mail.jar, and activation.jar files to the same path as the ozsfw80.jar file.

3. Obtain a license file

Obtain a license file that supports web service function from the OZ customer center and copy it to the license folder of the OZ Server.

4. Create wsdl2.java.bat file

After writing the following contents, save it as a wsdl2.java.bat file and copy it to the lib folder of Apache Axis.

@echo off

 

set JAVA_HOME=C:\jdk1.4.2_12

set PATH=%JAVA_HOME%\bin;.

 

set WEBSERVICE_CLASSPATH=wsdl4j-1.5.1.jar;commons-logging-1.0.4.jar;commons-discovery-0.2.jar;log4j-1.2.8.jar;saaj.jar;jaxrpc.jar;axis.jar

 

echo WSDL2Java is beginning...

%JAVA_HOME%/bin/java -class path "%WEBSERVICE_CLASSPATH%" org.apache.axis.wsdl.WSDL2Java -o . -d Application -s http://127.0.0.1:8080/oz/server/ODISERVICE?wsdl

pause

5. Run wsdl2.java.bat file

Run the wsdl2.java.bat file to generate the source for the client.

6. Import required files

Import the client's source into the client project and add all the lib files in the lib folder and servlet2_3.jar file to the classpath so that they can be loaded when the client program is run.

7. Write script and run

Write a script that execute DataAction and get DataModule, and run it through Eclipse etc. For how to write the script, contact OZ customer center.


OZ .NET Server

To use the IIS web service, perform the following settings:

1. Set ozservice.properties

Open the ozservice.properties file and set the enable_ozserver and enable_webservice option to true.

2. Obtain a license file

Obtain a license file that supports web service function from the OZ customer center and copy it to the license folder of the OZ Server.

3. Run wsdl.exe file

After installing the .NET Framework SDK, run the wsdl.exe file as shown below to create the ODIServiceService.cs file.

wsdl http://hostServer/WebserviceRoot/WebServiceName.asmx?WSDL

4. create a new project

Launch Visual studio 2010 to set up the .NET Framework 3.0 and select Console Application to create a new project.

5. Add file and reference

Add the ODIServiceService.cs file to the project, and add a System.Web.Services reference.

6. Write script and run

Write a script that executes DataAction and get DataModule, and run the project. For how to write the script, and contact OZ customer center.