Problem starting Web Services and creating ws.wsdl file

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

pratz0909@gmail.com
Posts: 1
Joined: Thu Aug 16, 2012 7:56 pm

Problem starting Web Services and creating ws.wsdl file

Post by pratz0909@gmail.com »

Hello,

I have successfully installed OpenEmm application, but I am not able to create the ws.wsdl file nor I am able to start the web services.

Documentation :
"""
This script is a test-client for the OpenEMM webservices. Please adjust the path information in the second
line of the file to point to your deploy directory. When using the default paths of OpenEMM this is
../webapps/openemm (Linux)
Executing the script EmmSoapClient.[sh|cmd] launches class org.agnitas.webservice.EmmSoapClient and
gives you an overview of all available services and their parameters. The client tries to connect to
http://localhost:8080 and therefore has to be started on the server side.
"""

Me : ( linux shell output )
"""
openemm@pratz:~/webservices$ ll
total 24
drwxr-xr-x 2 openemm openemm 4096 Aug 17 00:22 ./
drwxr-xr-x 11 openemm openemm 4096 Aug 17 00:22 ../
-rw-r--r-- 1 openemm openemm 1044 Jul 13 2011 EmmCreateWSDL.cmd
-rwxr-xr-x 1 openemm openemm 450 Jul 13 2011 EmmCreateWSDL.sh*
-rw-r--r-- 1 openemm openemm 532 Jul 13 2011 EmmSoapClient.cmd
-rwxr-xr-x 1 openemm openemm 437 Jul 13 2011 EmmSoapClient.sh*
openemm@pratz:~/webservices$ ./EmmSoapClient.sh
Error: Could not find or load main class org.agnitas.webservice.EmmSoapClient
"""

Documentation :
"""
This script creates a valid WSDL file named ws.wsdl based on the OpenEMM interface class
EMMWebService_Port. Please adjust the path information in the second line of the file to point to your
deploy directory. When using the default paths of OpenEMM this is
../webapps/openemm
The Linux script can be started like this (no line breaks):
./EmmCreateWSDL.sh -o ws.wsdl -l "http://yourdomain:8080/emm_webservice"
-n "urn:agnitas-webservice" -w ALL
org.agnitas.webservice.EmmWebService_Port
"""

Me :
"""
openemm@pratz:~/webservices$ ./EmmCreateWSDL.sh
Error: Could not find or load main class org.apache.axis.wsdl.Java2WSDL
"""

Any advice where I am wrong.

Thanks
abonline
Posts: 4
Joined: Thu Dec 20, 2012 3:17 pm

Re: Problem starting Web Services and creating ws.wsdl file

Post by abonline »

Hi pratz,

i opened the EmmCreateWSDL.sh and the EmmSoapClient.sh and edit the first line:

Code: Select all

DEPLOY=../webapps/core
to

Code: Select all

DEPLOY=../webapps/openemm
Anton
Posts: 46
Joined: Sun Jun 24, 2012 9:58 pm

Re: Problem starting Web Services and creating ws.wsdl file

Post by Anton »

I have the same problem but the bug below (core vs openemm) seems to have been fixed. Has anyone else solved this recently?
Cheers.
Anton
Posts: 46
Joined: Sun Jun 24, 2012 9:58 pm

Re: Problem starting Web Services and creating ws.wsdl file

Post by Anton »

There was something wrong with my environment (openemm was missing env values and I did a source .bashrc to get them back manually - is this how it should be?). I did, however, also have to add log4j and a correct version of wsdl4j to the classpath for it to compile. It's working well now though...
Post Reply