I set the following variables before running:
set WSSAMP=E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\aps\ws-samples
set JAVA_HOME=E:\Oracle\Middleware\jdk160_35
set PATH=E:\Oracle\Middleware\modules\org.apache.ant_1.7.1\bin;%JAVA_HOME%\bin;%PATH%;
ant -f %WSSAMP%\build.xml clean compile
On to the first issue, as I mentioned there are three WSDL files which describe the functionality of the web service, these should be accessible through the following URLs:
http(s)://<server>:<port>/essbase-webservices/DatasourceService?wsdl
http(s)://<server>:<port>/essbase-webservices/AdminService?wsdl
http(s)://<server>:<port>/essbase-webservices/QueryService?wsdl
From 11.1.2.3.502 the WSDL URLs for the Essbase Web Services have been disabled by default, if you try and access them directly in a browser you should see:
To enable them you will need to start up the WebLogic admin server and log into Enterprise Manager through:
http://<adminserver>:7001/em
Select the Provider Services WebLogic managed server and then Web Services
Select the “Oracle Infrastructure Web Services” tab, under the Web Service Name click “AdminServicePortType” Endpoint Name and then the configuration tab.
The WSDL parameter will be set to false.
Also set WSDL to true for the following Endpoint names “DatasourceServicePortType” and “QueryServicePortType”
Once set restart the provider services web application.
The WSDL URLs should now be accessible.
So now I can try and compile again.
This time it was successful and all the java files have now been compiled into classes.
You can now go and take them and start coding in Java to access the Essbase Web Services.
It is also possible to compile and run the sample programs directly from command line using Ant.
To do this you this you can edit ws-build.properties and set the sample.program property value and then execute:
ant execute
or you can specify name of sample program using:
ant execute -Dsample.program=<Sample Program>
In the following example I execute the Admin sample program which starts the Essbase Sample application, pings the application and then stops it.