diff --git a/pom.xml b/pom.xml
index cb3a14b..738b7eb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
Java class for checkClientLicense complex type. + * + *
The following schema fragment specifies the expected content contained within this class. + * + *
+ * <complexType name="checkClientLicense"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="request" 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" form="qualified"/> + * <element name="properties" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + *+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "checkClientLicense", propOrder = { + "request" +}) +public class CheckClientLicense { + + @XmlElement(namespace = "") + protected CheckClientLicense.Request request; + + /** + * Gets the value of the request property. + * + * @return + * possible object is + * {@link CheckClientLicense.Request } + * + */ + public CheckClientLicense.Request getRequest() { + return request; + } + + /** + * Sets the value of the request property. + * + * @param value + * allowed object is + * {@link CheckClientLicense.Request } + * + */ + public void setRequest(CheckClientLicense.Request value) { + this.request = 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" form="qualified"/> + * <element name="properties" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + *+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "clientId", + "properties" + }) + public static class Request { + + @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/CheckClientLicenseResponse.java b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckClientLicenseResponse.java new file mode 100644 index 0000000..8e0e0bf --- /dev/null +++ b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckClientLicenseResponse.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 checkClientLicenseResponse complex type. + * + *
The following schema fragment specifies the expected content contained within this class. + * + *
+ * <complexType name="checkClientLicenseResponse"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="response" 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" 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="properties" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + *+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "checkClientLicenseResponse", propOrder = { + "response" +}) +public class CheckClientLicenseResponse { + + @XmlElement(namespace = "") + protected CheckClientLicenseResponse.Response response; + + /** + * Gets the value of the response property. + * + * @return + * possible object is + * {@link CheckClientLicenseResponse.Response } + * + */ + public CheckClientLicenseResponse.Response getResponse() { + return response; + } + + /** + * Sets the value of the response property. + * + * @param value + * allowed object is + * {@link CheckClientLicenseResponse.Response } + * + */ + public void setResponse(CheckClientLicenseResponse.Response value) { + this.response = 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" 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="properties" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + *+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "clientId", + "date", + "isValid", + "properties" + }) + public static class Response { + + @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/CheckLicenseJ.java b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseJ.java deleted file mode 100644 index c53baff..0000000 --- a/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseJ.java +++ /dev/null @@ -1,38 +0,0 @@ - -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 index fba85f5..59836ee 100644 --- a/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseRequest.java +++ b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseRequest.java @@ -18,8 +18,8 @@ import javax.xml.bind.annotation.XmlType; * <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"/> + * <element name="clientId" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/> + * <element name="properties" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseResponse.java b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseResponse.java index e251d9a..007e89e 100644 --- a/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseResponse.java +++ b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseResponse.java @@ -4,35 +4,26 @@ 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.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.datatype.XMLGregorianCalendar; /** - *
Java class for checkLicenseResponse complex type. + *
Java class for anonymous complex type. * *
The following schema fragment specifies the expected content contained within this class. * *
- * <complexType name="checkLicenseResponse"> + * <complexType> * <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> + * <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="properties" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/> * </sequence> * </restriction> * </complexContent> @@ -42,167 +33,110 @@ import javax.xml.datatype.XMLGregorianCalendar; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "checkLicenseResponse", propOrder = { - "_return" +@XmlType(name = "", propOrder = { + "clientId", + "date", + "isValid", + "properties" }) +@XmlRootElement(name = "checkLicenseResponse") public class CheckLicenseResponse { - @XmlElement(name = "return") - protected CheckLicenseResponse.Return _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 return property. + * Gets the value of the clientId property. * * @return * possible object is - * {@link CheckLicenseResponse.Return } + * {@link String } * */ - public CheckLicenseResponse.Return getReturn() { - return _return; + public String getClientId() { + return clientId; } /** - * Sets the value of the return property. + * Sets the value of the clientId property. * * @param value * allowed object is - * {@link CheckLicenseResponse.Return } + * {@link String } * */ - public void setReturn(CheckLicenseResponse.Return value) { - this._return = value; + 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; + } /** - *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> - *+ * 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. * */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "", propOrder = { - "clientId", - "date", - "isValid", - "properties" - }) - public static class Return { + public boolean isIsValid() { + return isValid; + } - @XmlElement(required = true) - protected String clientId; - @XmlElement(required = true) - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar date; - protected boolean isValid; - @XmlElement(required = true) - protected String properties; + /** + * Sets the value of the isValid property. + * + */ + public void setIsValid(boolean value) { + this.isValid = value; + } - /** - * 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; - } + /** + * 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/CheckLicenseWS.java b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseWS.java new file mode 100644 index 0000000..142ef3b --- /dev/null +++ b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseWS.java @@ -0,0 +1,40 @@ + +package ru.bvn13.licenseserverjclient.soap; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.ws.RequestWrapper; +import javax.xml.ws.ResponseWrapper; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.2 + * + */ +@WebService(name = "CheckLicenseWS", targetNamespace = "http://checkLicenseJ.bvn13.ru") +@XmlSeeAlso({ + ObjectFactory.class +}) +public interface CheckLicenseWS { + + + /** + * + * @param request + * @return + * returns ru.bvn13.licenseserverjclient.soap.CheckClientLicenseResponse.Response + */ + @WebMethod + @WebResult(name = "response", targetNamespace = "") + @RequestWrapper(localName = "checkClientLicense", targetNamespace = "http://checkLicenseJ.bvn13.ru", className = "ru.bvn13.licenseserverjclient.soap.CheckClientLicense") + @ResponseWrapper(localName = "checkClientLicenseResponse", targetNamespace = "http://checkLicenseJ.bvn13.ru", className = "ru.bvn13.licenseserverjclient.soap.CheckClientLicenseResponse") + public ru.bvn13.licenseserverjclient.soap.CheckClientLicenseResponse.Response checkClientLicense( + @WebParam(name = "request", targetNamespace = "") + ru.bvn13.licenseserverjclient.soap.CheckClientLicense.Request request); + +} diff --git a/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseWSService.java b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseWSService.java index 7b63659..00979c5 100644 --- a/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseWSService.java +++ b/src/main/java/ru/bvn13/licenseserverjclient/soap/CheckLicenseWSService.java @@ -65,11 +65,11 @@ public class CheckLicenseWSService /** * * @return - * returns CheckLicenseJ + * returns CheckLicenseWS */ @WebEndpoint(name = "SOAPOverHTTP") - public CheckLicenseJ getSOAPOverHTTP() { - return super.getPort(new QName("http://checkLicenseJ.bvn13.ru", "SOAPOverHTTP"), CheckLicenseJ.class); + public CheckLicenseWS getSOAPOverHTTP() { + return super.getPort(new QName("http://checkLicenseJ.bvn13.ru", "SOAPOverHTTP"), CheckLicenseWS.class); } /** @@ -77,11 +77,11 @@ public class CheckLicenseWSService * @param features * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in thefeatures
parameter will have their default values. * @return - * returns CheckLicenseJ + * returns CheckLicenseWS */ @WebEndpoint(name = "SOAPOverHTTP") - public CheckLicenseJ getSOAPOverHTTP(WebServiceFeature... features) { - return super.getPort(new QName("http://checkLicenseJ.bvn13.ru", "SOAPOverHTTP"), CheckLicenseJ.class, features); + public CheckLicenseWS getSOAPOverHTTP(WebServiceFeature... features) { + return super.getPort(new QName("http://checkLicenseJ.bvn13.ru", "SOAPOverHTTP"), CheckLicenseWS.class, features); } private static URL __getWsdlLocation() { diff --git a/src/main/java/ru/bvn13/licenseserverjclient/soap/ObjectFactory.java b/src/main/java/ru/bvn13/licenseserverjclient/soap/ObjectFactory.java index 854b383..fbd2b6c 100644 --- a/src/main/java/ru/bvn13/licenseserverjclient/soap/ObjectFactory.java +++ b/src/main/java/ru/bvn13/licenseserverjclient/soap/ObjectFactory.java @@ -24,8 +24,8 @@ import javax.xml.namespace.QName; @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"); + private final static QName _CheckClientLicense_QNAME = new QName("http://checkLicenseJ.bvn13.ru", "checkClientLicense"); + private final static QName _CheckClientLicenseResponse_QNAME = new QName("http://checkLicenseJ.bvn13.ru", "checkClientLicenseResponse"); /** * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: ru.bvn13.licenseserverjclient.soap @@ -35,19 +35,19 @@ public class ObjectFactory { } /** - * Create an instance of {@link CheckLicenseResponse } + * Create an instance of {@link CheckClientLicenseResponse } * */ - public CheckLicenseResponse createCheckLicenseResponse() { - return new CheckLicenseResponse(); + public CheckClientLicenseResponse createCheckClientLicenseResponse() { + return new CheckClientLicenseResponse(); } /** - * Create an instance of {@link CheckLicense } + * Create an instance of {@link CheckClientLicense } * */ - public CheckLicense createCheckLicense() { - return new CheckLicense(); + public CheckClientLicense createCheckClientLicense() { + return new CheckClientLicense(); } /** @@ -59,37 +59,45 @@ public class ObjectFactory { } /** - * Create an instance of {@link CheckLicenseResponse.Return } + * Create an instance of {@link CheckLicenseResponse } * */ - public CheckLicenseResponse.Return createCheckLicenseResponseReturn() { - return new CheckLicenseResponse.Return(); + public CheckLicenseResponse createCheckLicenseResponse() { + return new CheckLicenseResponse(); } /** - * Create an instance of {@link CheckLicense.Arg0 } + * Create an instance of {@link CheckClientLicenseResponse.Response } * */ - public CheckLicense.Arg0 createCheckLicenseArg0() { - return new CheckLicense.Arg0(); + public CheckClientLicenseResponse.Response createCheckClientLicenseResponseResponse() { + return new CheckClientLicenseResponse.Response(); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link CheckLicense }{@code >}} + * Create an instance of {@link CheckClientLicense.Request } * */ - @XmlElementDecl(namespace = "http://checkLicenseJ.bvn13.ru", name = "checkLicense") - public JAXBElementcreateCheckLicense(CheckLicense value) { - return new JAXBElement (_CheckLicense_QNAME, CheckLicense.class, null, value); + public CheckClientLicense.Request createCheckClientLicenseRequest() { + return new CheckClientLicense.Request(); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link CheckClientLicense }{@code >}} * */ - @XmlElementDecl(namespace = "http://checkLicenseJ.bvn13.ru", name = "checkLicenseResponse") - public JAXBElement