Page 1 of 1

Webservices 2.0 - how to activate?

Posted: Mon Mar 03, 2014 12:12 pm
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)?

Re: Webservices 2.0 - how to activate?

Posted: Tue Mar 04, 2014 3:59 pm
by maschoff
Have you read the documentation?

Re: Webservices 2.0 - how to activate?

Posted: Mon Mar 17, 2014 8:51 am
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.

Re: Webservices 2.0 - how to activate?

Posted: Thu Mar 20, 2014 10:10 am
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