master
Vyacheslav N. Boyko 2017-06-22 14:23:36 +03:00
parent 96936d6658
commit 36048a4124
3 changed files with 22 additions and 22 deletions

View File

@ -25,14 +25,14 @@ public class LicenseChecker {
this.clientId = clientId; this.clientId = clientId;
} }
public Boolean checkLicense(String properties) { public CheckClientLicenseResponse.Response checkLicense(String properties) {
URL url = null; URL url = null;
try { try {
url = new URL("http://licenseserverj.cf/ws/checkLicense?WSDL"); url = new URL("http://licenseserverj.cf/ws/checkLicense?WSDL");
} catch (MalformedURLException e) { } catch (MalformedURLException e) {
e.printStackTrace(); e.printStackTrace();
return false; return null;
} }
QName qname = new QName("http://checkLicenseJ.bvn13.ru", "CheckLicenseWSService"); QName qname = new QName("http://checkLicenseJ.bvn13.ru", "CheckLicenseWSService");
@ -47,7 +47,7 @@ public class LicenseChecker {
CheckClientLicenseResponse.Response result = checkLicenseWS.checkClientLicense(params); CheckClientLicenseResponse.Response result = checkLicenseWS.checkClientLicense(params);
return result.isIsValid(); return result;
} }
} }

View File

@ -26,7 +26,7 @@ import javax.xml.datatype.XMLGregorianCalendar;
* <sequence> * <sequence>
* <element name="clientId" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/> * <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="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"/> * <element name="properties" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/>
* </sequence> * </sequence>
* </restriction> * </restriction>
@ -87,7 +87,7 @@ public class CheckClientLicenseResponse {
* <sequence> * <sequence>
* <element name="clientId" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/> * <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="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"/> * <element name="properties" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/>
* </sequence> * </sequence>
* </restriction> * </restriction>
@ -101,7 +101,7 @@ public class CheckClientLicenseResponse {
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = {
"clientId", "clientId",
"date", "date",
"isValid", "valid",
"properties" "properties"
}) })
public static class Response { public static class Response {
@ -111,7 +111,7 @@ public class CheckClientLicenseResponse {
@XmlElement(required = true) @XmlElement(required = true)
@XmlSchemaType(name = "date") @XmlSchemaType(name = "date")
protected XMLGregorianCalendar date; protected XMLGregorianCalendar date;
protected boolean isValid; protected boolean valid;
@XmlElement(required = true) @XmlElement(required = true)
protected String properties; 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() { public boolean isValid() {
return isValid; return valid;
} }
/** /**
* Sets the value of the isValid property. * Sets the value of the valid property.
* *
*/ */
public void setIsValid(boolean value) { public void setValid(boolean value) {
this.isValid = value; this.valid = value;
} }
/** /**

View File

@ -22,7 +22,7 @@ import javax.xml.datatype.XMLGregorianCalendar;
* <sequence> * <sequence>
* <element name="clientId" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/> * <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="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"/> * <element name="properties" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/>
* </sequence> * </sequence>
* </restriction> * </restriction>
@ -36,7 +36,7 @@ import javax.xml.datatype.XMLGregorianCalendar;
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = {
"clientId", "clientId",
"date", "date",
"isValid", "valid",
"properties" "properties"
}) })
@XmlRootElement(name = "checkLicenseResponse") @XmlRootElement(name = "checkLicenseResponse")
@ -47,7 +47,7 @@ public class CheckLicenseResponse {
@XmlElement(required = true) @XmlElement(required = true)
@XmlSchemaType(name = "date") @XmlSchemaType(name = "date")
protected XMLGregorianCalendar date; protected XMLGregorianCalendar date;
protected boolean isValid; protected boolean valid;
@XmlElement(required = true) @XmlElement(required = true)
protected String properties; 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() { public boolean isValid() {
return isValid; return valid;
} }
/** /**
* Sets the value of the isValid property. * Sets the value of the valid property.
* *
*/ */
public void setIsValid(boolean value) { public void setValid(boolean value) {
this.isValid = value; this.valid = value;
} }
/** /**