summaryrefslogtreecommitdiff
path: root/Year_3/TSDWL/WSDL/CountryClient/web
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-01-19 22:12:29 +0100
committerSanto Cariotti <santo@dcariotti.me>2022-01-19 22:12:29 +0100
commit941483644d9bc45927d90e10d5f946cb2189fefb (patch)
tree6a661cc59d3d0b260a0ac62a7d3db1e23f1a447d /Year_3/TSDWL/WSDL/CountryClient/web
parent79fbf3f9cc2bf2d8b9aa3c96c3d9fe7bee7577d6 (diff)
tdwl: example of remote wsdl
Diffstat (limited to 'Year_3/TSDWL/WSDL/CountryClient/web')
-rw-r--r--Year_3/TSDWL/WSDL/CountryClient/web/META-INF/context.xml2
-rw-r--r--Year_3/TSDWL/WSDL/CountryClient/web/WEB-INF/jax-ws-catalog.xml4
-rw-r--r--Year_3/TSDWL/WSDL/CountryClient/web/index.html16
-rw-r--r--Year_3/TSDWL/WSDL/CountryClient/web/list.jsp24
4 files changed, 46 insertions, 0 deletions
diff --git a/Year_3/TSDWL/WSDL/CountryClient/web/META-INF/context.xml b/Year_3/TSDWL/WSDL/CountryClient/web/META-INF/context.xml
new file mode 100644
index 0000000..bcfc615
--- /dev/null
+++ b/Year_3/TSDWL/WSDL/CountryClient/web/META-INF/context.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Context path="/CountryClient"/>
diff --git a/Year_3/TSDWL/WSDL/CountryClient/web/WEB-INF/jax-ws-catalog.xml b/Year_3/TSDWL/WSDL/CountryClient/web/WEB-INF/jax-ws-catalog.xml
new file mode 100644
index 0000000..a15a205
--- /dev/null
+++ b/Year_3/TSDWL/WSDL/CountryClient/web/WEB-INF/jax-ws-catalog.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
+ <system systemId="http://www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?wsdl" uri="wsdl/www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso.wsdl"/>
+</catalog> \ No newline at end of file
diff --git a/Year_3/TSDWL/WSDL/CountryClient/web/index.html b/Year_3/TSDWL/WSDL/CountryClient/web/index.html
new file mode 100644
index 0000000..c627c24
--- /dev/null
+++ b/Year_3/TSDWL/WSDL/CountryClient/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>
+ <div>TODO write content</div>
+ </body>
+</html>
diff --git a/Year_3/TSDWL/WSDL/CountryClient/web/list.jsp b/Year_3/TSDWL/WSDL/CountryClient/web/list.jsp
new file mode 100644
index 0000000..e3406b4
--- /dev/null
+++ b/Year_3/TSDWL/WSDL/CountryClient/web/list.jsp
@@ -0,0 +1,24 @@
+<%--
+ Document : list
+ Created on : Jan 19, 2022, 9:57:20 PM
+ Author : dcariotti
+--%>
+
+<%@page import="org.oorsprong.websamples.TCountryCodeAndName"%>
+<%@page import="java.util.List"%>
+<%@page contentType="text/html" pageEncoding="UTF-8"%>
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>Countries list</title>
+ </head>
+ <body>
+ <h1>Countries list</h1>
+ <% List<TCountryCodeAndName> languages = (List<TCountryCodeAndName>) request.getAttribute("countries"); %>
+ <% for (TCountryCodeAndName language : languages) { %>
+ <p><%= language.getSName()%> <a href="/CountryClient/SearchCapital?iso=<%= language.getSISOCode() %>">Search capital</a></p>
+ <% } %>
+
+ </body>
+</html>