after licence key no more connection

Questions and answers for all installation-related topics for Servoy products

after licence key no more connection

Postby jos@devoon.nl » Tue Oct 25, 2011 12:40 pm

I developed a connection to a webservice. This works fine in the development environment and as client on an application server. No Problem at all. Untill a valid licence key is submitted in the application server admin. After this the webservice is blocked for some reason and I cannot figure out why. Anyone any clues?
Thanks,
Jos
Jos Uitenbogaard
Devoon
User avatar
jos@devoon.nl
 
Posts: 60
Joined: Tue Oct 25, 2011 11:59 am
Location: Reeuwijk NL

Re: after licence key no more connection

Postby Joas » Wed Nov 02, 2011 10:33 am

Do you get any errors in your log?
Joas de Haan
Yield Software Development
Need help on your project? yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 842
Joined: Mon Mar 20, 2006 4:07 pm
Location: Leusden, NL

Re: after licence key no more connection

Postby Andrei Costescu » Thu Nov 03, 2011 10:51 am

So you are using the RESTful webservices plugin to publish your own web service.
What kind of license exactly did you use? Which Servoy version did you use?
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm

Re: after licence key no more connection

Postby jos@devoon.nl » Fri Nov 04, 2011 9:18 am

I don' get errorrs in my log.
We don't use a restfull webservice, but a regular SOAP (wsdl) webservice that has a service for our clients. The solution sends an xml package and receives xml packages.
The licence entered is just a regular user (servoy) licence that any of our customers have to enter when they want to use the software.
Jos Uitenbogaard
Devoon
User avatar
jos@devoon.nl
 
Posts: 60
Joined: Tue Oct 25, 2011 11:59 am
Location: Reeuwijk NL

Re: after licence key no more connection

Postby ROCLASI » Fri Nov 04, 2011 9:57 am

Hi Jos,

So you are using the http plugin to connect to the webservice and that stopped working after you entered a license key ? Or are you using other means to connect to this webservice.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: after licence key no more connection

Postby jos@devoon.nl » Mon Nov 07, 2011 9:55 am

Hi Robert,

The plugin we use is a custom made plugin that takes care of the security certificates and the soap envelope that are needed for several webservices that are developed and maintained by one software developer (avisi). So it is not the regular http plugin. Might this be a problem?
What does make it strange is that it all works perfect as long as there is no licence entered. This makes little sense to me. Why is entering a licence key changing this kind of behaviour?

thanks
Jos Uitenbogaard
Devoon
Jos Uitenbogaard
Devoon
User avatar
jos@devoon.nl
 
Posts: 60
Joined: Tue Oct 25, 2011 11:59 am
Location: Reeuwijk NL

Re: after licence key no more connection

Postby ROCLASI » Mon Nov 07, 2011 1:18 pm

HI Jos,

I guess it all depends on what that plugin uses on the Servoy side of things.
Perhaps your developer should get in direct contact with Servoy support and let them look at the source.

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: after licence key no more connection

Postby ptalbot » Mon Nov 07, 2011 6:48 pm

Yes, Robert is right, maybe you are using a license in your plugin by calling a headless client.

It would work when you don't provide a license because you have 5 "Community" client licenses in that case, vs how many client licenses when you input the license number?
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: after licence key no more connection

Postby jos@devoon.nl » Tue Nov 08, 2011 10:10 am

I'm sure that there is no use of a headless client or anything else from Servoy. The licence entered is a 50 user licence anyway. So in our testenvironment this cannot give a limitation.
The plugin loads the security certificates needed to contact the webservice. After it establishes a secure conection it handles the soap envelope around the xml messages that must be send en received. It is all Java based.
I will contact the developer of this plugin and see what he says.

thanks
Jos Uitenbogaard
Devoon
Jos Uitenbogaard
Devoon
User avatar
jos@devoon.nl
 
Posts: 60
Joined: Tue Oct 25, 2011 11:59 am
Location: Reeuwijk NL

Re: after licence key no more connection

Postby jos@devoon.nl » Thu Dec 08, 2011 9:51 am

I checked on this with Jan Blok from Servoy and we found that it has to do with how original javacode treats https connections.
A https call made with 'java.net.URL ' can frustrate a second https-call made from the same java VM.
Jan gave this snippet as example:
Code: Select all
             URL url = new URL("https://www.website.com");
             HttpURLConnection conn =
(HttpURLConnection)url.openConnection();
             if (conn.getResponseCode() == HttpURLConnection.HTTP_OK)
return true;
             conn.disconnect();

If the Servoy application server starts up with a licence key entered there is a https-call to Servoy to check that key. Then a next call to a https-url by another script (for instance our plugin) will be frustrated.
Jos Uitenbogaard
Devoon
User avatar
jos@devoon.nl
 
Posts: 60
Joined: Tue Oct 25, 2011 11:59 am
Location: Reeuwijk NL


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest