diff options
author | Santo Cariotti <santo@dcariotti.me> | 2022-01-20 10:43:22 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2022-01-20 10:43:22 +0100 |
commit | 0a58e131ce0d96ecd60c4daf2c41821a625d689b (patch) | |
tree | d67ed3c4662fa7cc83e397b2977a603396d22df6 /Year_3/TSDWL/WSDL/BankClient/web | |
parent | d62cdeb376fb5f0749ce637723a6cb305485aad8 (diff) |
wsdl: add examples
Diffstat (limited to 'Year_3/TSDWL/WSDL/BankClient/web')
6 files changed, 179 insertions, 0 deletions
diff --git a/Year_3/TSDWL/WSDL/BankClient/web/META-INF/context.xml b/Year_3/TSDWL/WSDL/BankClient/web/META-INF/context.xml new file mode 100644 index 0000000..d7ce63a --- /dev/null +++ b/Year_3/TSDWL/WSDL/BankClient/web/META-INF/context.xml @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Context path="/BankClient"/> diff --git a/Year_3/TSDWL/WSDL/BankClient/web/WEB-INF/jax-ws-catalog.xml b/Year_3/TSDWL/WSDL/BankClient/web/WEB-INF/jax-ws-catalog.xml new file mode 100644 index 0000000..21387ad --- /dev/null +++ b/Year_3/TSDWL/WSDL/BankClient/web/WEB-INF/jax-ws-catalog.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"> + <system systemId="http://localhost:8080/WsBank/BankOperations?wsdl" uri="wsdl/localhost_8080/WsBank/BankOperations.wsdl"/> + <system systemId="http://localhost:8080/WsBank/BankOperations?xsd=1" uri="wsdl/localhost_8080/WsBank/BankOperations.xsd_1.xsd"/> +</catalog>
\ No newline at end of file diff --git a/Year_3/TSDWL/WSDL/BankClient/web/WEB-INF/wsdl/localhost_8080/WsBank/BankOperations.wsdl b/Year_3/TSDWL/WSDL/BankClient/web/WEB-INF/wsdl/localhost_8080/WsBank/BankOperations.wsdl new file mode 100644 index 0000000..5227e27 --- /dev/null +++ b/Year_3/TSDWL/WSDL/BankClient/web/WEB-INF/wsdl/localhost_8080/WsBank/BankOperations.wsdl @@ -0,0 +1,74 @@ +<?xml version='1.0' encoding='UTF-8'?><!-- Published by JAX-WS RI (http://jax-ws.java.net). RI's version is Metro/2.3.2-b608 (trunk-7979; 2015-01-21T12:50:19+0000) JAXWS-RI/2.2.11-b150120.1832 JAXWS-API/2.2.12 JAXB-RI/2.2.12-b141219.1637 JAXB-API/2.2.13-b141020.1521 svn-revision#unknown. --><!-- Generated by JAX-WS RI (http://jax-ws.java.net). RI's version is Metro/2.3.2-b608 (trunk-7979; 2015-01-21T12:50:19+0000) JAXWS-RI/2.2.11-b150120.1832 JAXWS-API/2.2.12 JAXB-RI/2.2.12-b141219.1637 JAXB-API/2.2.13-b141020.1521 svn-revision#unknown. --><definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://bank.exam.dmi.it/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://bank.exam.dmi.it/" name="BankOperations"> +<types> +<xsd:schema> +<xsd:import namespace="http://bank.exam.dmi.it/" schemaLocation="http://localhost:8080/WsBank/BankOperations?xsd=1"/> +</xsd:schema> +</types> +<message name="getAmount"> +<part name="parameters" element="tns:getAmount"/> +</message> +<message name="getAmountResponse"> +<part name="parameters" element="tns:getAmountResponse"/> +</message> +<message name="deposit"> +<part name="parameters" element="tns:deposit"/> +</message> +<message name="depositResponse"> +<part name="parameters" element="tns:depositResponse"/> +</message> +<message name="get"> +<part name="parameters" element="tns:get"/> +</message> +<message name="getResponse"> +<part name="parameters" element="tns:getResponse"/> +</message> +<portType name="BankOperations"> +<operation name="getAmount"> +<input wsam:Action="http://bank.exam.dmi.it/BankOperations/getAmountRequest" message="tns:getAmount"/> +<output wsam:Action="http://bank.exam.dmi.it/BankOperations/getAmountResponse" message="tns:getAmountResponse"/> +</operation> +<operation name="deposit"> +<input wsam:Action="http://bank.exam.dmi.it/BankOperations/depositRequest" message="tns:deposit"/> +<output wsam:Action="http://bank.exam.dmi.it/BankOperations/depositResponse" message="tns:depositResponse"/> +</operation> +<operation name="get"> +<input wsam:Action="http://bank.exam.dmi.it/BankOperations/getRequest" message="tns:get"/> +<output wsam:Action="http://bank.exam.dmi.it/BankOperations/getResponse" message="tns:getResponse"/> +</operation> +</portType> +<binding name="BankOperationsPortBinding" type="tns:BankOperations"> +<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> +<operation name="getAmount"> +<soap:operation soapAction=""/> +<input> +<soap:body use="literal"/> +</input> +<output> +<soap:body use="literal"/> +</output> +</operation> +<operation name="deposit"> +<soap:operation soapAction=""/> +<input> +<soap:body use="literal"/> +</input> +<output> +<soap:body use="literal"/> +</output> +</operation> +<operation name="get"> +<soap:operation soapAction=""/> +<input> +<soap:body use="literal"/> +</input> +<output> +<soap:body use="literal"/> +</output> +</operation> +</binding> +<service name="BankOperations"> +<port name="BankOperationsPort" binding="tns:BankOperationsPortBinding"> +<soap:address location="http://localhost:8080/WsBank/BankOperations"/> +</port> +</service> +</definitions>
\ No newline at end of file diff --git a/Year_3/TSDWL/WSDL/BankClient/web/WEB-INF/wsdl/localhost_8080/WsBank/BankOperations.xsd_1.xsd b/Year_3/TSDWL/WSDL/BankClient/web/WEB-INF/wsdl/localhost_8080/WsBank/BankOperations.xsd_1.xsd new file mode 100644 index 0000000..cf469e6 --- /dev/null +++ b/Year_3/TSDWL/WSDL/BankClient/web/WEB-INF/wsdl/localhost_8080/WsBank/BankOperations.xsd_1.xsd @@ -0,0 +1,52 @@ +<?xml version='1.0' encoding='UTF-8'?><!-- Published by JAX-WS RI (http://jax-ws.java.net). RI's version is Metro/2.3.2-b608 (trunk-7979; 2015-01-21T12:50:19+0000) JAXWS-RI/2.2.11-b150120.1832 JAXWS-API/2.2.12 JAXB-RI/2.2.12-b141219.1637 JAXB-API/2.2.13-b141020.1521 svn-revision#unknown. --><xs:schema xmlns:tns="http://bank.exam.dmi.it/" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0" targetNamespace="http://bank.exam.dmi.it/"> + +<xs:element name="deposit" type="tns:deposit"/> + +<xs:element name="depositResponse" type="tns:depositResponse"/> + +<xs:element name="get" type="tns:get"/> + +<xs:element name="getAmount" type="tns:getAmount"/> + +<xs:element name="getAmountResponse" type="tns:getAmountResponse"/> + +<xs:element name="getResponse" type="tns:getResponse"/> + +<xs:complexType name="getAmount"> +<xs:sequence/> +</xs:complexType> + +<xs:complexType name="getAmountResponse"> +<xs:sequence> +<xs:element name="return" type="xs:double"/> +</xs:sequence> +</xs:complexType> + +<xs:complexType name="deposit"> +<xs:sequence> +<xs:element name="amount" type="xs:double"/> +</xs:sequence> +</xs:complexType> + +<xs:complexType name="depositResponse"> +<xs:sequence> +<xs:element name="return" type="tns:bankOperations" minOccurs="0"/> +</xs:sequence> +</xs:complexType> + +<xs:complexType name="bankOperations"> +<xs:sequence/> +</xs:complexType> + +<xs:complexType name="get"> +<xs:sequence> +<xs:element name="amount" type="xs:double"/> +</xs:sequence> +</xs:complexType> + +<xs:complexType name="getResponse"> +<xs:sequence> +<xs:element name="return" type="tns:bankOperations" minOccurs="0"/> +</xs:sequence> +</xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/Year_3/TSDWL/WSDL/BankClient/web/index.html b/Year_3/TSDWL/WSDL/BankClient/web/index.html new file mode 100644 index 0000000..b7f08ef --- /dev/null +++ b/Year_3/TSDWL/WSDL/BankClient/web/index.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<!-- +To change this license header, choose License Headers in Project Properties. +To change this template file, choose Tools | Templates +and open the template in the editor. +--> +<html> + <head> + <title>TODO supply a title</title> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + </head> + <body> + <a href="BankServlet">Go to the servlet</a> + </body> +</html> diff --git a/Year_3/TSDWL/WSDL/BankClient/web/index.jsp b/Year_3/TSDWL/WSDL/BankClient/web/index.jsp new file mode 100644 index 0000000..33763d4 --- /dev/null +++ b/Year_3/TSDWL/WSDL/BankClient/web/index.jsp @@ -0,0 +1,30 @@ +<%-- + Document : index + Created on : Jan 20, 2022, 10:23:24 AM + Author : dcariotti +--%> + +<%@page contentType="text/html" pageEncoding="UTF-8"%> +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>Bank operations</title> + </head> + <body> + <% double amount = (double) request.getAttribute("amount"); %> + <h1>Your deposit is: <%= amount %></h1> + <h1>Operations: </h1> + <form method="post"> + <div> + <label>Deposit money: </label> + <input type="number" name="deposit"> + </div> + <div> + <label>Get money: </label> + <input type="number" name="get"> + </div> + <button type="submit">Go</button> + </form> + </body> +</html> |