Webservices 2.0 - how to activate?

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

zanuda
Posts: 6
Joined: Mon Mar 03, 2014 12:00 pm

Webservices 2.0 - how to activate?

Post by zanuda »

Hello!

I've succesfully obtain ws.wsdl file, but it contains only 15 method's description (like in API 1.0). How can I generate wsdl-file for Webservices 2.0 API? Is API 2.0 available in Windows version (I've installed windows-based version of OpenEMM)?
maschoff
Site Admin
Posts: 2597
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Webservices 2.0 - how to activate?

Post by maschoff »

Have you read the documentation?
OpenEMM Maintainer
zanuda
Posts: 6
Joined: Mon Mar 03, 2014 12:00 pm

Re: Webservices 2.0 - how to activate?

Post by zanuda »

Maybe I've missed something.. I've read Webservice-API_2.0_EN_1.1.2 and OpenEMM_Webservices_1.2.3. We are successfully using now "old" API, it works well. But I cannot understand, how to obtain wsdl contract for new API yet.
mdoerschmidt
Posts: 25
Joined: Fri Jan 04, 2013 8:55 am

Re: Webservices 2.0 - how to activate?

Post by mdoerschmidt »

The webservices 2.0 are deployed as a separate application.

There is one little thing to configure:
In file openemm-ws/WEB-INF/classes/emm-ws.properties there is a property named "wsdlLocationUri". The value of this property has to be set according to the domain name, you're using for your OpenEMM system. If your domain is "example.com" then set this property to "http://example.com/openemm-ws/"
Note, that the trailing "/" is important. If it's missing, some clients will send invalid requests.

You can download the WSDL file by accessing
{your-domain}/openemm-ws/emmservices.wsdl


Best regards,
Markus
Post Reply