formData = new MultivaluedMapImpl();
-
- formData.add("id", "10295765");
- formData.add("password", "Value!12");
-
- ClientResponse response = webResource.path("dev").path("login").type(MediaType.APPLICATION_FORM_URLENCODED)
- .post(ClientResponse.class, formData);
-
- System.out.println("Response " + response.getEntity(String.class));
- }
-}
diff --git a/src/test/restclient/JerseyPostHeader.java b/src/test/restclient/JerseyPostHeader.java
deleted file mode 100644
index ae8f69e..0000000
--- a/src/test/restclient/JerseyPostHeader.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package testing.rest;
-
-import javax.ws.rs.client.ClientBuilder;
-import javax.ws.rs.client.WebTarget;
-import javax.ws.rs.core.MediaType;
-
-import com.sun.jersey.api.client.Client;
-import com.sun.jersey.api.client.ClientResponse;
-import com.sun.jersey.api.client.WebResource;
-import com.sun.jersey.api.representation.Form;
-
-public class JerseyPostHeader {
-
- Client client = (Client) ClientBuilder.newClient();
- WebTarget target = ((javax.ws.rs.client.Client) client).target("http://localhost:9998").path("resource");
-
- Form form = new Form();
- // form.param("x", "foo");
- // form.param("y", "bar");
-
- // String bean =
- // target.request(MediaType.APPLICATION_JSON_TYPE).post(MediaType.APPLICATION_FORM_URLENCODED_TYPE,
- // String.class);
-}
diff --git a/src/test/restclient/JerseyTest.java b/src/test/restclient/JerseyTest.java
deleted file mode 100644
index a474dc2..0000000
--- a/src/test/restclient/JerseyTest.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package testing.rest;
-
-import javax.ws.rs.client.Entity;
-import javax.ws.rs.client.WebTarget;
-import javax.ws.rs.core.Response;
-
-import com.sun.jersey.api.client.Client;
-import com.sun.jersey.api.client.WebResource;
-
-import bean.AttendanceRegister;
-
-public class JerseyTest {
-
- public static void main(String[] args) {
- testAttendanceRegister();
- // responseREST();
- }
-
- String responseREST() {
- // Client client =(Client) ClientBuilder.newClient();
- Client client = Client.create();
- WebResource target = client.resource("https://ctpoixww04.execute-api.us-east-1.amazonaws.com/dev/login");
- String input = "{\"id\":\"10295765\",\"password\":\"Value!12\"}";
-
- Response response = ((WebTarget) target).request("application/json").post(Entity.json(input));
- // System.out.println(response.toString());
-
- return response.toString();
- }
-
- static void testAttendanceRegister() {
- AttendanceRegister att = new AttendanceRegister();
- att.confirmAttendance();
- }
-
-}
diff --git a/src/test/restclient/NetClientPost.java b/src/test/restclient/NetClientPost.java
deleted file mode 100644
index 213b3af..0000000
--- a/src/test/restclient/NetClientPost.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package testing.rest;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.io.OutputStream;
-import java.net.HttpURLConnection;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-public class NetClientPost {
-
- // http://localhost:8080/RESTfulExample/json/product/post
- public static void main(String[] args) {
-
- try {
- URL url = new URL("https://fahze41owc.execute-api.us-east-1.amazonaws.com/dev/user");
- HttpURLConnection conn = (HttpURLConnection) url.openConnection();
- conn.setDoOutput(true);
- conn.setRequestMethod("POST");
- conn.setRequestProperty("Content-Type", "application/json");
-
- String input = "{\r\n" +
- " \"id\": \"102030\",\r\n" +
- " \"firstName\": \"Julito\",\r\n" +
- " \"lastName\": \"Schwartzenegger\",\r\n" +
- " \"type\": \"administrator\"\r\n" +
- "}";
-
- OutputStream os = conn.getOutputStream();
- os.write(input.getBytes());
- os.flush();
-
- if (conn.getResponseCode() != HttpURLConnection.HTTP_CREATED) {
- throw new RuntimeException("Failed : HTTP error code : " + conn.getResponseCode());
- }
-
- BufferedReader br = new BufferedReader(new InputStreamReader((conn.getInputStream())));
-
- String output;
- System.out.println("Output from Server .... \n");
- while ((output = br.readLine()) != null) {
- System.out.println(output);
- }
-
- conn.disconnect();
-
- } catch (MalformedURLException e) {
-
- e.printStackTrace();
-
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
-}
\ No newline at end of file
diff --git a/src/test/restclient/TestJSONResponse.java b/src/test/restclient/TestJSONResponse.java
deleted file mode 100644
index 46de1f6..0000000
--- a/src/test/restclient/TestJSONResponse.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package jersey;
-
-import java.io.BufferedReader;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.OutputStream;
-import java.net.HttpURLConnection;
-import java.net.MalformedURLException;
-import java.net.URL;
-import javax.json.Json;
-import javax.json.stream.JsonParser;
-import javax.json.stream.JsonParser.Event;
-
-public class TestJSONResponse {
-
- public static void main(String[] args) throws MalformedURLException {
- //URL url = new URL("https://graph.facebook.com/search?q=java&type=post");
- //URL url = new URL("https://ctpoixww04.execute-api.us-east-1.amazonaws.com/dev/login");
-
- //try (InputStream is = url.openStream(); JsonParser parser = Json.createParser(is)) {
- try {
- URL url = new URL("https://ctpoixww04.execute-api.us-east-1.amazonaws.com/dev/login");
- HttpURLConnection conn = (HttpURLConnection) url.openConnection();
- conn.setDoOutput(true);
- conn.setRequestMethod("POST");
- conn.setRequestProperty("Content-Type", "application/json");
-
- String input = "{\"id\":\"10295765\",\"password\":\"Value!12\"}";
-
- OutputStream os = conn.getOutputStream();
- // 1.The client sends their credentials (username and password) to the server.
- os.write(input.getBytes());
- os.flush();
-
- BufferedReader br = new BufferedReader(new InputStreamReader((conn.getInputStream())));
-
- JsonParser parser = (JsonParser) Json.createReader(br);
-
- while (parser.hasNext()) {
- Event e = parser.next();
- if (e == Event.KEY_NAME) {
- switch (parser.getString()) {
- case "RefreshToken":
- parser.next();
- System.out.print(parser.getString());
- System.out.print(": ");
- break;
- case "IdToken":
- parser.next();
- System.out.println(parser.getString());
- System.out.println("---------");
- break;
- }
- }
- }
- } catch (Exception e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- }
-}
diff --git a/src/test/restclient/TestRestClient.java b/src/test/restclient/TestRestClient.java
deleted file mode 100644
index db047ad..0000000
--- a/src/test/restclient/TestRestClient.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package rest;
-
-import com.sun.jersey.api.client.Client;
-import com.sun.jersey.api.client.ClientResponse;
-import com.sun.jersey.api.client.WebResource;
-
-public class TestRestClient {
- string AWS_URL="https://ctpoixww04.execute-api.us-east-1.amazonaws.com/dev/login";
-
- public void cheackServerAvailable(){
-
- }
-
- public void testAWSConnectAPI() {
-
- try {
-
- Client client = Client.create();
- WebResource webResource = client.resource(+ AWS_URL);
- String input = "{\"id\":\"10295765\",\"password\":\"TestPassword!12\"}";
- ClientResponse response = webResource.type("application/json").post(ClientResponse.class, input);
-
- if (response.getStatus() != 201) {
- throw new RuntimeException("Failed : HTTP error code : "
- + response.getStatus());
- }
-
- System.out.println("Output from Server .... \n");
- String output = response.getEntity(String.class);
- System.out.println(output);
-
- } catch (Exception e) {
-
- e.printStackTrace();
-
- }
- }
-}
diff --git a/src/test/wsclient/GeoIP.java b/src/test/wsclient/GeoIP.java
deleted file mode 100644
index 0e9bf9a..0000000
--- a/src/test/wsclient/GeoIP.java
+++ /dev/null
@@ -1,170 +0,0 @@
- /**
- * Class GeoIP imported from WSDL with java tool
- * replicates WSDL to invoke External Web service
- */
-
-package wsclient;
-
-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 GeoIP complex type.
- *
- *
The following schema fragment specifies the expected content contained within this class.
- *
- *
- * <complexType name="GeoIP">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="ReturnCode" type="{http://www.w3.org/2001/XMLSchema}int"/>
- * <element name="IP" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- * <element name="ReturnCodeDetails" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- * <element name="CountryName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- * <element name="CountryCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "GeoIP", propOrder = {
- "returnCode",
- "ip",
- "returnCodeDetails",
- "countryName",
- "countryCode"
-})
-public class GeoIP {
-
- @XmlElement(name = "ReturnCode")
- protected int returnCode;
- @XmlElement(name = "IP")
- protected String ip;
- @XmlElement(name = "ReturnCodeDetails")
- protected String returnCodeDetails;
- @XmlElement(name = "CountryName")
- protected String countryName;
- @XmlElement(name = "CountryCode")
- protected String countryCode;
-
- /**
- * Gets the value of the returnCode property.
- *
- */
- public int getReturnCode() {
- return returnCode;
- }
-
- /**
- * Sets the value of the returnCode property.
- *
- */
- public void setReturnCode(int value) {
- this.returnCode = value;
- }
-
- /**
- * Gets the value of the ip property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getIP() {
- return ip;
- }
-
- /**
- * Sets the value of the ip property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setIP(String value) {
- this.ip = value;
- }
-
- /**
- * Gets the value of the returnCodeDetails property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getReturnCodeDetails() {
- return returnCodeDetails;
- }
-
- /**
- * Sets the value of the returnCodeDetails property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setReturnCodeDetails(String value) {
- this.returnCodeDetails = value;
- }
-
- /**
- * Gets the value of the countryName property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getCountryName() {
- return countryName;
- }
-
- /**
- * Sets the value of the countryName property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setCountryName(String value) {
- this.countryName = value;
- }
-
- /**
- * Gets the value of the countryCode property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getCountryCode() {
- return countryCode;
- }
-
- /**
- * Sets the value of the countryCode property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setCountryCode(String value) {
- this.countryCode = value;
- }
-
-}
diff --git a/src/test/wsclient/GeoIPService.java b/src/test/wsclient/GeoIPService.java
deleted file mode 100644
index b3eecd0..0000000
--- a/src/test/wsclient/GeoIPService.java
+++ /dev/null
@@ -1,98 +0,0 @@
- /**
- * Class GeoIPService imported from WSDL with java tool
- * replicates WSDL to invoke External Web service
- */
-
-package wsclient;
-
-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 = "GeoIPService", targetNamespace = "http://www.webservicex.net/", wsdlLocation = "http://www.webservicex.net/geoipservice.asmx?WSDL")
-public class GeoIPService
- extends Service
-{
-
- private final static URL GEOIPSERVICE_WSDL_LOCATION;
- private final static WebServiceException GEOIPSERVICE_EXCEPTION;
- private final static QName GEOIPSERVICE_QNAME = new QName("http://www.webservicex.net/", "GeoIPService");
-
- static {
- URL url = null;
- WebServiceException e = null;
- try {
- url = new URL("http://www.webservicex.net/geoipservice.asmx?WSDL");
- } catch (MalformedURLException ex) {
- e = new WebServiceException(ex);
- }
- GEOIPSERVICE_WSDL_LOCATION = url;
- GEOIPSERVICE_EXCEPTION = e;
- }
-
- public GeoIPService() {
- super(__getWsdlLocation(), GEOIPSERVICE_QNAME);
- }
-
- public GeoIPService(WebServiceFeature... features) {
- super(__getWsdlLocation(), GEOIPSERVICE_QNAME, features);
- }
-
- public GeoIPService(URL wsdlLocation) {
- super(wsdlLocation, GEOIPSERVICE_QNAME);
- }
-
- public GeoIPService(URL wsdlLocation, WebServiceFeature... features) {
- super(wsdlLocation, GEOIPSERVICE_QNAME, features);
- }
-
- public GeoIPService(URL wsdlLocation, QName serviceName) {
- super(wsdlLocation, serviceName);
- }
-
- public GeoIPService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
- super(wsdlLocation, serviceName, features);
- }
-
- /**
- *
- * @return
- * returns GeoIPServiceSoap
- */
- @WebEndpoint(name = "GeoIPServiceSoap")
- public GeoIPServiceSoap getGeoIPServiceSoap() {
- return super.getPort(new QName("http://www.webservicex.net/", "GeoIPServiceSoap"), GeoIPServiceSoap.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 GeoIPServiceSoap
- */
- @WebEndpoint(name = "GeoIPServiceSoap")
- public GeoIPServiceSoap getGeoIPServiceSoap(WebServiceFeature... features) {
- return super.getPort(new QName("http://www.webservicex.net/", "GeoIPServiceSoap"), GeoIPServiceSoap.class, features);
- }
-
- private static URL __getWsdlLocation() {
- if (GEOIPSERVICE_EXCEPTION!= null) {
- throw GEOIPSERVICE_EXCEPTION;
- }
- return GEOIPSERVICE_WSDL_LOCATION;
- }
-
-}
diff --git a/src/test/wsclient/GeoIPServiceSoap.java b/src/test/wsclient/GeoIPServiceSoap.java
deleted file mode 100644
index af50614..0000000
--- a/src/test/wsclient/GeoIPServiceSoap.java
+++ /dev/null
@@ -1,56 +0,0 @@
- /**
- * Class GeoIPServiceSoap imported from WSDL with java tool
- * replicates WSDL to invoke External Web service
- */
-
-package wsclient;
-
-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 = "GeoIPServiceSoap", targetNamespace = "http://www.webservicex.net/")
-@XmlSeeAlso({
- ObjectFactory.class
-})
-public interface GeoIPServiceSoap {
-
- /**
- * GeoIPService - GetGeoIP enables you to easily look up countries by IP addresses
- *
- * @param ipAddress
- * @return
- * returns wsclient.GeoIP
- */
- @WebMethod(operationName = "GetGeoIP", action = "http://www.webservicex.net/GetGeoIP")
- @WebResult(name = "GetGeoIPResult", targetNamespace = "http://www.webservicex.net/")
- @RequestWrapper(localName = "GetGeoIP", targetNamespace = "http://www.webservicex.net/", className = "wsclient.GetGeoIP")
- @ResponseWrapper(localName = "GetGeoIPResponse", targetNamespace = "http://www.webservicex.net/", className = "wsclient.GetGeoIPResponse")
- public GeoIP getGeoIP(
- @WebParam(name = "IPAddress", targetNamespace = "http://www.webservicex.net/")
- String ipAddress);
-
- /**
- * GeoIPService - GetGeoIPContext enables you to easily look up countries by Context
- *
- * @return
- * returns wsclient.GeoIP
- */
- @WebMethod(operationName = "GetGeoIPContext", action = "http://www.webservicex.net/GetGeoIPContext")
- @WebResult(name = "GetGeoIPContextResult", targetNamespace = "http://www.webservicex.net/")
- @RequestWrapper(localName = "GetGeoIPContext", targetNamespace = "http://www.webservicex.net/", className = "wsclient.GetGeoIPContext")
- @ResponseWrapper(localName = "GetGeoIPContextResponse", targetNamespace = "http://www.webservicex.net/", className = "wsclient.GetGeoIPContextResponse")
- public GeoIP getGeoIPContext();
-
-}
diff --git a/src/test/wsclient/GetGeoIP.java b/src/test/wsclient/GetGeoIP.java
deleted file mode 100644
index fcb0571..0000000
--- a/src/test/wsclient/GetGeoIP.java
+++ /dev/null
@@ -1,68 +0,0 @@
- /**
- * Class GetGeoIP imported from WSDL with java tool
- * replicates WSDL to invoke External Web service
- */
-
-package wsclient;
-
-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="IPAddress" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "", propOrder = {
- "ipAddress"
-})
-@XmlRootElement(name = "GetGeoIP")
-public class GetGeoIP {
-
- @XmlElement(name = "IPAddress")
- protected String ipAddress;
-
- /**
- * Gets the value of the ipAddress property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getIPAddress() {
- return ipAddress;
- }
-
- /**
- * Sets the value of the ipAddress property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setIPAddress(String value) {
- this.ipAddress = value;
- }
-}
diff --git a/src/test/wsclient/GetGeoIPContext.java b/src/test/wsclient/GetGeoIPContext.java
deleted file mode 100644
index 5a9adbc..0000000
--- a/src/test/wsclient/GetGeoIPContext.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * Class GetGeoIPContext imported from WSDL with java tool
- * replicates WSDL to invoke External Web service
- */
-
-package wsclient;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-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">
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "")
-@XmlRootElement(name = "GetGeoIPContext")
-public class GetGeoIPContext {
-
-}
diff --git a/src/test/wsclient/GetGeoIPContextResponse.java b/src/test/wsclient/GetGeoIPContextResponse.java
deleted file mode 100644
index 0fbb17b..0000000
--- a/src/test/wsclient/GetGeoIPContextResponse.java
+++ /dev/null
@@ -1,68 +0,0 @@
- /**
- * Class getGeoIPContextResult imported from WSDL with java tool
- * replicates WSDL to invoke External Web service
- */
-
-package wsclient;
-
-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="GetGeoIPContextResult" type="{http://www.webservicex.net/}GeoIP" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "", propOrder = {
- "getGeoIPContextResult"
-})
-@XmlRootElement(name = "GetGeoIPContextResponse")
-public class GetGeoIPContextResponse {
-
- @XmlElement(name = "GetGeoIPContextResult")
- protected GeoIP getGeoIPContextResult;
-
- /**
- * Gets the value of the getGeoIPContextResult property.
- *
- * @return
- * possible object is
- * {@link GeoIP }
- *
- */
- public GeoIP getGetGeoIPContextResult() {
- return getGeoIPContextResult;
- }
-
- /**
- * Sets the value of the getGeoIPContextResult property.
- *
- * @param value
- * allowed object is
- * {@link GeoIP }
- *
- */
- public void setGetGeoIPContextResult(GeoIP value) {
- this.getGeoIPContextResult = value;
- }
-
-}
diff --git a/src/test/wsclient/GetGeoIPResponse.java b/src/test/wsclient/GetGeoIPResponse.java
deleted file mode 100644
index e5e621e..0000000
--- a/src/test/wsclient/GetGeoIPResponse.java
+++ /dev/null
@@ -1,67 +0,0 @@
- /**
- * Class getGeoIPResult imported from WSDL with java tool
- * replicates WSDL to invoke External Web service
- */
-
-package wsclient;
-
-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="GetGeoIPResult" type="{http://www.webservicex.net/}GeoIP" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "", propOrder = {
- "getGeoIPResult"
-})
-@XmlRootElement(name = "GetGeoIPResponse")
-public class GetGeoIPResponse {
-
- @XmlElement(name = "GetGeoIPResult")
- protected GeoIP getGeoIPResult;
-
- /**
- * Gets the value of the getGeoIPResult property.
- *
- * @return
- * possible object is
- * {@link GeoIP }
- *
- */
- public GeoIP getGetGeoIPResult() {
- return getGeoIPResult;
- }
-
- /**
- * Sets the value of the getGeoIPResult property.
- *
- * @param value
- * allowed object is
- * {@link GeoIP }
- *
- */
- public void setGetGeoIPResult(GeoIP value) {
- this.getGeoIPResult = value;
- }
-
-}
diff --git a/src/test/wsclient/ObjectFactory.java b/src/test/wsclient/ObjectFactory.java
deleted file mode 100644
index 0c8da64..0000000
--- a/src/test/wsclient/ObjectFactory.java
+++ /dev/null
@@ -1,89 +0,0 @@
- /**
- * Class ObjectFactory imported from WSDL with java tool
- * replicates WSDL to invoke External Web service
- */
-
-package wsclient;
-
-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 wsclient 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 _GeoIP_QNAME = new QName("http://www.webservicex.net/", "GeoIP");
-
- /**
- * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: wsclient
- *
- */
- public ObjectFactory() {
- }
-
- /**
- * Create an instance of {@link GeoIP }
- *
- */
- public GeoIP createGeoIP() {
- return new GeoIP();
- }
-
- /**
- * Create an instance of {@link GetGeoIP }
- *
- */
- public GetGeoIP createGetGeoIP() {
- return new GetGeoIP();
- }
-
- /**
- * Create an instance of {@link GetGeoIPResponse }
- *
- */
- public GetGeoIPResponse createGetGeoIPResponse() {
- return new GetGeoIPResponse();
- }
-
- /**
- * Create an instance of {@link GetGeoIPContextResponse }
- *
- */
- public GetGeoIPContextResponse createGetGeoIPContextResponse() {
- return new GetGeoIPContextResponse();
- }
-
- /**
- * Create an instance of {@link GetGeoIPContext }
- *
- */
- public GetGeoIPContext createGetGeoIPContext() {
- return new GetGeoIPContext();
- }
-
- /**
- * Create an instance of {@link JAXBElement }{@code <}{@link GeoIP }{@code >}}
- *
- */
- @XmlElementDecl(namespace = "http://www.webservicex.net/", name = "GeoIP")
- public JAXBElement createGeoIP(GeoIP value) {
- return new JAXBElement(_GeoIP_QNAME, GeoIP.class, null, value);
- }
-
-}
diff --git a/src/test/wsclient/package-info.java b/src/test/wsclient/package-info.java
deleted file mode 100644
index 485323c..0000000
--- a/src/test/wsclient/package-info.java
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * injects annotation for java tool to work and invoke the WSDL
- */
-
-@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.webservicex.net/", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
-package wsclient;
diff --git a/src/test/wsdl/ServiceInvokationTest.java b/src/test/wsdl/ServiceInvokationTest.java
deleted file mode 100644
index ff82ba3..0000000
--- a/src/test/wsdl/ServiceInvokationTest.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package attendance.wsdl;
-
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
-
-import org.junit.Test;
-
-import bean.AttendanceRegister;
-import service.MainService;
-
-public class ServiceInvokationTest {
-
- MainService testService = new MainService();
- AttendanceRegister attend = new AttendanceRegister();
-
- @Test
- public void testWSDLSuccess() {
-
- assertTrue(testService.invokeWSDLForIP().length()>2);
- //System.out.println(testService.invokeWSDLForIP());
- }
-
- @Test
- public void testRestBibleSuccess() {
- assertTrue(testService.invokeRestForBibleVerse().length()>2);
- //System.out.println(testService.invokeRestForBibleVerse());
- }
-}