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 @@
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