From 33d6f40700f01365c7d75b055ab5633de3b59749 Mon Sep 17 00:00:00 2001 From: "Vyacheslav N. Boyko" Date: Wed, 21 Jun 2017 18:01:00 +0300 Subject: [PATCH] implemented simple license checker --- generate.cmd | 1 + pom.xml | 106 ++++++++- .../licenseserverjclient/LicenseChecker.java | 50 +++++ .../soap/CheckLicense.java | 155 +++++++++++++ .../soap/CheckLicenseJ.java | 38 ++++ .../soap/CheckLicenseRequest.java | 92 ++++++++ .../soap/CheckLicenseResponse.java | 208 ++++++++++++++++++ .../soap/CheckLicenseWSService.java | 94 ++++++++ .../soap/ObjectFactory.java | 95 ++++++++ .../soap/package-info.java | 2 + 10 files changed, 840 insertions(+), 1 deletion(-) create mode 100644 generate.cmd create mode 100644 src/main/java/ru/bvn13/licenseserverjclient/LicenseChecker.java create mode 100644 src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicense.java create mode 100644 src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseJ.java create mode 100644 src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseRequest.java create mode 100644 src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseResponse.java create mode 100644 src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseWSService.java create mode 100644 src/main/java/ru/bvn13/licenseserverjclient/soap/ObjectFactory.java create mode 100644 src/main/java/ru/bvn13/licenseserverjclient/soap/package-info.java diff --git a/generate.cmd b/generate.cmd new file mode 100644 index 0000000..5e66948 --- /dev/null +++ b/generate.cmd @@ -0,0 +1 @@ +wsimport -s "src/main/java" -d "target/classes" -p "ru.bvn13.licenseserverjclient.soap" -keep -verbose http://licenseserverj.cf/ws/checkLicense?WSDL \ No newline at end of file diff --git a/pom.xml b/pom.xml index 3e90efe..831da06 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,111 @@ ru.bvn13 licenseserverjclient - 1.0-SNAPSHOT + 1.0 + + + LicenseServerJClient + LicenseServerJ client + https://github.com/bvn13/LicenseServerJClient + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + owner + Vyacheslav Boyko + mail4bvn@gmail.com + UTC+3 + + + + + 1.8 + github + 0.12 + + https://github.com/bvn13/LicenseServerJClient + + + + + internal.repo + Temporary Staging Repository + file://${project.build.directory}/mvn-repo + + + + + + + + + org.projectlombok + lombok + 1.16.16 + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + ${java.version} + ${java.version} + + + + maven-compiler-plugin + + ${java.version} + ${java.version} + + + + + maven-deploy-plugin + 2.8.2 + + internal.repo::default::file://${project.build.directory}/mvn-repo + + + + com.github.github + site-maven-plugin + ${github.maven-plugin} + + Maven artifacts for ${project.version} + true + ${project.build.directory}/mvn-repo + refs/heads/mvn-repo + **/* + LicenseServerJClient + bvn13 + + + + + site + + deploy + + + + + + + + \ No newline at end of file diff --git a/src/main/java/ru/bvn13/licenseserverjclient/LicenseChecker.java b/src/main/java/ru/bvn13/licenseserverjclient/LicenseChecker.java new file mode 100644 index 0000000..e5051e2 --- /dev/null +++ b/src/main/java/ru/bvn13/licenseserverjclient/LicenseChecker.java @@ -0,0 +1,50 @@ +package ru.bvn13.licenseserverjclient; + +import lombok.Getter; +import ru.bvn13.licenseserverjclient.soap.CheckLicense; +import ru.bvn13.licenseserverjclient.soap.CheckLicenseJ; +import ru.bvn13.licenseserverjclient.soap.CheckLicenseResponse; +import ru.bvn13.licenseserverjclient.soap.CheckLicenseWSService; + +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import java.net.MalformedURLException; +import java.net.URL; + +/** + * Created by bvn13 on 21.06.2017. + */ +public class LicenseChecker { + + @Getter + private String clientId; + + public LicenseChecker(String clientId) { + this.clientId = clientId; + } + + public Boolean checkLicense(String properties) { + + URL url = null; + try { + new URL("http://licenseserverj.cf/ws/checkLicense?WSDL"); + } catch (MalformedURLException e) { + e.printStackTrace(); + return false; + } + + QName qname = new QName("http://checkLicenseJ.bvn13.ru", "checkLicense"); + CheckLicenseWSService service = (CheckLicenseWSService) CheckLicenseWSService.create(url, qname); + + CheckLicenseJ proxy = service.getSOAPOverHTTP(); + + CheckLicense params = new CheckLicense(); + params.getArg0().setClientId(clientId); + params.getArg0().setProperties(properties); + + CheckLicenseResponse result = (CheckLicenseResponse) proxy.checkLicense(params); + + return result.getReturn().isIsValid(); + } + +} diff --git a/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicense.java b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicense.java new file mode 100644 index 0000000..e59eedd --- /dev/null +++ b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicense.java @@ -0,0 +1,155 @@ + +package ru.bvn13.licenseserverjclient.soap; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for checkLicense complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="checkLicense">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="arg0" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="clientId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *                   <element name="properties" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "checkLicense", propOrder = { + "arg0" +}) +public class CheckLicense { + + protected CheckLicense.Arg0 arg0; + + /** + * Gets the value of the arg0 property. + * + * @return + * possible object is + * {@link CheckLicense.Arg0 } + * + */ + public CheckLicense.Arg0 getArg0() { + return arg0; + } + + /** + * Sets the value of the arg0 property. + * + * @param value + * allowed object is + * {@link CheckLicense.Arg0 } + * + */ + public void setArg0(CheckLicense.Arg0 value) { + this.arg0 = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="clientId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+     *         <element name="properties" type="{http://www.w3.org/2001/XMLSchema}string"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "clientId", + "properties" + }) + public static class Arg0 { + + @XmlElement(required = true) + protected String clientId; + @XmlElement(required = true) + protected String properties; + + /** + * Gets the value of the clientId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClientId() { + return clientId; + } + + /** + * Sets the value of the clientId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClientId(String value) { + this.clientId = value; + } + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setProperties(String value) { + this.properties = value; + } + + } + +} diff --git a/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseJ.java b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseJ.java new file mode 100644 index 0000000..c53baff --- /dev/null +++ b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseJ.java @@ -0,0 +1,38 @@ + +package ru.bvn13.licenseserverjclient.soap; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.xml.bind.annotation.XmlSeeAlso; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.2 + * + */ +@WebService(name = "checkLicenseJ", targetNamespace = "http://checkLicenseJ.bvn13.ru") +@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) +@XmlSeeAlso({ + ObjectFactory.class +}) +public interface CheckLicenseJ { + + + /** + * + * @param parameters + * @return + * returns java.lang.Object + */ + @WebMethod + @WebResult(name = "checkLicenseResponse", targetNamespace = "http://checkLicenseJ.bvn13.ru", partName = "parameters") + public Object checkLicense( + @WebParam(name = "checkLicense", targetNamespace = "http://checkLicenseJ.bvn13.ru", partName = "parameters") + CheckLicense parameters); + +} diff --git a/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseRequest.java b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseRequest.java new file mode 100644 index 0000000..fba85f5 --- /dev/null +++ b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseRequest.java @@ -0,0 +1,92 @@ + +package ru.bvn13.licenseserverjclient.soap; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="clientId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="properties" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "clientId", + "properties" +}) +@XmlRootElement(name = "checkLicenseRequest") +public class CheckLicenseRequest { + + @XmlElement(required = true) + protected String clientId; + @XmlElement(required = true) + protected String properties; + + /** + * Gets the value of the clientId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClientId() { + return clientId; + } + + /** + * Sets the value of the clientId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClientId(String value) { + this.clientId = value; + } + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setProperties(String value) { + this.properties = value; + } + +} diff --git a/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseResponse.java b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseResponse.java new file mode 100644 index 0000000..e251d9a --- /dev/null +++ b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseResponse.java @@ -0,0 +1,208 @@ + +package ru.bvn13.licenseserverjclient.soap; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for checkLicenseResponse complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="checkLicenseResponse">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="return" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="clientId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *                   <element name="date" type="{http://www.w3.org/2001/XMLSchema}date"/>
+ *                   <element name="isValid" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *                   <element name="properties" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "checkLicenseResponse", propOrder = { + "_return" +}) +public class CheckLicenseResponse { + + @XmlElement(name = "return") + protected CheckLicenseResponse.Return _return; + + /** + * Gets the value of the return property. + * + * @return + * possible object is + * {@link CheckLicenseResponse.Return } + * + */ + public CheckLicenseResponse.Return getReturn() { + return _return; + } + + /** + * Sets the value of the return property. + * + * @param value + * allowed object is + * {@link CheckLicenseResponse.Return } + * + */ + public void setReturn(CheckLicenseResponse.Return value) { + this._return = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="clientId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+     *         <element name="date" type="{http://www.w3.org/2001/XMLSchema}date"/>
+     *         <element name="isValid" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+     *         <element name="properties" type="{http://www.w3.org/2001/XMLSchema}string"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "clientId", + "date", + "isValid", + "properties" + }) + public static class Return { + + @XmlElement(required = true) + protected String clientId; + @XmlElement(required = true) + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar date; + protected boolean isValid; + @XmlElement(required = true) + protected String properties; + + /** + * Gets the value of the clientId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClientId() { + return clientId; + } + + /** + * Sets the value of the clientId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClientId(String value) { + this.clientId = value; + } + + /** + * Gets the value of the date property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getDate() { + return date; + } + + /** + * Sets the value of the date property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setDate(XMLGregorianCalendar value) { + this.date = value; + } + + /** + * Gets the value of the isValid property. + * + */ + public boolean isIsValid() { + return isValid; + } + + /** + * Sets the value of the isValid property. + * + */ + public void setIsValid(boolean value) { + this.isValid = value; + } + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setProperties(String value) { + this.properties = value; + } + + } + +} diff --git a/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseWSService.java b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseWSService.java new file mode 100644 index 0000000..7b63659 --- /dev/null +++ b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseWSService.java @@ -0,0 +1,94 @@ + +package ru.bvn13.licenseserverjclient.soap; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import javax.xml.ws.WebServiceException; +import javax.xml.ws.WebServiceFeature; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.2 + * + */ +@WebServiceClient(name = "CheckLicenseWSService", targetNamespace = "http://checkLicenseJ.bvn13.ru", wsdlLocation = "http://licenseserverj.cf/ws/checkLicense?WSDL") +public class CheckLicenseWSService + extends Service +{ + + private final static URL CHECKLICENSEWSSERVICE_WSDL_LOCATION; + private final static WebServiceException CHECKLICENSEWSSERVICE_EXCEPTION; + private final static QName CHECKLICENSEWSSERVICE_QNAME = new QName("http://checkLicenseJ.bvn13.ru", "CheckLicenseWSService"); + + static { + URL url = null; + WebServiceException e = null; + try { + url = new URL("http://licenseserverj.cf/ws/checkLicense?WSDL"); + } catch (MalformedURLException ex) { + e = new WebServiceException(ex); + } + CHECKLICENSEWSSERVICE_WSDL_LOCATION = url; + CHECKLICENSEWSSERVICE_EXCEPTION = e; + } + + public CheckLicenseWSService() { + super(__getWsdlLocation(), CHECKLICENSEWSSERVICE_QNAME); + } + + public CheckLicenseWSService(WebServiceFeature... features) { + super(__getWsdlLocation(), CHECKLICENSEWSSERVICE_QNAME, features); + } + + public CheckLicenseWSService(URL wsdlLocation) { + super(wsdlLocation, CHECKLICENSEWSSERVICE_QNAME); + } + + public CheckLicenseWSService(URL wsdlLocation, WebServiceFeature... features) { + super(wsdlLocation, CHECKLICENSEWSSERVICE_QNAME, features); + } + + public CheckLicenseWSService(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public CheckLicenseWSService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) { + super(wsdlLocation, serviceName, features); + } + + /** + * + * @return + * returns CheckLicenseJ + */ + @WebEndpoint(name = "SOAPOverHTTP") + public CheckLicenseJ getSOAPOverHTTP() { + return super.getPort(new QName("http://checkLicenseJ.bvn13.ru", "SOAPOverHTTP"), CheckLicenseJ.class); + } + + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns CheckLicenseJ + */ + @WebEndpoint(name = "SOAPOverHTTP") + public CheckLicenseJ getSOAPOverHTTP(WebServiceFeature... features) { + return super.getPort(new QName("http://checkLicenseJ.bvn13.ru", "SOAPOverHTTP"), CheckLicenseJ.class, features); + } + + private static URL __getWsdlLocation() { + if (CHECKLICENSEWSSERVICE_EXCEPTION!= null) { + throw CHECKLICENSEWSSERVICE_EXCEPTION; + } + return CHECKLICENSEWSSERVICE_WSDL_LOCATION; + } + +} diff --git a/src/main/java/ru/bvn13/licenseserverjclient/soap/ObjectFactory.java b/src/main/java/ru/bvn13/licenseserverjclient/soap/ObjectFactory.java new file mode 100644 index 0000000..854b383 --- /dev/null +++ b/src/main/java/ru/bvn13/licenseserverjclient/soap/ObjectFactory.java @@ -0,0 +1,95 @@ + +package ru.bvn13.licenseserverjclient.soap; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the ru.bvn13.licenseserverjclient.soap package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _CheckLicense_QNAME = new QName("http://checkLicenseJ.bvn13.ru", "checkLicense"); + private final static QName _CheckLicenseResponse_QNAME = new QName("http://checkLicenseJ.bvn13.ru", "checkLicenseResponse"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: ru.bvn13.licenseserverjclient.soap + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link CheckLicenseResponse } + * + */ + public CheckLicenseResponse createCheckLicenseResponse() { + return new CheckLicenseResponse(); + } + + /** + * Create an instance of {@link CheckLicense } + * + */ + public CheckLicense createCheckLicense() { + return new CheckLicense(); + } + + /** + * Create an instance of {@link CheckLicenseRequest } + * + */ + public CheckLicenseRequest createCheckLicenseRequest() { + return new CheckLicenseRequest(); + } + + /** + * Create an instance of {@link CheckLicenseResponse.Return } + * + */ + public CheckLicenseResponse.Return createCheckLicenseResponseReturn() { + return new CheckLicenseResponse.Return(); + } + + /** + * Create an instance of {@link CheckLicense.Arg0 } + * + */ + public CheckLicense.Arg0 createCheckLicenseArg0() { + return new CheckLicense.Arg0(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CheckLicense }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://checkLicenseJ.bvn13.ru", name = "checkLicense") + public JAXBElement createCheckLicense(CheckLicense value) { + return new JAXBElement(_CheckLicense_QNAME, CheckLicense.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://checkLicenseJ.bvn13.ru", name = "checkLicenseResponse") + public JAXBElement createCheckLicenseResponse(Object value) { + return new JAXBElement(_CheckLicenseResponse_QNAME, Object.class, null, value); + } + +} diff --git a/src/main/java/ru/bvn13/licenseserverjclient/soap/package-info.java b/src/main/java/ru/bvn13/licenseserverjclient/soap/package-info.java new file mode 100644 index 0000000..6b35061 --- /dev/null +++ b/src/main/java/ru/bvn13/licenseserverjclient/soap/package-info.java @@ -0,0 +1,2 @@ +@javax.xml.bind.annotation.XmlSchema(namespace = "http://checkLicenseJ.bvn13.ru") +package ru.bvn13.licenseserverjclient.soap;