From 36048a4124fbd657a443bfea2be514d7185fdef4 Mon Sep 17 00:00:00 2001 From: "Vyacheslav N. Boyko" Date: Thu, 22 Jun 2017 14:23:36 +0300 Subject: [PATCH] updates --- .../licenseserverjclient/LicenseChecker.java | 6 +++--- .../soap/CheckClientLicenseResponse.java | 20 +++++++++---------- .../soap/CheckLicenseResponse.java | 18 ++++++++--------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/main/java/ru/bvn13/licenseserverjclient/LicenseChecker.java b/src/main/java/ru/bvn13/licenseserverjclient/LicenseChecker.java index 7a7f621..f170ffe 100644 --- a/src/main/java/ru/bvn13/licenseserverjclient/LicenseChecker.java +++ b/src/main/java/ru/bvn13/licenseserverjclient/LicenseChecker.java @@ -25,14 +25,14 @@ public class LicenseChecker { this.clientId = clientId; } - public Boolean checkLicense(String properties) { + public CheckClientLicenseResponse.Response checkLicense(String properties) { URL url = null; try { url = new URL("http://licenseserverj.cf/ws/checkLicense?WSDL"); } catch (MalformedURLException e) { e.printStackTrace(); - return false; + return null; } QName qname = new QName("http://checkLicenseJ.bvn13.ru", "CheckLicenseWSService"); @@ -47,7 +47,7 @@ public class LicenseChecker { CheckClientLicenseResponse.Response result = checkLicenseWS.checkClientLicense(params); - return result.isIsValid(); + return result; } } diff --git a/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckClientLicenseResponse.java b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckClientLicenseResponse.java index 8e0e0bf..8c11532 100644 --- a/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckClientLicenseResponse.java +++ b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckClientLicenseResponse.java @@ -26,7 +26,7 @@ import javax.xml.datatype.XMLGregorianCalendar; * <sequence> * <element name="clientId" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/> * <element name="date" type="{http://www.w3.org/2001/XMLSchema}date" form="qualified"/> - * <element name="isValid" type="{http://www.w3.org/2001/XMLSchema}boolean" form="qualified"/> + * <element name="valid" type="{http://www.w3.org/2001/XMLSchema}boolean" form="qualified"/> * <element name="properties" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/> * </sequence> * </restriction> @@ -87,7 +87,7 @@ public class CheckClientLicenseResponse { * <sequence> * <element name="clientId" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/> * <element name="date" type="{http://www.w3.org/2001/XMLSchema}date" form="qualified"/> - * <element name="isValid" type="{http://www.w3.org/2001/XMLSchema}boolean" form="qualified"/> + * <element name="valid" type="{http://www.w3.org/2001/XMLSchema}boolean" form="qualified"/> * <element name="properties" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/> * </sequence> * </restriction> @@ -101,7 +101,7 @@ public class CheckClientLicenseResponse { @XmlType(name = "", propOrder = { "clientId", "date", - "isValid", + "valid", "properties" }) public static class Response { @@ -111,7 +111,7 @@ public class CheckClientLicenseResponse { @XmlElement(required = true) @XmlSchemaType(name = "date") protected XMLGregorianCalendar date; - protected boolean isValid; + protected boolean valid; @XmlElement(required = true) protected String properties; @@ -164,19 +164,19 @@ public class CheckClientLicenseResponse { } /** - * Gets the value of the isValid property. + * Gets the value of the valid property. * */ - public boolean isIsValid() { - return isValid; + public boolean isValid() { + return valid; } /** - * Sets the value of the isValid property. + * Sets the value of the valid property. * */ - public void setIsValid(boolean value) { - this.isValid = value; + public void setValid(boolean value) { + this.valid = value; } /** diff --git a/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseResponse.java b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseResponse.java index 007e89e..aa9445a 100644 --- a/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseResponse.java +++ b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseResponse.java @@ -22,7 +22,7 @@ import javax.xml.datatype.XMLGregorianCalendar; * <sequence> * <element name="clientId" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/> * <element name="date" type="{http://www.w3.org/2001/XMLSchema}date" form="qualified"/> - * <element name="isValid" type="{http://www.w3.org/2001/XMLSchema}boolean" form="qualified"/> + * <element name="valid" type="{http://www.w3.org/2001/XMLSchema}boolean" form="qualified"/> * <element name="properties" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/> * </sequence> * </restriction> @@ -36,7 +36,7 @@ import javax.xml.datatype.XMLGregorianCalendar; @XmlType(name = "", propOrder = { "clientId", "date", - "isValid", + "valid", "properties" }) @XmlRootElement(name = "checkLicenseResponse") @@ -47,7 +47,7 @@ public class CheckLicenseResponse { @XmlElement(required = true) @XmlSchemaType(name = "date") protected XMLGregorianCalendar date; - protected boolean isValid; + protected boolean valid; @XmlElement(required = true) protected String properties; @@ -100,19 +100,19 @@ public class CheckLicenseResponse { } /** - * Gets the value of the isValid property. + * Gets the value of the valid property. * */ - public boolean isIsValid() { - return isValid; + public boolean isValid() { + return valid; } /** - * Sets the value of the isValid property. + * Sets the value of the valid property. * */ - public void setIsValid(boolean value) { - this.isValid = value; + public void setValid(boolean value) { + this.valid = value; } /**