updates
parent
96936d6658
commit
36048a4124
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue