From 6f0592cb2b753fb47297464a3fa1a312620da3ba Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 18 Jan 2022 20:31:22 +0100 Subject: Add WSDL exercise --- .../jax-ws/me/dcariotti/netsix/ObjectFactory.java | 71 ++++++++++++++++ .../jax-ws/me/dcariotti/netsix/Richiedi.java | 79 ++++++++++++++++++ .../me/dcariotti/netsix/RichiediResponse.java | 54 +++++++++++++ .../jax-ws/me/dcariotti/netsix/WsServ.java | 45 +++++++++++ .../jax-ws/me/dcariotti/netsix/WsServ_Service.java | 94 ++++++++++++++++++++++ .../jax-ws/me/dcariotti/netsix/package-info.java | 2 + 6 files changed, 345 insertions(+) create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/ObjectFactory.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/Richiedi.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/RichiediResponse.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/WsServ.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/WsServ_Service.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/package-info.java (limited to 'Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources') diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/ObjectFactory.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/ObjectFactory.java new file mode 100644 index 0000000..544bb11 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/ObjectFactory.java @@ -0,0 +1,71 @@ + +package me.dcariotti.netsix; + +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 me.dcariotti.netsix 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 _Richiedi_QNAME = new QName("http://wsserv.dcariotti.me/", "richiedi"); + private final static QName _RichiediResponse_QNAME = new QName("http://wsserv.dcariotti.me/", "richiediResponse"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: me.dcariotti.netsix + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link Richiedi } + * + */ + public Richiedi createRichiedi() { + return new Richiedi(); + } + + /** + * Create an instance of {@link RichiediResponse } + * + */ + public RichiediResponse createRichiediResponse() { + return new RichiediResponse(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Richiedi }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://wsserv.dcariotti.me/", name = "richiedi") + public JAXBElement createRichiedi(Richiedi value) { + return new JAXBElement(_Richiedi_QNAME, Richiedi.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RichiediResponse }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://wsserv.dcariotti.me/", name = "richiediResponse") + public JAXBElement createRichiediResponse(RichiediResponse value) { + return new JAXBElement(_RichiediResponse_QNAME, RichiediResponse.class, null, value); + } + +} diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/Richiedi.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/Richiedi.java new file mode 100644 index 0000000..9632aa4 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/Richiedi.java @@ -0,0 +1,79 @@ + +package me.dcariotti.netsix; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for richiedi complex type. + * + *

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

+ * <complexType name="richiedi">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="episode" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "richiedi", propOrder = { + "name", + "episode" +}) +public class Richiedi { + + protected String name; + protected int episode; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the episode property. + * + */ + public int getEpisode() { + return episode; + } + + /** + * Sets the value of the episode property. + * + */ + public void setEpisode(int value) { + this.episode = value; + } + +} diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/RichiediResponse.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/RichiediResponse.java new file mode 100644 index 0000000..2a3cdc5 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/RichiediResponse.java @@ -0,0 +1,54 @@ + +package me.dcariotti.netsix; + +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 richiediResponse complex type. + * + *

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

+ * <complexType name="richiediResponse">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="return" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "richiediResponse", propOrder = { + "_return" +}) +public class RichiediResponse { + + @XmlElement(name = "return") + protected boolean _return; + + /** + * Gets the value of the return property. + * + */ + public boolean isReturn() { + return _return; + } + + /** + * Sets the value of the return property. + * + */ + public void setReturn(boolean value) { + this._return = value; + } + +} diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/WsServ.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/WsServ.java new file mode 100644 index 0000000..d2e9b53 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/WsServ.java @@ -0,0 +1,45 @@ + +package me.dcariotti.netsix; + +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.Action; +import javax.xml.ws.RequestWrapper; +import javax.xml.ws.ResponseWrapper; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.6-1b01 + * Generated source version: 2.2 + * + */ +@WebService(name = "WsServ", targetNamespace = "http://wsserv.dcariotti.me/") +@XmlSeeAlso({ + ObjectFactory.class +}) +public interface WsServ { + + + /** + * + * @param name + * @param episode + * @return + * returns boolean + */ + @WebMethod + @WebResult(targetNamespace = "") + @RequestWrapper(localName = "richiedi", targetNamespace = "http://wsserv.dcariotti.me/", className = "me.dcariotti.netsix.Richiedi") + @ResponseWrapper(localName = "richiediResponse", targetNamespace = "http://wsserv.dcariotti.me/", className = "me.dcariotti.netsix.RichiediResponse") + @Action(input = "http://wsserv.dcariotti.me/WsServ/richiediRequest", output = "http://wsserv.dcariotti.me/WsServ/richiediResponse") + public boolean richiedi( + @WebParam(name = "name", targetNamespace = "") + String name, + @WebParam(name = "episode", targetNamespace = "") + int episode); + +} diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/WsServ_Service.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/WsServ_Service.java new file mode 100644 index 0000000..f2f167a --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/WsServ_Service.java @@ -0,0 +1,94 @@ + +package me.dcariotti.netsix; + +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.6-1b01 + * Generated source version: 2.2 + * + */ +@WebServiceClient(name = "WsServ", targetNamespace = "http://wsserv.dcariotti.me/", wsdlLocation = "http://localhost:8080/NetSixServer/WsServ?wsdl") +public class WsServ_Service + extends Service +{ + + private final static URL WSSERV_WSDL_LOCATION; + private final static WebServiceException WSSERV_EXCEPTION; + private final static QName WSSERV_QNAME = new QName("http://wsserv.dcariotti.me/", "WsServ"); + + static { + URL url = null; + WebServiceException e = null; + try { + url = new URL("http://localhost:8080/NetSixServer/WsServ?wsdl"); + } catch (MalformedURLException ex) { + e = new WebServiceException(ex); + } + WSSERV_WSDL_LOCATION = url; + WSSERV_EXCEPTION = e; + } + + public WsServ_Service() { + super(__getWsdlLocation(), WSSERV_QNAME); + } + + public WsServ_Service(WebServiceFeature... features) { + super(__getWsdlLocation(), WSSERV_QNAME, features); + } + + public WsServ_Service(URL wsdlLocation) { + super(wsdlLocation, WSSERV_QNAME); + } + + public WsServ_Service(URL wsdlLocation, WebServiceFeature... features) { + super(wsdlLocation, WSSERV_QNAME, features); + } + + public WsServ_Service(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public WsServ_Service(URL wsdlLocation, QName serviceName, WebServiceFeature... features) { + super(wsdlLocation, serviceName, features); + } + + /** + * + * @return + * returns WsServ + */ + @WebEndpoint(name = "WsServPort") + public WsServ getWsServPort() { + return super.getPort(new QName("http://wsserv.dcariotti.me/", "WsServPort"), WsServ.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 WsServ + */ + @WebEndpoint(name = "WsServPort") + public WsServ getWsServPort(WebServiceFeature... features) { + return super.getPort(new QName("http://wsserv.dcariotti.me/", "WsServPort"), WsServ.class, features); + } + + private static URL __getWsdlLocation() { + if (WSSERV_EXCEPTION!= null) { + throw WSSERV_EXCEPTION; + } + return WSSERV_WSDL_LOCATION; + } + +} diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/package-info.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/package-info.java new file mode 100644 index 0000000..812d7aa --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/package-info.java @@ -0,0 +1,2 @@ +@javax.xml.bind.annotation.XmlSchema(namespace = "http://wsserv.dcariotti.me/") +package me.dcariotti.netsix; -- cgit v1.2.3-18-g5258