The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *
17 | * <complexType> 18 | * <complexContent> 19 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 20 | * <sequence> 21 | * <element name="FromCurrency" type="{http://www.webserviceX.NET/}Currency"/> 22 | * <element name="ToCurrency" type="{http://www.webserviceX.NET/}Currency"/> 23 | * </sequence> 24 | * </restriction> 25 | * </complexContent> 26 | * </complexType> 27 | *28 | * 29 | * 30 | */ 31 | @XmlAccessorType(XmlAccessType.FIELD) 32 | @XmlType(name = "", propOrder = { 33 | "fromCurrency", 34 | "toCurrency" 35 | }) 36 | @XmlRootElement(name = "ConversionRate") 37 | public class ConversionRate { 38 | 39 | @XmlElement(name = "FromCurrency", required = true) 40 | protected Currency fromCurrency; 41 | @XmlElement(name = "ToCurrency", required = true) 42 | protected Currency toCurrency; 43 | 44 | /** 45 | * Gets the value of the fromCurrency property. 46 | * 47 | * @return 48 | * possible object is 49 | * {@link Currency } 50 | * 51 | */ 52 | public Currency getFromCurrency() { 53 | return fromCurrency; 54 | } 55 | 56 | /** 57 | * Sets the value of the fromCurrency property. 58 | * 59 | * @param value 60 | * allowed object is 61 | * {@link Currency } 62 | * 63 | */ 64 | public void setFromCurrency(Currency value) { 65 | this.fromCurrency = value; 66 | } 67 | 68 | /** 69 | * Gets the value of the toCurrency property. 70 | * 71 | * @return 72 | * possible object is 73 | * {@link Currency } 74 | * 75 | */ 76 | public Currency getToCurrency() { 77 | return toCurrency; 78 | } 79 | 80 | /** 81 | * Sets the value of the toCurrency property. 82 | * 83 | * @param value 84 | * allowed object is 85 | * {@link Currency } 86 | * 87 | */ 88 | public void setToCurrency(Currency value) { 89 | this.toCurrency = value; 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/ConversionRateResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.currencyConvertor; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | import javax.xml.bind.annotation.XmlType; 9 | 10 | 11 | /** 12 | *
Java class for anonymous complex type. 13 | * 14 | *
The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *
17 | * <complexType> 18 | * <complexContent> 19 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 20 | * <sequence> 21 | * <element name="ConversionRateResult" type="{http://www.w3.org/2001/XMLSchema}double"/> 22 | * </sequence> 23 | * </restriction> 24 | * </complexContent> 25 | * </complexType> 26 | *27 | * 28 | * 29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "", propOrder = { 32 | "conversionRateResult" 33 | }) 34 | @XmlRootElement(name = "ConversionRateResponse") 35 | public class ConversionRateResponse { 36 | 37 | @XmlElement(name = "ConversionRateResult") 38 | protected double conversionRateResult; 39 | 40 | /** 41 | * Gets the value of the conversionRateResult property. 42 | * 43 | */ 44 | public double getConversionRateResult() { 45 | return conversionRateResult; 46 | } 47 | 48 | /** 49 | * Sets the value of the conversionRateResult property. 50 | * 51 | */ 52 | public void setConversionRateResult(double value) { 53 | this.conversionRateResult = value; 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/CurrencyConvertor.java: -------------------------------------------------------------------------------- 1 | package businessLayer.webserviceClients.currencyConvertor; 2 | 3 | import java.net.MalformedURLException; 4 | import java.net.URL; 5 | import javax.xml.namespace.QName; 6 | import javax.xml.ws.WebEndpoint; 7 | import javax.xml.ws.WebServiceClient; 8 | import javax.xml.ws.WebServiceFeature; 9 | import javax.xml.ws.Service; 10 | 11 | /** 12 | * This class was generated by Apache CXF 3.0.0-milestone2 13 | * 2014-03-14T14:08:47.028+05:30 14 | * Generated source version: 3.0.0-milestone2 15 | * 16 | */ 17 | @WebServiceClient(name = "CurrencyConvertor", 18 | wsdlLocation = "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL", 19 | targetNamespace = "http://www.webserviceX.NET/") 20 | public class CurrencyConvertor extends Service { 21 | 22 | public final static URL WSDL_LOCATION; 23 | 24 | public final static QName SERVICE = new QName("http://www.webserviceX.NET/", "CurrencyConvertor"); 25 | public final static QName CurrencyConvertorHttpPost = new QName("http://www.webserviceX.NET/", "CurrencyConvertorHttpPost"); 26 | public final static QName CurrencyConvertorSoap = new QName("http://www.webserviceX.NET/", "CurrencyConvertorSoap"); 27 | public final static QName CurrencyConvertorSoap12 = new QName("http://www.webserviceX.NET/", "CurrencyConvertorSoap12"); 28 | public final static QName CurrencyConvertorHttpGet = new QName("http://www.webserviceX.NET/", "CurrencyConvertorHttpGet"); 29 | static { 30 | URL url = null; 31 | try { 32 | url = new URL("http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"); 33 | } catch (MalformedURLException e) { 34 | java.util.logging.Logger.getLogger(CurrencyConvertor.class.getName()) 35 | .log(java.util.logging.Level.INFO, 36 | "Can not initialize the default wsdl from {0}", "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"); 37 | } 38 | WSDL_LOCATION = url; 39 | } 40 | 41 | public CurrencyConvertor(URL wsdlLocation) { 42 | super(wsdlLocation, SERVICE); 43 | } 44 | 45 | public CurrencyConvertor(URL wsdlLocation, QName serviceName) { 46 | super(wsdlLocation, serviceName); 47 | } 48 | 49 | public CurrencyConvertor() { 50 | super(WSDL_LOCATION, SERVICE); 51 | } 52 | 53 | 54 | /** 55 | * 56 | * @return 57 | * returns CurrencyConvertorHttpPost 58 | */ 59 | @WebEndpoint(name = "CurrencyConvertorHttpPost") 60 | public CurrencyConvertorHttpPost getCurrencyConvertorHttpPost() { 61 | return super.getPort(CurrencyConvertorHttpPost, CurrencyConvertorHttpPost.class); 62 | } 63 | 64 | /** 65 | * 66 | * @param features 67 | * 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.
68 | * @return
69 | * returns CurrencyConvertorHttpPost
70 | */
71 | @WebEndpoint(name = "CurrencyConvertorHttpPost")
72 | public CurrencyConvertorHttpPost getCurrencyConvertorHttpPost(WebServiceFeature... features) {
73 | return super.getPort(CurrencyConvertorHttpPost, CurrencyConvertorHttpPost.class, features);
74 | }
75 | /**
76 | *
77 | * @return
78 | * returns CurrencyConvertorSoap
79 | */
80 | @WebEndpoint(name = "CurrencyConvertorSoap")
81 | public CurrencyConvertorSoap getCurrencyConvertorSoap() {
82 | return super.getPort(CurrencyConvertorSoap, CurrencyConvertorSoap.class);
83 | }
84 |
85 | /**
86 | *
87 | * @param features
88 | * 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.
89 | * @return
90 | * returns CurrencyConvertorSoap
91 | */
92 | @WebEndpoint(name = "CurrencyConvertorSoap")
93 | public CurrencyConvertorSoap getCurrencyConvertorSoap(WebServiceFeature... features) {
94 | return super.getPort(CurrencyConvertorSoap, CurrencyConvertorSoap.class, features);
95 | }
96 | /**
97 | *
98 | * @return
99 | * returns CurrencyConvertorSoap
100 | */
101 | @WebEndpoint(name = "CurrencyConvertorSoap12")
102 | public CurrencyConvertorSoap getCurrencyConvertorSoap12() {
103 | return super.getPort(CurrencyConvertorSoap12, CurrencyConvertorSoap.class);
104 | }
105 |
106 | /**
107 | *
108 | * @param features
109 | * 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.
110 | * @return
111 | * returns CurrencyConvertorSoap
112 | */
113 | @WebEndpoint(name = "CurrencyConvertorSoap12")
114 | public CurrencyConvertorSoap getCurrencyConvertorSoap12(WebServiceFeature... features) {
115 | return super.getPort(CurrencyConvertorSoap12, CurrencyConvertorSoap.class, features);
116 | }
117 | /**
118 | *
119 | * @return
120 | * returns CurrencyConvertorHttpGet
121 | */
122 | @WebEndpoint(name = "CurrencyConvertorHttpGet")
123 | public CurrencyConvertorHttpGet getCurrencyConvertorHttpGet() {
124 | return super.getPort(CurrencyConvertorHttpGet, CurrencyConvertorHttpGet.class);
125 | }
126 |
127 | /**
128 | *
129 | * @param features
130 | * 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.
131 | * @return
132 | * returns CurrencyConvertorHttpGet
133 | */
134 | @WebEndpoint(name = "CurrencyConvertorHttpGet")
135 | public CurrencyConvertorHttpGet getCurrencyConvertorHttpGet(WebServiceFeature... features) {
136 | return super.getPort(CurrencyConvertorHttpGet, CurrencyConvertorHttpGet.class, features);
137 | }
138 |
139 | }
140 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/currencyConvertor/CurrencyConvertorHttpGet.java:
--------------------------------------------------------------------------------
1 | package businessLayer.webserviceClients.currencyConvertor;
2 |
3 | import javax.jws.WebMethod;
4 | import javax.jws.WebParam;
5 | import javax.jws.WebResult;
6 | import javax.jws.WebService;
7 | import javax.jws.soap.SOAPBinding;
8 | import javax.xml.bind.annotation.XmlSeeAlso;
9 |
10 | /**
11 | * This class was generated by Apache CXF 3.0.0-milestone2
12 | * 2014-03-14T14:08:47.020+05:30
13 | * Generated source version: 3.0.0-milestone2
14 | *
15 | */
16 | @WebService(targetNamespace = "http://www.webserviceX.NET/", name = "CurrencyConvertorHttpGet")
17 | @XmlSeeAlso({ObjectFactory.class})
18 | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
19 | public interface CurrencyConvertorHttpGet {
20 |
21 | /**
22 | * Differenct currency Code and Names around the world
23 | */ 24 | @WebResult(name = "double", targetNamespace = "http://www.webserviceX.NET/", partName = "Body") 25 | @WebMethod(operationName = "ConversionRate") 26 | public double conversionRate( 27 | @WebParam(partName = "FromCurrency", name = "FromCurrency", targetNamespace = "http://www.webserviceX.NET/") 28 | java.lang.String fromCurrency, 29 | @WebParam(partName = "ToCurrency", name = "ToCurrency", targetNamespace = "http://www.webserviceX.NET/") 30 | java.lang.String toCurrency 31 | ); 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/CurrencyConvertorHttpGet_CurrencyConvertorHttpGet_Client.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.currencyConvertor; 3 | 4 | /** 5 | * Please modify this class to meet your needs 6 | * This class is not complete 7 | */ 8 | 9 | import java.io.File; 10 | import java.net.MalformedURLException; 11 | import java.net.URL; 12 | import javax.xml.namespace.QName; 13 | 14 | /** 15 | * This class was generated by Apache CXF 3.0.0-milestone2 16 | * 2014-03-14T14:08:46.986+05:30 17 | * Generated source version: 3.0.0-milestone2 18 | * 19 | */ 20 | public final class CurrencyConvertorHttpGet_CurrencyConvertorHttpGet_Client { 21 | 22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET/", "CurrencyConvertor"); 23 | 24 | private CurrencyConvertorHttpGet_CurrencyConvertorHttpGet_Client() { 25 | } 26 | 27 | public static void main(String args[]) throws java.lang.Exception { 28 | URL wsdlURL = CurrencyConvertor.WSDL_LOCATION; 29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 30 | File wsdlFile = new File(args[0]); 31 | try { 32 | if (wsdlFile.exists()) { 33 | wsdlURL = wsdlFile.toURI().toURL(); 34 | } else { 35 | wsdlURL = new URL(args[0]); 36 | } 37 | } catch (MalformedURLException e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | 42 | CurrencyConvertor ss = new CurrencyConvertor(wsdlURL, SERVICE_NAME); 43 | CurrencyConvertorHttpGet port = ss.getCurrencyConvertorHttpGet(); 44 | 45 | { 46 | System.out.println("Invoking conversionRate..."); 47 | java.lang.String _conversionRate_fromCurrency = ""; 48 | java.lang.String _conversionRate_toCurrency = ""; 49 | double _conversionRate__return = port.conversionRate(_conversionRate_fromCurrency, _conversionRate_toCurrency); 50 | System.out.println("conversionRate.result=" + _conversionRate__return); 51 | 52 | 53 | } 54 | 55 | System.exit(0); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/CurrencyConvertorHttpPost.java: -------------------------------------------------------------------------------- 1 | package businessLayer.webserviceClients.currencyConvertor; 2 | 3 | import javax.jws.WebMethod; 4 | import javax.jws.WebParam; 5 | import javax.jws.WebResult; 6 | import javax.jws.WebService; 7 | import javax.jws.soap.SOAPBinding; 8 | import javax.xml.bind.annotation.XmlSeeAlso; 9 | 10 | /** 11 | * This class was generated by Apache CXF 3.0.0-milestone2 12 | * 2014-03-14T14:08:47.001+05:30 13 | * Generated source version: 3.0.0-milestone2 14 | * 15 | */ 16 | @WebService(targetNamespace = "http://www.webserviceX.NET/", name = "CurrencyConvertorHttpPost") 17 | @XmlSeeAlso({ObjectFactory.class}) 18 | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) 19 | public interface CurrencyConvertorHttpPost { 20 | 21 | /** 22 | *AFA-Afghanistan Afghani
ALL-Albanian Lek
DZD-Algerian Dinar
ARS-Argentine Peso
AWG-Aruba Florin
AUD-Australian Dollar
BSD-Bahamian Dollar
BHD-Bahraini Dinar
BDT-Bangladesh Taka
BBD-Barbados Dollar
BZD-Belize Dollar
BMD-Bermuda Dollar
BTN-Bhutan Ngultrum
BOB-Bolivian Boliviano
BWP-Botswana Pula
BRL-Brazilian Real
GBP-British Pound
BND-Brunei Dollar
BIF-Burundi Franc
XOF-CFA Franc (BCEAO)
XAF-CFA Franc (BEAC)
KHR-Cambodia Riel
CAD-Canadian Dollar
CVE-Cape Verde Escudo
KYD-Cayman Islands Dollar
CLP-Chilean Peso
CNY-Chinese Yuan
COP-Colombian Peso
KMF-Comoros Franc
CRC-Costa Rica Colon
HRK-Croatian Kuna
CUP-Cuban Peso
CYP-Cyprus Pound
CZK-Czech Koruna
DKK-Danish Krone
DJF-Dijibouti Franc
DOP-Dominican Peso
XCD-East Caribbean Dollar
EGP-Egyptian Pound
SVC-El Salvador Colon
EEK-Estonian Kroon
ETB-Ethiopian Birr
EUR-Euro
FKP-Falkland Islands Pound
GMD-Gambian Dalasi
GHC-Ghanian Cedi
GIP-Gibraltar Pound
XAU-Gold Ounces
GTQ-Guatemala Quetzal
GNF-Guinea Franc
GYD-Guyana Dollar
HTG-Haiti Gourde
HNL-Honduras Lempira
HKD-Hong Kong Dollar
HUF-Hungarian Forint
ISK-Iceland Krona
INR-Indian Rupee
IDR-Indonesian Rupiah
IQD-Iraqi Dinar
ILS-Israeli Shekel
JMD-Jamaican Dollar
JPY-Japanese Yen
JOD-Jordanian Dinar
KZT-Kazakhstan Tenge
KES-Kenyan Shilling
KRW-Korean Won
KWD-Kuwaiti Dinar
LAK-Lao Kip
LVL-Latvian Lat
LBP-Lebanese Pound
LSL-Lesotho Loti
LRD-Liberian Dollar
LYD-Libyan Dinar
LTL-Lithuanian Lita
MOP-Macau Pataca
MKD-Macedonian Denar
MGF-Malagasy Franc
MWK-Malawi Kwacha
MYR-Malaysian Ringgit
MVR-Maldives Rufiyaa
MTL-Maltese Lira
MRO-Mauritania Ougulya
MUR-Mauritius Rupee
MXN-Mexican Peso
MDL-Moldovan Leu
MNT-Mongolian Tugrik
MAD-Moroccan Dirham
MZM-Mozambique Metical
MMK-Myanmar Kyat
NAD-Namibian Dollar
NPR-Nepalese Rupee
ANG-Neth Antilles Guilder
NZD-New Zealand Dollar
NIO-Nicaragua Cordoba
NGN-Nigerian Naira
KPW-North Korean Won
NOK-Norwegian Krone
OMR-Omani Rial
XPF-Pacific Franc
PKR-Pakistani Rupee
XPD-Palladium Ounces
PAB-Panama Balboa
PGK-Papua New Guinea Kina
PYG-Paraguayan Guarani
PEN-Peruvian Nuevo Sol
PHP-Philippine Peso
XPT-Platinum Ounces
PLN-Polish Zloty
QAR-Qatar Rial
ROL-Romanian Leu
RUB-Russian Rouble
WST-Samoa Tala
STD-Sao Tome Dobra
SAR-Saudi Arabian Riyal
SCR-Seychelles Rupee
SLL-Sierra Leone Leone
XAG-Silver Ounces
SGD-Singapore Dollar
SKK-Slovak Koruna
SIT-Slovenian Tolar
SBD-Solomon Islands Dollar
SOS-Somali Shilling
ZAR-South African Rand
LKR-Sri Lanka Rupee
SHP-St Helena Pound
SDD-Sudanese Dinar
SRG-Surinam Guilder
SZL-Swaziland Lilageni
SEK-Swedish Krona
TRY-Turkey Lira
CHF-Swiss Franc
SYP-Syrian Pound
TWD-Taiwan Dollar
TZS-Tanzanian Shilling
THB-Thai Baht
TOP-Tonga Pa'anga
TTD-Trinidad&Tobago Dollar
TND-Tunisian Dinar
TRL-Turkish Lira
USD-U.S. Dollar
AED-UAE Dirham
UGX-Ugandan Shilling
UAH-Ukraine Hryvnia
UYU-Uruguayan New Peso
VUV-Vanuatu Vatu
VEB-Venezuelan Bolivar
VND-Vietnam Dong
YER-Yemen Riyal
YUM-Yugoslav Dinar
ZMK-Zambian Kwacha
ZWD-Zimbabwe Dollar
Differenct currency Code and Names around the world
23 | */ 24 | @WebResult(name = "double", targetNamespace = "http://www.webserviceX.NET/", partName = "Body") 25 | @WebMethod(operationName = "ConversionRate") 26 | public double conversionRate( 27 | @WebParam(partName = "FromCurrency", name = "FromCurrency", targetNamespace = "http://www.webserviceX.NET/") 28 | java.lang.String fromCurrency, 29 | @WebParam(partName = "ToCurrency", name = "ToCurrency", targetNamespace = "http://www.webserviceX.NET/") 30 | java.lang.String toCurrency 31 | ); 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/CurrencyConvertorHttpPost_CurrencyConvertorHttpPost_Client.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.currencyConvertor; 3 | 4 | /** 5 | * Please modify this class to meet your needs 6 | * This class is not complete 7 | */ 8 | 9 | import java.io.File; 10 | import java.net.MalformedURLException; 11 | import java.net.URL; 12 | import javax.xml.namespace.QName; 13 | 14 | /** 15 | * This class was generated by Apache CXF 3.0.0-milestone2 16 | * 2014-03-14T14:08:46.899+05:30 17 | * Generated source version: 3.0.0-milestone2 18 | * 19 | */ 20 | public final class CurrencyConvertorHttpPost_CurrencyConvertorHttpPost_Client { 21 | 22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET/", "CurrencyConvertor"); 23 | 24 | private CurrencyConvertorHttpPost_CurrencyConvertorHttpPost_Client() { 25 | } 26 | 27 | public static void main(String args[]) throws java.lang.Exception { 28 | URL wsdlURL = CurrencyConvertor.WSDL_LOCATION; 29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 30 | File wsdlFile = new File(args[0]); 31 | try { 32 | if (wsdlFile.exists()) { 33 | wsdlURL = wsdlFile.toURI().toURL(); 34 | } else { 35 | wsdlURL = new URL(args[0]); 36 | } 37 | } catch (MalformedURLException e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | 42 | CurrencyConvertor ss = new CurrencyConvertor(wsdlURL, SERVICE_NAME); 43 | CurrencyConvertorHttpPost port = ss.getCurrencyConvertorHttpPost(); 44 | 45 | { 46 | System.out.println("Invoking conversionRate..."); 47 | java.lang.String _conversionRate_fromCurrency = ""; 48 | java.lang.String _conversionRate_toCurrency = ""; 49 | double _conversionRate__return = port.conversionRate(_conversionRate_fromCurrency, _conversionRate_toCurrency); 50 | System.out.println("conversionRate.result=" + _conversionRate__return); 51 | 52 | 53 | } 54 | 55 | System.exit(0); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/CurrencyConvertorSoap.java: -------------------------------------------------------------------------------- 1 | package businessLayer.webserviceClients.currencyConvertor; 2 | 3 | import javax.jws.WebMethod; 4 | import javax.jws.WebParam; 5 | import javax.jws.WebResult; 6 | import javax.jws.WebService; 7 | import javax.xml.bind.annotation.XmlSeeAlso; 8 | import javax.xml.ws.RequestWrapper; 9 | import javax.xml.ws.ResponseWrapper; 10 | 11 | /** 12 | * This class was generated by Apache CXF 3.0.0-milestone2 13 | * 2014-03-14T14:08:47.013+05:30 14 | * Generated source version: 3.0.0-milestone2 15 | * 16 | */ 17 | @WebService(targetNamespace = "http://www.webserviceX.NET/", name = "CurrencyConvertorSoap") 18 | @XmlSeeAlso({ObjectFactory.class}) 19 | public interface CurrencyConvertorSoap { 20 | 21 | /** 22 | *AFA-Afghanistan Afghani
ALL-Albanian Lek
DZD-Algerian Dinar
ARS-Argentine Peso
AWG-Aruba Florin
AUD-Australian Dollar
BSD-Bahamian Dollar
BHD-Bahraini Dinar
BDT-Bangladesh Taka
BBD-Barbados Dollar
BZD-Belize Dollar
BMD-Bermuda Dollar
BTN-Bhutan Ngultrum
BOB-Bolivian Boliviano
BWP-Botswana Pula
BRL-Brazilian Real
GBP-British Pound
BND-Brunei Dollar
BIF-Burundi Franc
XOF-CFA Franc (BCEAO)
XAF-CFA Franc (BEAC)
KHR-Cambodia Riel
CAD-Canadian Dollar
CVE-Cape Verde Escudo
KYD-Cayman Islands Dollar
CLP-Chilean Peso
CNY-Chinese Yuan
COP-Colombian Peso
KMF-Comoros Franc
CRC-Costa Rica Colon
HRK-Croatian Kuna
CUP-Cuban Peso
CYP-Cyprus Pound
CZK-Czech Koruna
DKK-Danish Krone
DJF-Dijibouti Franc
DOP-Dominican Peso
XCD-East Caribbean Dollar
EGP-Egyptian Pound
SVC-El Salvador Colon
EEK-Estonian Kroon
ETB-Ethiopian Birr
EUR-Euro
FKP-Falkland Islands Pound
GMD-Gambian Dalasi
GHC-Ghanian Cedi
GIP-Gibraltar Pound
XAU-Gold Ounces
GTQ-Guatemala Quetzal
GNF-Guinea Franc
GYD-Guyana Dollar
HTG-Haiti Gourde
HNL-Honduras Lempira
HKD-Hong Kong Dollar
HUF-Hungarian Forint
ISK-Iceland Krona
INR-Indian Rupee
IDR-Indonesian Rupiah
IQD-Iraqi Dinar
ILS-Israeli Shekel
JMD-Jamaican Dollar
JPY-Japanese Yen
JOD-Jordanian Dinar
KZT-Kazakhstan Tenge
KES-Kenyan Shilling
KRW-Korean Won
KWD-Kuwaiti Dinar
LAK-Lao Kip
LVL-Latvian Lat
LBP-Lebanese Pound
LSL-Lesotho Loti
LRD-Liberian Dollar
LYD-Libyan Dinar
LTL-Lithuanian Lita
MOP-Macau Pataca
MKD-Macedonian Denar
MGF-Malagasy Franc
MWK-Malawi Kwacha
MYR-Malaysian Ringgit
MVR-Maldives Rufiyaa
MTL-Maltese Lira
MRO-Mauritania Ougulya
MUR-Mauritius Rupee
MXN-Mexican Peso
MDL-Moldovan Leu
MNT-Mongolian Tugrik
MAD-Moroccan Dirham
MZM-Mozambique Metical
MMK-Myanmar Kyat
NAD-Namibian Dollar
NPR-Nepalese Rupee
ANG-Neth Antilles Guilder
NZD-New Zealand Dollar
NIO-Nicaragua Cordoba
NGN-Nigerian Naira
KPW-North Korean Won
NOK-Norwegian Krone
OMR-Omani Rial
XPF-Pacific Franc
PKR-Pakistani Rupee
XPD-Palladium Ounces
PAB-Panama Balboa
PGK-Papua New Guinea Kina
PYG-Paraguayan Guarani
PEN-Peruvian Nuevo Sol
PHP-Philippine Peso
XPT-Platinum Ounces
PLN-Polish Zloty
QAR-Qatar Rial
ROL-Romanian Leu
RUB-Russian Rouble
WST-Samoa Tala
STD-Sao Tome Dobra
SAR-Saudi Arabian Riyal
SCR-Seychelles Rupee
SLL-Sierra Leone Leone
XAG-Silver Ounces
SGD-Singapore Dollar
SKK-Slovak Koruna
SIT-Slovenian Tolar
SBD-Solomon Islands Dollar
SOS-Somali Shilling
ZAR-South African Rand
LKR-Sri Lanka Rupee
SHP-St Helena Pound
SDD-Sudanese Dinar
SRG-Surinam Guilder
SZL-Swaziland Lilageni
SEK-Swedish Krona
TRY-Turkey Lira
CHF-Swiss Franc
SYP-Syrian Pound
TWD-Taiwan Dollar
TZS-Tanzanian Shilling
THB-Thai Baht
TOP-Tonga Pa'anga
TTD-Trinidad&Tobago Dollar
TND-Tunisian Dinar
TRL-Turkish Lira
USD-U.S. Dollar
AED-UAE Dirham
UGX-Ugandan Shilling
UAH-Ukraine Hryvnia
UYU-Uruguayan New Peso
VUV-Vanuatu Vatu
VEB-Venezuelan Bolivar
VND-Vietnam Dong
YER-Yemen Riyal
YUM-Yugoslav Dinar
ZMK-Zambian Kwacha
ZWD-Zimbabwe Dollar
Differenct currency Code and Names around the world
23 | */ 24 | @WebResult(name = "ConversionRateResult", targetNamespace = "http://www.webserviceX.NET/") 25 | @RequestWrapper(localName = "ConversionRate", targetNamespace = "http://www.webserviceX.NET/", className = "businessLayer.webserviceClients.currencyConvertor.ConversionRate") 26 | @WebMethod(operationName = "ConversionRate", action = "http://www.webserviceX.NET/ConversionRate") 27 | @ResponseWrapper(localName = "ConversionRateResponse", targetNamespace = "http://www.webserviceX.NET/", className = "businessLayer.webserviceClients.currencyConvertor.ConversionRateResponse") 28 | public double conversionRate( 29 | @WebParam(name = "FromCurrency", targetNamespace = "http://www.webserviceX.NET/") 30 | businessLayer.webserviceClients.currencyConvertor.Currency fromCurrency, 31 | @WebParam(name = "ToCurrency", targetNamespace = "http://www.webserviceX.NET/") 32 | businessLayer.webserviceClients.currencyConvertor.Currency toCurrency 33 | ); 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/CurrencyConvertorSoap_CurrencyConvertorSoap12_Client.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.currencyConvertor; 3 | 4 | /** 5 | * Please modify this class to meet your needs 6 | * This class is not complete 7 | */ 8 | 9 | import java.io.File; 10 | import java.net.MalformedURLException; 11 | import java.net.URL; 12 | import javax.xml.namespace.QName; 13 | 14 | /** 15 | * This class was generated by Apache CXF 3.0.0-milestone2 16 | * 2014-03-14T14:08:46.971+05:30 17 | * Generated source version: 3.0.0-milestone2 18 | * 19 | */ 20 | public final class CurrencyConvertorSoap_CurrencyConvertorSoap12_Client { 21 | 22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET/", "CurrencyConvertor"); 23 | 24 | private CurrencyConvertorSoap_CurrencyConvertorSoap12_Client() { 25 | } 26 | 27 | public static void main(String args[]) throws java.lang.Exception { 28 | URL wsdlURL = CurrencyConvertor.WSDL_LOCATION; 29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 30 | File wsdlFile = new File(args[0]); 31 | try { 32 | if (wsdlFile.exists()) { 33 | wsdlURL = wsdlFile.toURI().toURL(); 34 | } else { 35 | wsdlURL = new URL(args[0]); 36 | } 37 | } catch (MalformedURLException e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | 42 | CurrencyConvertor ss = new CurrencyConvertor(wsdlURL, SERVICE_NAME); 43 | CurrencyConvertorSoap port = ss.getCurrencyConvertorSoap12(); 44 | 45 | { 46 | System.out.println("Invoking conversionRate..."); 47 | businessLayer.webserviceClients.currencyConvertor.Currency _conversionRate_fromCurrency = null; 48 | businessLayer.webserviceClients.currencyConvertor.Currency _conversionRate_toCurrency = null; 49 | double _conversionRate__return = port.conversionRate(_conversionRate_fromCurrency, _conversionRate_toCurrency); 50 | System.out.println("conversionRate.result=" + _conversionRate__return); 51 | 52 | 53 | } 54 | 55 | System.exit(0); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/CurrencyConvertorSoap_CurrencyConvertorSoap_Client.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.currencyConvertor; 3 | 4 | /** 5 | * Please modify this class to meet your needs 6 | * This class is not complete 7 | */ 8 | 9 | import java.io.File; 10 | import java.net.MalformedURLException; 11 | import java.net.URL; 12 | import javax.xml.namespace.QName; 13 | 14 | /** 15 | * This class was generated by Apache CXF 3.0.0-milestone2 16 | * 2014-03-14T14:08:46.955+05:30 17 | * Generated source version: 3.0.0-milestone2 18 | * 19 | */ 20 | public final class CurrencyConvertorSoap_CurrencyConvertorSoap_Client { 21 | 22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET/", "CurrencyConvertor"); 23 | 24 | private CurrencyConvertorSoap_CurrencyConvertorSoap_Client() { 25 | } 26 | 27 | public static void main(String args[]) throws java.lang.Exception { 28 | URL wsdlURL = CurrencyConvertor.WSDL_LOCATION; 29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 30 | File wsdlFile = new File(args[0]); 31 | try { 32 | if (wsdlFile.exists()) { 33 | wsdlURL = wsdlFile.toURI().toURL(); 34 | } else { 35 | wsdlURL = new URL(args[0]); 36 | } 37 | } catch (MalformedURLException e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | 42 | CurrencyConvertor ss = new CurrencyConvertor(wsdlURL, SERVICE_NAME); 43 | CurrencyConvertorSoap port = ss.getCurrencyConvertorSoap(); 44 | 45 | { 46 | System.out.println("Invoking conversionRate..."); 47 | businessLayer.webserviceClients.currencyConvertor.Currency _conversionRate_fromCurrency = null; 48 | businessLayer.webserviceClients.currencyConvertor.Currency _conversionRate_toCurrency = null; 49 | double _conversionRate__return = port.conversionRate(_conversionRate_fromCurrency, _conversionRate_toCurrency); 50 | System.out.println("conversionRate.result=" + _conversionRate__return); 51 | 52 | 53 | } 54 | 55 | System.exit(0); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/ObjectFactory.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.currencyConvertor; 3 | 4 | import javax.xml.bind.JAXBElement; 5 | import javax.xml.bind.annotation.XmlElementDecl; 6 | import javax.xml.bind.annotation.XmlRegistry; 7 | import javax.xml.namespace.QName; 8 | 9 | 10 | /** 11 | * This object contains factory methods for each 12 | * Java content interface and Java element interface 13 | * generated in the businessLayer.webserviceClients.currencyConvertor package. 14 | *AFA-Afghanistan Afghani
ALL-Albanian Lek
DZD-Algerian Dinar
ARS-Argentine Peso
AWG-Aruba Florin
AUD-Australian Dollar
BSD-Bahamian Dollar
BHD-Bahraini Dinar
BDT-Bangladesh Taka
BBD-Barbados Dollar
BZD-Belize Dollar
BMD-Bermuda Dollar
BTN-Bhutan Ngultrum
BOB-Bolivian Boliviano
BWP-Botswana Pula
BRL-Brazilian Real
GBP-British Pound
BND-Brunei Dollar
BIF-Burundi Franc
XOF-CFA Franc (BCEAO)
XAF-CFA Franc (BEAC)
KHR-Cambodia Riel
CAD-Canadian Dollar
CVE-Cape Verde Escudo
KYD-Cayman Islands Dollar
CLP-Chilean Peso
CNY-Chinese Yuan
COP-Colombian Peso
KMF-Comoros Franc
CRC-Costa Rica Colon
HRK-Croatian Kuna
CUP-Cuban Peso
CYP-Cyprus Pound
CZK-Czech Koruna
DKK-Danish Krone
DJF-Dijibouti Franc
DOP-Dominican Peso
XCD-East Caribbean Dollar
EGP-Egyptian Pound
SVC-El Salvador Colon
EEK-Estonian Kroon
ETB-Ethiopian Birr
EUR-Euro
FKP-Falkland Islands Pound
GMD-Gambian Dalasi
GHC-Ghanian Cedi
GIP-Gibraltar Pound
XAU-Gold Ounces
GTQ-Guatemala Quetzal
GNF-Guinea Franc
GYD-Guyana Dollar
HTG-Haiti Gourde
HNL-Honduras Lempira
HKD-Hong Kong Dollar
HUF-Hungarian Forint
ISK-Iceland Krona
INR-Indian Rupee
IDR-Indonesian Rupiah
IQD-Iraqi Dinar
ILS-Israeli Shekel
JMD-Jamaican Dollar
JPY-Japanese Yen
JOD-Jordanian Dinar
KZT-Kazakhstan Tenge
KES-Kenyan Shilling
KRW-Korean Won
KWD-Kuwaiti Dinar
LAK-Lao Kip
LVL-Latvian Lat
LBP-Lebanese Pound
LSL-Lesotho Loti
LRD-Liberian Dollar
LYD-Libyan Dinar
LTL-Lithuanian Lita
MOP-Macau Pataca
MKD-Macedonian Denar
MGF-Malagasy Franc
MWK-Malawi Kwacha
MYR-Malaysian Ringgit
MVR-Maldives Rufiyaa
MTL-Maltese Lira
MRO-Mauritania Ougulya
MUR-Mauritius Rupee
MXN-Mexican Peso
MDL-Moldovan Leu
MNT-Mongolian Tugrik
MAD-Moroccan Dirham
MZM-Mozambique Metical
MMK-Myanmar Kyat
NAD-Namibian Dollar
NPR-Nepalese Rupee
ANG-Neth Antilles Guilder
NZD-New Zealand Dollar
NIO-Nicaragua Cordoba
NGN-Nigerian Naira
KPW-North Korean Won
NOK-Norwegian Krone
OMR-Omani Rial
XPF-Pacific Franc
PKR-Pakistani Rupee
XPD-Palladium Ounces
PAB-Panama Balboa
PGK-Papua New Guinea Kina
PYG-Paraguayan Guarani
PEN-Peruvian Nuevo Sol
PHP-Philippine Peso
XPT-Platinum Ounces
PLN-Polish Zloty
QAR-Qatar Rial
ROL-Romanian Leu
RUB-Russian Rouble
WST-Samoa Tala
STD-Sao Tome Dobra
SAR-Saudi Arabian Riyal
SCR-Seychelles Rupee
SLL-Sierra Leone Leone
XAG-Silver Ounces
SGD-Singapore Dollar
SKK-Slovak Koruna
SIT-Slovenian Tolar
SBD-Solomon Islands Dollar
SOS-Somali Shilling
ZAR-South African Rand
LKR-Sri Lanka Rupee
SHP-St Helena Pound
SDD-Sudanese Dinar
SRG-Surinam Guilder
SZL-Swaziland Lilageni
SEK-Swedish Krona
TRY-Turkey Lira
CHF-Swiss Franc
SYP-Syrian Pound
TWD-Taiwan Dollar
TZS-Tanzanian Shilling
THB-Thai Baht
TOP-Tonga Pa'anga
TTD-Trinidad&Tobago Dollar
TND-Tunisian Dinar
TRL-Turkish Lira
USD-U.S. Dollar
AED-UAE Dirham
UGX-Ugandan Shilling
UAH-Ukraine Hryvnia
UYU-Uruguayan New Peso
VUV-Vanuatu Vatu
VEB-Venezuelan Bolivar
VND-Vietnam Dong
YER-Yemen Riyal
YUM-Yugoslav Dinar
ZMK-Zambian Kwacha
ZWD-Zimbabwe Dollar
An ObjectFactory allows you to programatically
15 | * construct new instances of the Java representation
16 | * for XML content. The Java representation of XML
17 | * content can consist of schema derived interfaces
18 | * and classes representing the binding of schema
19 | * type definitions, element declarations and model
20 | * groups. Factory methods for each of these are
21 | * provided in this class.
22 | *
23 | */
24 | @XmlRegistry
25 | public class ObjectFactory {
26 |
27 | private final static QName _Double_QNAME = new QName("http://www.webserviceX.NET/", "double");
28 |
29 | /**
30 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: businessLayer.webserviceClients.currencyConvertor
31 | *
32 | */
33 | public ObjectFactory() {
34 | }
35 |
36 | /**
37 | * Create an instance of {@link ConversionRate }
38 | *
39 | */
40 | public ConversionRate createConversionRate() {
41 | return new ConversionRate();
42 | }
43 |
44 | /**
45 | * Create an instance of {@link ConversionRateResponse }
46 | *
47 | */
48 | public ConversionRateResponse createConversionRateResponse() {
49 | return new ConversionRateResponse();
50 | }
51 |
52 | /**
53 | * Create an instance of {@link JAXBElement }{@code <}{@link Double }{@code >}}
54 | *
55 | */
56 | @XmlElementDecl(namespace = "http://www.webserviceX.NET/", name = "double")
57 | public JAXBElement Java class for anonymous complex type.
13 | *
14 | * The following schema fragment specifies the expected content contained within this class.
15 | *
16 | * Java class for anonymous complex type.
13 | *
14 | * The following schema fragment specifies the expected content contained within this class.
15 | *
16 | * Java class for anonymous complex type.
13 | *
14 | * The following schema fragment specifies the expected content contained within this class.
15 | *
16 | * Java class for anonymous complex type.
13 | *
14 | * The following schema fragment specifies the expected content contained within this class.
15 | *
16 | * An ObjectFactory allows you to programatically
15 | * construct new instances of the Java representation
16 | * for XML content. The Java representation of XML
17 | * content can consist of schema derived interfaces
18 | * and classes representing the binding of schema
19 | * type definitions, element declarations and model
20 | * groups. Factory methods for each of these are
21 | * provided in this class.
22 | *
23 | */
24 | @XmlRegistry
25 | public class ObjectFactory {
26 |
27 | private final static QName _String_QNAME = new QName("http://www.webserviceX.NET", "string");
28 |
29 | /**
30 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: businessLayer.webserviceClients.globalWeather
31 | *
32 | */
33 | public ObjectFactory() {
34 | }
35 |
36 | /**
37 | * Create an instance of {@link GetWeather }
38 | *
39 | */
40 | public GetWeather createGetWeather() {
41 | return new GetWeather();
42 | }
43 |
44 | /**
45 | * Create an instance of {@link GetCitiesByCountry }
46 | *
47 | */
48 | public GetCitiesByCountry createGetCitiesByCountry() {
49 | return new GetCitiesByCountry();
50 | }
51 |
52 | /**
53 | * Create an instance of {@link GetWeatherResponse }
54 | *
55 | */
56 | public GetWeatherResponse createGetWeatherResponse() {
57 | return new GetWeatherResponse();
58 | }
59 |
60 | /**
61 | * Create an instance of {@link GetCitiesByCountryResponse }
62 | *
63 | */
64 | public GetCitiesByCountryResponse createGetCitiesByCountryResponse() {
65 | return new GetCitiesByCountryResponse();
66 | }
67 |
68 | /**
69 | * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
70 | *
71 | */
72 | @XmlElementDecl(namespace = "http://www.webserviceX.NET", name = "string")
73 | public JAXBElement Java class for anonymous complex type.
13 | *
14 | * The following schema fragment specifies the expected content contained within this class.
15 | *
16 | * Java class for anonymous complex type.
13 | *
14 | * The following schema fragment specifies the expected content contained within this class.
15 | *
16 | * Java class for anonymous complex type.
13 | *
14 | * The following schema fragment specifies the expected content contained within this class.
15 | *
16 | * Java class for anonymous complex type.
13 | *
14 | * The following schema fragment specifies the expected content contained within this class.
15 | *
16 | * Java class for anonymous complex type.
12 | *
13 | * The following schema fragment specifies the expected content contained within this class.
14 | *
15 | * Java class for anonymous complex type.
13 | *
14 | * The following schema fragment specifies the expected content contained within this class.
15 | *
16 | * Java class for anonymous complex type.
13 | *
14 | * The following schema fragment specifies the expected content contained within this class.
15 | *
16 | * Java class for anonymous complex type.
13 | *
14 | * The following schema fragment specifies the expected content contained within this class.
15 | *
16 | * An ObjectFactory allows you to programatically
15 | * construct new instances of the Java representation
16 | * for XML content. The Java representation of XML
17 | * content can consist of schema derived interfaces
18 | * and classes representing the binding of schema
19 | * type definitions, element declarations and model
20 | * groups. Factory methods for each of these are
21 | * provided in this class.
22 | *
23 | */
24 | @XmlRegistry
25 | public class ObjectFactory {
26 |
27 | private final static QName _String_QNAME = new QName("http://www.webserviceX.NET", "string");
28 |
29 | /**
30 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: businessLayer.webserviceClients.periodicTable
31 | *
32 | */
33 | public ObjectFactory() {
34 | }
35 |
36 | /**
37 | * Create an instance of {@link GetElementSymbol }
38 | *
39 | */
40 | public GetElementSymbol createGetElementSymbol() {
41 | return new GetElementSymbol();
42 | }
43 |
44 | /**
45 | * Create an instance of {@link GetAtoms }
46 | *
47 | */
48 | public GetAtoms createGetAtoms() {
49 | return new GetAtoms();
50 | }
51 |
52 | /**
53 | * Create an instance of {@link GetAtomsResponse }
54 | *
55 | */
56 | public GetAtomsResponse createGetAtomsResponse() {
57 | return new GetAtomsResponse();
58 | }
59 |
60 | /**
61 | * Create an instance of {@link GetAtomicWeightResponse }
62 | *
63 | */
64 | public GetAtomicWeightResponse createGetAtomicWeightResponse() {
65 | return new GetAtomicWeightResponse();
66 | }
67 |
68 | /**
69 | * Create an instance of {@link GetAtomicNumber }
70 | *
71 | */
72 | public GetAtomicNumber createGetAtomicNumber() {
73 | return new GetAtomicNumber();
74 | }
75 |
76 | /**
77 | * Create an instance of {@link GetElementSymbolResponse }
78 | *
79 | */
80 | public GetElementSymbolResponse createGetElementSymbolResponse() {
81 | return new GetElementSymbolResponse();
82 | }
83 |
84 | /**
85 | * Create an instance of {@link GetAtomicNumberResponse }
86 | *
87 | */
88 | public GetAtomicNumberResponse createGetAtomicNumberResponse() {
89 | return new GetAtomicNumberResponse();
90 | }
91 |
92 | /**
93 | * Create an instance of {@link GetAtomicWeight }
94 | *
95 | */
96 | public GetAtomicWeight createGetAtomicWeight() {
97 | return new GetAtomicWeight();
98 | }
99 |
100 | /**
101 | * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
102 | *
103 | */
104 | @XmlElementDecl(namespace = "http://www.webserviceX.NET", name = "string")
105 | public JAXBElement
17 | * <complexType>
18 | * <complexContent>
19 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 | * <sequence>
21 | * <element name="CountryName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 | * </sequence>
23 | * </restriction>
24 | * </complexContent>
25 | * </complexType>
26 | *
27 | *
28 | *
29 | */
30 | @XmlAccessorType(XmlAccessType.FIELD)
31 | @XmlType(name = "", propOrder = {
32 | "countryName"
33 | })
34 | @XmlRootElement(name = "GetCitiesByCountry")
35 | public class GetCitiesByCountry {
36 |
37 | @XmlElement(name = "CountryName")
38 | protected String countryName;
39 |
40 | /**
41 | * Gets the value of the countryName property.
42 | *
43 | * @return
44 | * possible object is
45 | * {@link String }
46 | *
47 | */
48 | public String getCountryName() {
49 | return countryName;
50 | }
51 |
52 | /**
53 | * Sets the value of the countryName property.
54 | *
55 | * @param value
56 | * allowed object is
57 | * {@link String }
58 | *
59 | */
60 | public void setCountryName(String value) {
61 | this.countryName = value;
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/globalWeather/GetCitiesByCountryResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.globalWeather;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlRootElement;
8 | import javax.xml.bind.annotation.XmlType;
9 |
10 |
11 | /**
12 | *
17 | * <complexType>
18 | * <complexContent>
19 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 | * <sequence>
21 | * <element name="GetCitiesByCountryResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 | * </sequence>
23 | * </restriction>
24 | * </complexContent>
25 | * </complexType>
26 | *
27 | *
28 | *
29 | */
30 | @XmlAccessorType(XmlAccessType.FIELD)
31 | @XmlType(name = "", propOrder = {
32 | "getCitiesByCountryResult"
33 | })
34 | @XmlRootElement(name = "GetCitiesByCountryResponse")
35 | public class GetCitiesByCountryResponse {
36 |
37 | @XmlElement(name = "GetCitiesByCountryResult")
38 | protected String getCitiesByCountryResult;
39 |
40 | /**
41 | * Gets the value of the getCitiesByCountryResult property.
42 | *
43 | * @return
44 | * possible object is
45 | * {@link String }
46 | *
47 | */
48 | public String getGetCitiesByCountryResult() {
49 | return getCitiesByCountryResult;
50 | }
51 |
52 | /**
53 | * Sets the value of the getCitiesByCountryResult property.
54 | *
55 | * @param value
56 | * allowed object is
57 | * {@link String }
58 | *
59 | */
60 | public void setGetCitiesByCountryResult(String value) {
61 | this.getCitiesByCountryResult = value;
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/globalWeather/GetWeather.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.globalWeather;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlRootElement;
8 | import javax.xml.bind.annotation.XmlType;
9 |
10 |
11 | /**
12 | *
17 | * <complexType>
18 | * <complexContent>
19 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 | * <sequence>
21 | * <element name="CityName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 | * <element name="CountryName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
23 | * </sequence>
24 | * </restriction>
25 | * </complexContent>
26 | * </complexType>
27 | *
28 | *
29 | *
30 | */
31 | @XmlAccessorType(XmlAccessType.FIELD)
32 | @XmlType(name = "", propOrder = {
33 | "cityName",
34 | "countryName"
35 | })
36 | @XmlRootElement(name = "GetWeather")
37 | public class GetWeather {
38 |
39 | @XmlElement(name = "CityName")
40 | protected String cityName;
41 | @XmlElement(name = "CountryName")
42 | protected String countryName;
43 |
44 | /**
45 | * Gets the value of the cityName property.
46 | *
47 | * @return
48 | * possible object is
49 | * {@link String }
50 | *
51 | */
52 | public String getCityName() {
53 | return cityName;
54 | }
55 |
56 | /**
57 | * Sets the value of the cityName property.
58 | *
59 | * @param value
60 | * allowed object is
61 | * {@link String }
62 | *
63 | */
64 | public void setCityName(String value) {
65 | this.cityName = value;
66 | }
67 |
68 | /**
69 | * Gets the value of the countryName property.
70 | *
71 | * @return
72 | * possible object is
73 | * {@link String }
74 | *
75 | */
76 | public String getCountryName() {
77 | return countryName;
78 | }
79 |
80 | /**
81 | * Sets the value of the countryName property.
82 | *
83 | * @param value
84 | * allowed object is
85 | * {@link String }
86 | *
87 | */
88 | public void setCountryName(String value) {
89 | this.countryName = value;
90 | }
91 |
92 | }
93 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/globalWeather/GetWeatherResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.globalWeather;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlRootElement;
8 | import javax.xml.bind.annotation.XmlType;
9 |
10 |
11 | /**
12 | *
17 | * <complexType>
18 | * <complexContent>
19 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 | * <sequence>
21 | * <element name="GetWeatherResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 | * </sequence>
23 | * </restriction>
24 | * </complexContent>
25 | * </complexType>
26 | *
27 | *
28 | *
29 | */
30 | @XmlAccessorType(XmlAccessType.FIELD)
31 | @XmlType(name = "", propOrder = {
32 | "getWeatherResult"
33 | })
34 | @XmlRootElement(name = "GetWeatherResponse")
35 | public class GetWeatherResponse {
36 |
37 | @XmlElement(name = "GetWeatherResult")
38 | protected String getWeatherResult;
39 |
40 | /**
41 | * Gets the value of the getWeatherResult property.
42 | *
43 | * @return
44 | * possible object is
45 | * {@link String }
46 | *
47 | */
48 | public String getGetWeatherResult() {
49 | return getWeatherResult;
50 | }
51 |
52 | /**
53 | * Sets the value of the getWeatherResult property.
54 | *
55 | * @param value
56 | * allowed object is
57 | * {@link String }
58 | *
59 | */
60 | public void setGetWeatherResult(String value) {
61 | this.getWeatherResult = value;
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/globalWeather/GlobalWeather.java:
--------------------------------------------------------------------------------
1 | package businessLayer.webserviceClients.globalWeather;
2 |
3 | import java.net.MalformedURLException;
4 | import java.net.URL;
5 | import javax.xml.namespace.QName;
6 | import javax.xml.ws.WebEndpoint;
7 | import javax.xml.ws.WebServiceClient;
8 | import javax.xml.ws.WebServiceFeature;
9 | import javax.xml.ws.Service;
10 |
11 | /**
12 | * This class was generated by Apache CXF 3.0.0-milestone2
13 | * 2014-03-14T14:08:41.504+05:30
14 | * Generated source version: 3.0.0-milestone2
15 | *
16 | */
17 | @WebServiceClient(name = "GlobalWeather",
18 | wsdlLocation = "http://www.webservicex.com/globalweather.asmx?WSDL",
19 | targetNamespace = "http://www.webserviceX.NET")
20 | public class GlobalWeather extends Service {
21 |
22 | public final static URL WSDL_LOCATION;
23 |
24 | public final static QName SERVICE = new QName("http://www.webserviceX.NET", "GlobalWeather");
25 | public final static QName GlobalWeatherHttpPost = new QName("http://www.webserviceX.NET", "GlobalWeatherHttpPost");
26 | public final static QName GlobalWeatherSoap12 = new QName("http://www.webserviceX.NET", "GlobalWeatherSoap12");
27 | public final static QName GlobalWeatherSoap = new QName("http://www.webserviceX.NET", "GlobalWeatherSoap");
28 | public final static QName GlobalWeatherHttpGet = new QName("http://www.webserviceX.NET", "GlobalWeatherHttpGet");
29 | static {
30 | URL url = null;
31 | try {
32 | url = new URL("http://www.webservicex.com/globalweather.asmx?WSDL");
33 | } catch (MalformedURLException e) {
34 | java.util.logging.Logger.getLogger(GlobalWeather.class.getName())
35 | .log(java.util.logging.Level.INFO,
36 | "Can not initialize the default wsdl from {0}", "http://www.webservicex.com/globalweather.asmx?WSDL");
37 | }
38 | WSDL_LOCATION = url;
39 | }
40 |
41 | public GlobalWeather(URL wsdlLocation) {
42 | super(wsdlLocation, SERVICE);
43 | }
44 |
45 | public GlobalWeather(URL wsdlLocation, QName serviceName) {
46 | super(wsdlLocation, serviceName);
47 | }
48 |
49 | public GlobalWeather() {
50 | super(WSDL_LOCATION, SERVICE);
51 | }
52 |
53 |
54 | /**
55 | *
56 | * @return
57 | * returns GlobalWeatherHttpPost
58 | */
59 | @WebEndpoint(name = "GlobalWeatherHttpPost")
60 | public GlobalWeatherHttpPost getGlobalWeatherHttpPost() {
61 | return super.getPort(GlobalWeatherHttpPost, GlobalWeatherHttpPost.class);
62 | }
63 |
64 | /**
65 | *
66 | * @param features
67 | * 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.
68 | * @return
69 | * returns GlobalWeatherHttpPost
70 | */
71 | @WebEndpoint(name = "GlobalWeatherHttpPost")
72 | public GlobalWeatherHttpPost getGlobalWeatherHttpPost(WebServiceFeature... features) {
73 | return super.getPort(GlobalWeatherHttpPost, GlobalWeatherHttpPost.class, features);
74 | }
75 | /**
76 | *
77 | * @return
78 | * returns GlobalWeatherSoap
79 | */
80 | @WebEndpoint(name = "GlobalWeatherSoap12")
81 | public GlobalWeatherSoap getGlobalWeatherSoap12() {
82 | return super.getPort(GlobalWeatherSoap12, GlobalWeatherSoap.class);
83 | }
84 |
85 | /**
86 | *
87 | * @param features
88 | * 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.
89 | * @return
90 | * returns GlobalWeatherSoap
91 | */
92 | @WebEndpoint(name = "GlobalWeatherSoap12")
93 | public GlobalWeatherSoap getGlobalWeatherSoap12(WebServiceFeature... features) {
94 | return super.getPort(GlobalWeatherSoap12, GlobalWeatherSoap.class, features);
95 | }
96 | /**
97 | *
98 | * @return
99 | * returns GlobalWeatherSoap
100 | */
101 | @WebEndpoint(name = "GlobalWeatherSoap")
102 | public GlobalWeatherSoap getGlobalWeatherSoap() {
103 | return super.getPort(GlobalWeatherSoap, GlobalWeatherSoap.class);
104 | }
105 |
106 | /**
107 | *
108 | * @param features
109 | * 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.
110 | * @return
111 | * returns GlobalWeatherSoap
112 | */
113 | @WebEndpoint(name = "GlobalWeatherSoap")
114 | public GlobalWeatherSoap getGlobalWeatherSoap(WebServiceFeature... features) {
115 | return super.getPort(GlobalWeatherSoap, GlobalWeatherSoap.class, features);
116 | }
117 | /**
118 | *
119 | * @return
120 | * returns GlobalWeatherHttpGet
121 | */
122 | @WebEndpoint(name = "GlobalWeatherHttpGet")
123 | public GlobalWeatherHttpGet getGlobalWeatherHttpGet() {
124 | return super.getPort(GlobalWeatherHttpGet, GlobalWeatherHttpGet.class);
125 | }
126 |
127 | /**
128 | *
129 | * @param features
130 | * 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.
131 | * @return
132 | * returns GlobalWeatherHttpGet
133 | */
134 | @WebEndpoint(name = "GlobalWeatherHttpGet")
135 | public GlobalWeatherHttpGet getGlobalWeatherHttpGet(WebServiceFeature... features) {
136 | return super.getPort(GlobalWeatherHttpGet, GlobalWeatherHttpGet.class, features);
137 | }
138 |
139 | }
140 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/globalWeather/GlobalWeatherHttpGet.java:
--------------------------------------------------------------------------------
1 | package businessLayer.webserviceClients.globalWeather;
2 |
3 | import javax.jws.WebMethod;
4 | import javax.jws.WebParam;
5 | import javax.jws.WebResult;
6 | import javax.jws.WebService;
7 | import javax.jws.soap.SOAPBinding;
8 | import javax.xml.bind.annotation.XmlSeeAlso;
9 |
10 | /**
11 | * This class was generated by Apache CXF 3.0.0-milestone2
12 | * 2014-03-14T14:08:41.496+05:30
13 | * Generated source version: 3.0.0-milestone2
14 | *
15 | */
16 | @WebService(targetNamespace = "http://www.webserviceX.NET", name = "GlobalWeatherHttpGet")
17 | @XmlSeeAlso({ObjectFactory.class})
18 | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
19 | public interface GlobalWeatherHttpGet {
20 |
21 | /**
22 | * Get all major cities by country name(full / part).
23 | */
24 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body")
25 | @WebMethod(operationName = "GetCitiesByCountry")
26 | public java.lang.String getCitiesByCountry(
27 | @WebParam(partName = "CountryName", name = "CountryName", targetNamespace = "http://www.webserviceX.NET")
28 | java.lang.String countryName
29 | );
30 |
31 | /**
32 | * Get weather report for all major cities around the world.
33 | */
34 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body")
35 | @WebMethod(operationName = "GetWeather")
36 | public java.lang.String getWeather(
37 | @WebParam(partName = "CityName", name = "CityName", targetNamespace = "http://www.webserviceX.NET")
38 | java.lang.String cityName,
39 | @WebParam(partName = "CountryName", name = "CountryName", targetNamespace = "http://www.webserviceX.NET")
40 | java.lang.String countryName
41 | );
42 | }
43 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/globalWeather/GlobalWeatherHttpGet_GlobalWeatherHttpGet_Client.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.globalWeather;
3 |
4 | /**
5 | * Please modify this class to meet your needs
6 | * This class is not complete
7 | */
8 |
9 | import java.io.File;
10 | import java.net.MalformedURLException;
11 | import java.net.URL;
12 | import javax.xml.namespace.QName;
13 |
14 | /**
15 | * This class was generated by Apache CXF 3.0.0-milestone2
16 | * 2014-03-14T14:08:41.465+05:30
17 | * Generated source version: 3.0.0-milestone2
18 | *
19 | */
20 | public final class GlobalWeatherHttpGet_GlobalWeatherHttpGet_Client {
21 |
22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET", "GlobalWeather");
23 |
24 | private GlobalWeatherHttpGet_GlobalWeatherHttpGet_Client() {
25 | }
26 |
27 | public static void main(String args[]) throws java.lang.Exception {
28 | URL wsdlURL = GlobalWeather.WSDL_LOCATION;
29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) {
30 | File wsdlFile = new File(args[0]);
31 | try {
32 | if (wsdlFile.exists()) {
33 | wsdlURL = wsdlFile.toURI().toURL();
34 | } else {
35 | wsdlURL = new URL(args[0]);
36 | }
37 | } catch (MalformedURLException e) {
38 | e.printStackTrace();
39 | }
40 | }
41 |
42 | GlobalWeather ss = new GlobalWeather(wsdlURL, SERVICE_NAME);
43 | GlobalWeatherHttpGet port = ss.getGlobalWeatherHttpGet();
44 |
45 | {
46 | System.out.println("Invoking getCitiesByCountry...");
47 | java.lang.String _getCitiesByCountry_countryName = "";
48 | java.lang.String _getCitiesByCountry__return = port.getCitiesByCountry(_getCitiesByCountry_countryName);
49 | System.out.println("getCitiesByCountry.result=" + _getCitiesByCountry__return);
50 |
51 |
52 | }
53 | {
54 | System.out.println("Invoking getWeather...");
55 | java.lang.String _getWeather_cityName = "";
56 | java.lang.String _getWeather_countryName = "";
57 | java.lang.String _getWeather__return = port.getWeather(_getWeather_cityName, _getWeather_countryName);
58 | System.out.println("getWeather.result=" + _getWeather__return);
59 |
60 |
61 | }
62 |
63 | System.exit(0);
64 | }
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/globalWeather/GlobalWeatherHttpPost.java:
--------------------------------------------------------------------------------
1 | package businessLayer.webserviceClients.globalWeather;
2 |
3 | import javax.jws.WebMethod;
4 | import javax.jws.WebParam;
5 | import javax.jws.WebResult;
6 | import javax.jws.WebService;
7 | import javax.jws.soap.SOAPBinding;
8 | import javax.xml.bind.annotation.XmlSeeAlso;
9 |
10 | /**
11 | * This class was generated by Apache CXF 3.0.0-milestone2
12 | * 2014-03-14T14:08:41.479+05:30
13 | * Generated source version: 3.0.0-milestone2
14 | *
15 | */
16 | @WebService(targetNamespace = "http://www.webserviceX.NET", name = "GlobalWeatherHttpPost")
17 | @XmlSeeAlso({ObjectFactory.class})
18 | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
19 | public interface GlobalWeatherHttpPost {
20 |
21 | /**
22 | * Get all major cities by country name(full / part).
23 | */
24 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body")
25 | @WebMethod(operationName = "GetCitiesByCountry")
26 | public java.lang.String getCitiesByCountry(
27 | @WebParam(partName = "CountryName", name = "CountryName", targetNamespace = "http://www.webserviceX.NET")
28 | java.lang.String countryName
29 | );
30 |
31 | /**
32 | * Get weather report for all major cities around the world.
33 | */
34 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body")
35 | @WebMethod(operationName = "GetWeather")
36 | public java.lang.String getWeather(
37 | @WebParam(partName = "CityName", name = "CityName", targetNamespace = "http://www.webserviceX.NET")
38 | java.lang.String cityName,
39 | @WebParam(partName = "CountryName", name = "CountryName", targetNamespace = "http://www.webserviceX.NET")
40 | java.lang.String countryName
41 | );
42 | }
43 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/globalWeather/GlobalWeatherHttpPost_GlobalWeatherHttpPost_Client.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.globalWeather;
3 |
4 | /**
5 | * Please modify this class to meet your needs
6 | * This class is not complete
7 | */
8 |
9 | import java.io.File;
10 | import java.net.MalformedURLException;
11 | import java.net.URL;
12 | import javax.xml.namespace.QName;
13 |
14 | /**
15 | * This class was generated by Apache CXF 3.0.0-milestone2
16 | * 2014-03-14T14:08:41.382+05:30
17 | * Generated source version: 3.0.0-milestone2
18 | *
19 | */
20 | public final class GlobalWeatherHttpPost_GlobalWeatherHttpPost_Client {
21 |
22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET", "GlobalWeather");
23 |
24 | private GlobalWeatherHttpPost_GlobalWeatherHttpPost_Client() {
25 | }
26 |
27 | public static void main(String args[]) throws java.lang.Exception {
28 | URL wsdlURL = GlobalWeather.WSDL_LOCATION;
29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) {
30 | File wsdlFile = new File(args[0]);
31 | try {
32 | if (wsdlFile.exists()) {
33 | wsdlURL = wsdlFile.toURI().toURL();
34 | } else {
35 | wsdlURL = new URL(args[0]);
36 | }
37 | } catch (MalformedURLException e) {
38 | e.printStackTrace();
39 | }
40 | }
41 |
42 | GlobalWeather ss = new GlobalWeather(wsdlURL, SERVICE_NAME);
43 | GlobalWeatherHttpPost port = ss.getGlobalWeatherHttpPost();
44 |
45 | {
46 | System.out.println("Invoking getCitiesByCountry...");
47 | java.lang.String _getCitiesByCountry_countryName = "";
48 | java.lang.String _getCitiesByCountry__return = port.getCitiesByCountry(_getCitiesByCountry_countryName);
49 | System.out.println("getCitiesByCountry.result=" + _getCitiesByCountry__return);
50 |
51 |
52 | }
53 | {
54 | System.out.println("Invoking getWeather...");
55 | java.lang.String _getWeather_cityName = "";
56 | java.lang.String _getWeather_countryName = "";
57 | java.lang.String _getWeather__return = port.getWeather(_getWeather_cityName, _getWeather_countryName);
58 | System.out.println("getWeather.result=" + _getWeather__return);
59 |
60 |
61 | }
62 |
63 | System.exit(0);
64 | }
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/globalWeather/GlobalWeatherSoap.java:
--------------------------------------------------------------------------------
1 | package businessLayer.webserviceClients.globalWeather;
2 |
3 | import javax.jws.WebMethod;
4 | import javax.jws.WebParam;
5 | import javax.jws.WebResult;
6 | import javax.jws.WebService;
7 | import javax.xml.bind.annotation.XmlSeeAlso;
8 | import javax.xml.ws.RequestWrapper;
9 | import javax.xml.ws.ResponseWrapper;
10 |
11 | /**
12 | * This class was generated by Apache CXF 3.0.0-milestone2
13 | * 2014-03-14T14:08:41.487+05:30
14 | * Generated source version: 3.0.0-milestone2
15 | *
16 | */
17 | @WebService(targetNamespace = "http://www.webserviceX.NET", name = "GlobalWeatherSoap")
18 | @XmlSeeAlso({ObjectFactory.class})
19 | public interface GlobalWeatherSoap {
20 |
21 | /**
22 | * Get all major cities by country name(full / part).
23 | */
24 | @WebResult(name = "GetCitiesByCountryResult", targetNamespace = "http://www.webserviceX.NET")
25 | @RequestWrapper(localName = "GetCitiesByCountry", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.globalWeather.GetCitiesByCountry")
26 | @WebMethod(operationName = "GetCitiesByCountry", action = "http://www.webserviceX.NET/GetCitiesByCountry")
27 | @ResponseWrapper(localName = "GetCitiesByCountryResponse", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.globalWeather.GetCitiesByCountryResponse")
28 | public java.lang.String getCitiesByCountry(
29 | @WebParam(name = "CountryName", targetNamespace = "http://www.webserviceX.NET")
30 | java.lang.String countryName
31 | );
32 |
33 | /**
34 | * Get weather report for all major cities around the world.
35 | */
36 | @WebResult(name = "GetWeatherResult", targetNamespace = "http://www.webserviceX.NET")
37 | @RequestWrapper(localName = "GetWeather", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.globalWeather.GetWeather")
38 | @WebMethod(operationName = "GetWeather", action = "http://www.webserviceX.NET/GetWeather")
39 | @ResponseWrapper(localName = "GetWeatherResponse", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.globalWeather.GetWeatherResponse")
40 | public java.lang.String getWeather(
41 | @WebParam(name = "CityName", targetNamespace = "http://www.webserviceX.NET")
42 | java.lang.String cityName,
43 | @WebParam(name = "CountryName", targetNamespace = "http://www.webserviceX.NET")
44 | java.lang.String countryName
45 | );
46 | }
47 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/globalWeather/GlobalWeatherSoap_GlobalWeatherSoap12_Client.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.globalWeather;
3 |
4 | /**
5 | * Please modify this class to meet your needs
6 | * This class is not complete
7 | */
8 |
9 | import java.io.File;
10 | import java.net.MalformedURLException;
11 | import java.net.URL;
12 | import javax.xml.namespace.QName;
13 |
14 | /**
15 | * This class was generated by Apache CXF 3.0.0-milestone2
16 | * 2014-03-14T14:08:41.429+05:30
17 | * Generated source version: 3.0.0-milestone2
18 | *
19 | */
20 | public final class GlobalWeatherSoap_GlobalWeatherSoap12_Client {
21 |
22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET", "GlobalWeather");
23 |
24 | private GlobalWeatherSoap_GlobalWeatherSoap12_Client() {
25 | }
26 |
27 | public static void main(String args[]) throws java.lang.Exception {
28 | URL wsdlURL = GlobalWeather.WSDL_LOCATION;
29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) {
30 | File wsdlFile = new File(args[0]);
31 | try {
32 | if (wsdlFile.exists()) {
33 | wsdlURL = wsdlFile.toURI().toURL();
34 | } else {
35 | wsdlURL = new URL(args[0]);
36 | }
37 | } catch (MalformedURLException e) {
38 | e.printStackTrace();
39 | }
40 | }
41 |
42 | GlobalWeather ss = new GlobalWeather(wsdlURL, SERVICE_NAME);
43 | GlobalWeatherSoap port = ss.getGlobalWeatherSoap12();
44 |
45 | {
46 | System.out.println("Invoking getCitiesByCountry...");
47 | java.lang.String _getCitiesByCountry_countryName = "";
48 | java.lang.String _getCitiesByCountry__return = port.getCitiesByCountry(_getCitiesByCountry_countryName);
49 | System.out.println("getCitiesByCountry.result=" + _getCitiesByCountry__return);
50 |
51 |
52 | }
53 | {
54 | System.out.println("Invoking getWeather...");
55 | java.lang.String _getWeather_cityName = "";
56 | java.lang.String _getWeather_countryName = "";
57 | java.lang.String _getWeather__return = port.getWeather(_getWeather_cityName, _getWeather_countryName);
58 | System.out.println("getWeather.result=" + _getWeather__return);
59 |
60 |
61 | }
62 |
63 | System.exit(0);
64 | }
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/globalWeather/GlobalWeatherSoap_GlobalWeatherSoap_Client.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.globalWeather;
3 |
4 | /**
5 | * Please modify this class to meet your needs
6 | * This class is not complete
7 | */
8 |
9 | import java.io.File;
10 | import java.net.MalformedURLException;
11 | import java.net.URL;
12 | import javax.xml.namespace.QName;
13 |
14 | /**
15 | * This class was generated by Apache CXF 3.0.0-milestone2
16 | * 2014-03-14T14:08:41.448+05:30
17 | * Generated source version: 3.0.0-milestone2
18 | *
19 | */
20 | public final class GlobalWeatherSoap_GlobalWeatherSoap_Client {
21 |
22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET", "GlobalWeather");
23 |
24 | private GlobalWeatherSoap_GlobalWeatherSoap_Client() {
25 | }
26 |
27 | public static void main(String args[]) throws java.lang.Exception {
28 | URL wsdlURL = GlobalWeather.WSDL_LOCATION;
29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) {
30 | File wsdlFile = new File(args[0]);
31 | try {
32 | if (wsdlFile.exists()) {
33 | wsdlURL = wsdlFile.toURI().toURL();
34 | } else {
35 | wsdlURL = new URL(args[0]);
36 | }
37 | } catch (MalformedURLException e) {
38 | e.printStackTrace();
39 | }
40 | }
41 |
42 | GlobalWeather ss = new GlobalWeather(wsdlURL, SERVICE_NAME);
43 | GlobalWeatherSoap port = ss.getGlobalWeatherSoap();
44 |
45 | {
46 | System.out.println("Invoking getCitiesByCountry...");
47 | java.lang.String _getCitiesByCountry_countryName = "";
48 | java.lang.String _getCitiesByCountry__return = port.getCitiesByCountry(_getCitiesByCountry_countryName);
49 | System.out.println("getCitiesByCountry.result=" + _getCitiesByCountry__return);
50 |
51 |
52 | }
53 | {
54 | System.out.println("Invoking getWeather...");
55 | java.lang.String _getWeather_cityName = "";
56 | java.lang.String _getWeather_countryName = "";
57 | java.lang.String _getWeather__return = port.getWeather(_getWeather_cityName, _getWeather_countryName);
58 | System.out.println("getWeather.result=" + _getWeather__return);
59 |
60 |
61 | }
62 |
63 | System.exit(0);
64 | }
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/globalWeather/ObjectFactory.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.globalWeather;
3 |
4 | import javax.xml.bind.JAXBElement;
5 | import javax.xml.bind.annotation.XmlElementDecl;
6 | import javax.xml.bind.annotation.XmlRegistry;
7 | import javax.xml.namespace.QName;
8 |
9 |
10 | /**
11 | * This object contains factory methods for each
12 | * Java content interface and Java element interface
13 | * generated in the businessLayer.webserviceClients.globalWeather package.
14 | *
17 | * <complexType>
18 | * <complexContent>
19 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 | * <sequence>
21 | * <element name="ElementName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 | * </sequence>
23 | * </restriction>
24 | * </complexContent>
25 | * </complexType>
26 | *
27 | *
28 | *
29 | */
30 | @XmlAccessorType(XmlAccessType.FIELD)
31 | @XmlType(name = "", propOrder = {
32 | "elementName"
33 | })
34 | @XmlRootElement(name = "GetAtomicNumber")
35 | public class GetAtomicNumber {
36 |
37 | @XmlElement(name = "ElementName")
38 | protected String elementName;
39 |
40 | /**
41 | * Gets the value of the elementName property.
42 | *
43 | * @return
44 | * possible object is
45 | * {@link String }
46 | *
47 | */
48 | public String getElementName() {
49 | return elementName;
50 | }
51 |
52 | /**
53 | * Sets the value of the elementName property.
54 | *
55 | * @param value
56 | * allowed object is
57 | * {@link String }
58 | *
59 | */
60 | public void setElementName(String value) {
61 | this.elementName = value;
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/periodicTable/GetAtomicNumberResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.periodicTable;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlRootElement;
8 | import javax.xml.bind.annotation.XmlType;
9 |
10 |
11 | /**
12 | *
17 | * <complexType>
18 | * <complexContent>
19 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 | * <sequence>
21 | * <element name="GetAtomicNumberResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 | * </sequence>
23 | * </restriction>
24 | * </complexContent>
25 | * </complexType>
26 | *
27 | *
28 | *
29 | */
30 | @XmlAccessorType(XmlAccessType.FIELD)
31 | @XmlType(name = "", propOrder = {
32 | "getAtomicNumberResult"
33 | })
34 | @XmlRootElement(name = "GetAtomicNumberResponse")
35 | public class GetAtomicNumberResponse {
36 |
37 | @XmlElement(name = "GetAtomicNumberResult")
38 | protected String getAtomicNumberResult;
39 |
40 | /**
41 | * Gets the value of the getAtomicNumberResult property.
42 | *
43 | * @return
44 | * possible object is
45 | * {@link String }
46 | *
47 | */
48 | public String getGetAtomicNumberResult() {
49 | return getAtomicNumberResult;
50 | }
51 |
52 | /**
53 | * Sets the value of the getAtomicNumberResult property.
54 | *
55 | * @param value
56 | * allowed object is
57 | * {@link String }
58 | *
59 | */
60 | public void setGetAtomicNumberResult(String value) {
61 | this.getAtomicNumberResult = value;
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/periodicTable/GetAtomicWeight.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.periodicTable;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlRootElement;
8 | import javax.xml.bind.annotation.XmlType;
9 |
10 |
11 | /**
12 | *
17 | * <complexType>
18 | * <complexContent>
19 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 | * <sequence>
21 | * <element name="ElementName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 | * </sequence>
23 | * </restriction>
24 | * </complexContent>
25 | * </complexType>
26 | *
27 | *
28 | *
29 | */
30 | @XmlAccessorType(XmlAccessType.FIELD)
31 | @XmlType(name = "", propOrder = {
32 | "elementName"
33 | })
34 | @XmlRootElement(name = "GetAtomicWeight")
35 | public class GetAtomicWeight {
36 |
37 | @XmlElement(name = "ElementName")
38 | protected String elementName;
39 |
40 | /**
41 | * Gets the value of the elementName property.
42 | *
43 | * @return
44 | * possible object is
45 | * {@link String }
46 | *
47 | */
48 | public String getElementName() {
49 | return elementName;
50 | }
51 |
52 | /**
53 | * Sets the value of the elementName property.
54 | *
55 | * @param value
56 | * allowed object is
57 | * {@link String }
58 | *
59 | */
60 | public void setElementName(String value) {
61 | this.elementName = value;
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/periodicTable/GetAtomicWeightResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.periodicTable;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlRootElement;
8 | import javax.xml.bind.annotation.XmlType;
9 |
10 |
11 | /**
12 | *
17 | * <complexType>
18 | * <complexContent>
19 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 | * <sequence>
21 | * <element name="GetAtomicWeightResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 | * </sequence>
23 | * </restriction>
24 | * </complexContent>
25 | * </complexType>
26 | *
27 | *
28 | *
29 | */
30 | @XmlAccessorType(XmlAccessType.FIELD)
31 | @XmlType(name = "", propOrder = {
32 | "getAtomicWeightResult"
33 | })
34 | @XmlRootElement(name = "GetAtomicWeightResponse")
35 | public class GetAtomicWeightResponse {
36 |
37 | @XmlElement(name = "GetAtomicWeightResult")
38 | protected String getAtomicWeightResult;
39 |
40 | /**
41 | * Gets the value of the getAtomicWeightResult property.
42 | *
43 | * @return
44 | * possible object is
45 | * {@link String }
46 | *
47 | */
48 | public String getGetAtomicWeightResult() {
49 | return getAtomicWeightResult;
50 | }
51 |
52 | /**
53 | * Sets the value of the getAtomicWeightResult property.
54 | *
55 | * @param value
56 | * allowed object is
57 | * {@link String }
58 | *
59 | */
60 | public void setGetAtomicWeightResult(String value) {
61 | this.getAtomicWeightResult = value;
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/periodicTable/GetAtoms.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.periodicTable;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlRootElement;
7 | import javax.xml.bind.annotation.XmlType;
8 |
9 |
10 | /**
11 | *
16 | * <complexType>
17 | * <complexContent>
18 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 | * </restriction>
20 | * </complexContent>
21 | * </complexType>
22 | *
23 | *
24 | *
25 | */
26 | @XmlAccessorType(XmlAccessType.FIELD)
27 | @XmlType(name = "")
28 | @XmlRootElement(name = "GetAtoms")
29 | public class GetAtoms {
30 |
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/periodicTable/GetAtomsResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.periodicTable;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlRootElement;
8 | import javax.xml.bind.annotation.XmlType;
9 |
10 |
11 | /**
12 | *
17 | * <complexType>
18 | * <complexContent>
19 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 | * <sequence>
21 | * <element name="GetAtomsResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 | * </sequence>
23 | * </restriction>
24 | * </complexContent>
25 | * </complexType>
26 | *
27 | *
28 | *
29 | */
30 | @XmlAccessorType(XmlAccessType.FIELD)
31 | @XmlType(name = "", propOrder = {
32 | "getAtomsResult"
33 | })
34 | @XmlRootElement(name = "GetAtomsResponse")
35 | public class GetAtomsResponse {
36 |
37 | @XmlElement(name = "GetAtomsResult")
38 | protected String getAtomsResult;
39 |
40 | /**
41 | * Gets the value of the getAtomsResult property.
42 | *
43 | * @return
44 | * possible object is
45 | * {@link String }
46 | *
47 | */
48 | public String getGetAtomsResult() {
49 | return getAtomsResult;
50 | }
51 |
52 | /**
53 | * Sets the value of the getAtomsResult property.
54 | *
55 | * @param value
56 | * allowed object is
57 | * {@link String }
58 | *
59 | */
60 | public void setGetAtomsResult(String value) {
61 | this.getAtomsResult = value;
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/periodicTable/GetElementSymbol.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.periodicTable;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlRootElement;
8 | import javax.xml.bind.annotation.XmlType;
9 |
10 |
11 | /**
12 | *
17 | * <complexType>
18 | * <complexContent>
19 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 | * <sequence>
21 | * <element name="ElementName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 | * </sequence>
23 | * </restriction>
24 | * </complexContent>
25 | * </complexType>
26 | *
27 | *
28 | *
29 | */
30 | @XmlAccessorType(XmlAccessType.FIELD)
31 | @XmlType(name = "", propOrder = {
32 | "elementName"
33 | })
34 | @XmlRootElement(name = "GetElementSymbol")
35 | public class GetElementSymbol {
36 |
37 | @XmlElement(name = "ElementName")
38 | protected String elementName;
39 |
40 | /**
41 | * Gets the value of the elementName property.
42 | *
43 | * @return
44 | * possible object is
45 | * {@link String }
46 | *
47 | */
48 | public String getElementName() {
49 | return elementName;
50 | }
51 |
52 | /**
53 | * Sets the value of the elementName property.
54 | *
55 | * @param value
56 | * allowed object is
57 | * {@link String }
58 | *
59 | */
60 | public void setElementName(String value) {
61 | this.elementName = value;
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/periodicTable/GetElementSymbolResponse.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.periodicTable;
3 |
4 | import javax.xml.bind.annotation.XmlAccessType;
5 | import javax.xml.bind.annotation.XmlAccessorType;
6 | import javax.xml.bind.annotation.XmlElement;
7 | import javax.xml.bind.annotation.XmlRootElement;
8 | import javax.xml.bind.annotation.XmlType;
9 |
10 |
11 | /**
12 | *
17 | * <complexType>
18 | * <complexContent>
19 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 | * <sequence>
21 | * <element name="GetElementSymbolResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 | * </sequence>
23 | * </restriction>
24 | * </complexContent>
25 | * </complexType>
26 | *
27 | *
28 | *
29 | */
30 | @XmlAccessorType(XmlAccessType.FIELD)
31 | @XmlType(name = "", propOrder = {
32 | "getElementSymbolResult"
33 | })
34 | @XmlRootElement(name = "GetElementSymbolResponse")
35 | public class GetElementSymbolResponse {
36 |
37 | @XmlElement(name = "GetElementSymbolResult")
38 | protected String getElementSymbolResult;
39 |
40 | /**
41 | * Gets the value of the getElementSymbolResult property.
42 | *
43 | * @return
44 | * possible object is
45 | * {@link String }
46 | *
47 | */
48 | public String getGetElementSymbolResult() {
49 | return getElementSymbolResult;
50 | }
51 |
52 | /**
53 | * Sets the value of the getElementSymbolResult property.
54 | *
55 | * @param value
56 | * allowed object is
57 | * {@link String }
58 | *
59 | */
60 | public void setGetElementSymbolResult(String value) {
61 | this.getElementSymbolResult = value;
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/periodicTable/ObjectFactory.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.periodicTable;
3 |
4 | import javax.xml.bind.JAXBElement;
5 | import javax.xml.bind.annotation.XmlElementDecl;
6 | import javax.xml.bind.annotation.XmlRegistry;
7 | import javax.xml.namespace.QName;
8 |
9 |
10 | /**
11 | * This object contains factory methods for each
12 | * Java content interface and Java element interface
13 | * generated in the businessLayer.webserviceClients.periodicTable package.
14 | * features
parameter will have their default values.
68 | * @return
69 | * returns PeriodictableHttpGet
70 | */
71 | @WebEndpoint(name = "periodictableHttpGet")
72 | public PeriodictableHttpGet getPeriodictableHttpGet(WebServiceFeature... features) {
73 | return super.getPort(PeriodictableHttpGet, PeriodictableHttpGet.class, features);
74 | }
75 | /**
76 | *
77 | * @return
78 | * returns PeriodictableSoap
79 | */
80 | @WebEndpoint(name = "periodictableSoap12")
81 | public PeriodictableSoap getPeriodictableSoap12() {
82 | return super.getPort(PeriodictableSoap12, PeriodictableSoap.class);
83 | }
84 |
85 | /**
86 | *
87 | * @param features
88 | * 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.
89 | * @return
90 | * returns PeriodictableSoap
91 | */
92 | @WebEndpoint(name = "periodictableSoap12")
93 | public PeriodictableSoap getPeriodictableSoap12(WebServiceFeature... features) {
94 | return super.getPort(PeriodictableSoap12, PeriodictableSoap.class, features);
95 | }
96 | /**
97 | *
98 | * @return
99 | * returns PeriodictableSoap
100 | */
101 | @WebEndpoint(name = "periodictableSoap")
102 | public PeriodictableSoap getPeriodictableSoap() {
103 | return super.getPort(PeriodictableSoap, PeriodictableSoap.class);
104 | }
105 |
106 | /**
107 | *
108 | * @param features
109 | * 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.
110 | * @return
111 | * returns PeriodictableSoap
112 | */
113 | @WebEndpoint(name = "periodictableSoap")
114 | public PeriodictableSoap getPeriodictableSoap(WebServiceFeature... features) {
115 | return super.getPort(PeriodictableSoap, PeriodictableSoap.class, features);
116 | }
117 | /**
118 | *
119 | * @return
120 | * returns PeriodictableHttpPost
121 | */
122 | @WebEndpoint(name = "periodictableHttpPost")
123 | public PeriodictableHttpPost getPeriodictableHttpPost() {
124 | return super.getPort(PeriodictableHttpPost, PeriodictableHttpPost.class);
125 | }
126 |
127 | /**
128 | *
129 | * @param features
130 | * 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.
131 | * @return
132 | * returns PeriodictableHttpPost
133 | */
134 | @WebEndpoint(name = "periodictableHttpPost")
135 | public PeriodictableHttpPost getPeriodictableHttpPost(WebServiceFeature... features) {
136 | return super.getPort(PeriodictableHttpPost, PeriodictableHttpPost.class, features);
137 | }
138 |
139 | }
140 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/periodicTable/PeriodictableHttpGet.java:
--------------------------------------------------------------------------------
1 | package businessLayer.webserviceClients.periodicTable;
2 |
3 | import javax.jws.WebMethod;
4 | import javax.jws.WebParam;
5 | import javax.jws.WebResult;
6 | import javax.jws.WebService;
7 | import javax.jws.soap.SOAPBinding;
8 | import javax.xml.bind.annotation.XmlSeeAlso;
9 |
10 | /**
11 | * This class was generated by Apache CXF 3.0.0-milestone2
12 | * 2014-03-14T14:08:52.177+05:30
13 | * Generated source version: 3.0.0-milestone2
14 | *
15 | */
16 | @WebService(targetNamespace = "http://www.webserviceX.NET", name = "periodictableHttpGet")
17 | @XmlSeeAlso({ObjectFactory.class})
18 | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
19 | public interface PeriodictableHttpGet {
20 |
21 | /**
22 | * Get atomic Number by element name
23 | */
24 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body")
25 | @WebMethod(operationName = "GetAtomicNumber")
26 | public java.lang.String getAtomicNumber(
27 | @WebParam(partName = "ElementName", name = "ElementName", targetNamespace = "http://www.webserviceX.NET")
28 | java.lang.String elementName
29 | );
30 |
31 | /**
32 | * Get atomic symbol by element name
33 | */
34 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body")
35 | @WebMethod(operationName = "GetElementSymbol")
36 | public java.lang.String getElementSymbol(
37 | @WebParam(partName = "ElementName", name = "ElementName", targetNamespace = "http://www.webserviceX.NET")
38 | java.lang.String elementName
39 | );
40 |
41 | /**
42 | * Get element
43 | */
44 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body")
45 | @WebMethod(operationName = "GetAtoms")
46 | public java.lang.String getAtoms();
47 |
48 | /**
49 | * Get atomic wieght by element name
50 | */
51 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body")
52 | @WebMethod(operationName = "GetAtomicWeight")
53 | public java.lang.String getAtomicWeight(
54 | @WebParam(partName = "ElementName", name = "ElementName", targetNamespace = "http://www.webserviceX.NET")
55 | java.lang.String elementName
56 | );
57 | }
58 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/periodicTable/PeriodictableHttpGet_PeriodictableHttpGet_Client.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.periodicTable;
3 |
4 | /**
5 | * Please modify this class to meet your needs
6 | * This class is not complete
7 | */
8 |
9 | import java.io.File;
10 | import java.net.MalformedURLException;
11 | import java.net.URL;
12 | import javax.xml.namespace.QName;
13 |
14 | /**
15 | * This class was generated by Apache CXF 3.0.0-milestone2
16 | * 2014-03-14T14:08:52.087+05:30
17 | * Generated source version: 3.0.0-milestone2
18 | *
19 | */
20 | public final class PeriodictableHttpGet_PeriodictableHttpGet_Client {
21 |
22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET", "periodictable");
23 |
24 | private PeriodictableHttpGet_PeriodictableHttpGet_Client() {
25 | }
26 |
27 | public static void main(String args[]) throws java.lang.Exception {
28 | URL wsdlURL = Periodictable.WSDL_LOCATION;
29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) {
30 | File wsdlFile = new File(args[0]);
31 | try {
32 | if (wsdlFile.exists()) {
33 | wsdlURL = wsdlFile.toURI().toURL();
34 | } else {
35 | wsdlURL = new URL(args[0]);
36 | }
37 | } catch (MalformedURLException e) {
38 | e.printStackTrace();
39 | }
40 | }
41 |
42 | Periodictable ss = new Periodictable(wsdlURL, SERVICE_NAME);
43 | PeriodictableHttpGet port = ss.getPeriodictableHttpGet();
44 |
45 | {
46 | System.out.println("Invoking getAtomicNumber...");
47 | java.lang.String _getAtomicNumber_elementName = "";
48 | java.lang.String _getAtomicNumber__return = port.getAtomicNumber(_getAtomicNumber_elementName);
49 | System.out.println("getAtomicNumber.result=" + _getAtomicNumber__return);
50 |
51 |
52 | }
53 | {
54 | System.out.println("Invoking getElementSymbol...");
55 | java.lang.String _getElementSymbol_elementName = "";
56 | java.lang.String _getElementSymbol__return = port.getElementSymbol(_getElementSymbol_elementName);
57 | System.out.println("getElementSymbol.result=" + _getElementSymbol__return);
58 |
59 |
60 | }
61 | {
62 | System.out.println("Invoking getAtoms...");
63 | java.lang.String _getAtoms__return = port.getAtoms();
64 | System.out.println("getAtoms.result=" + _getAtoms__return);
65 |
66 |
67 | }
68 | {
69 | System.out.println("Invoking getAtomicWeight...");
70 | java.lang.String _getAtomicWeight_elementName = "";
71 | java.lang.String _getAtomicWeight__return = port.getAtomicWeight(_getAtomicWeight_elementName);
72 | System.out.println("getAtomicWeight.result=" + _getAtomicWeight__return);
73 |
74 |
75 | }
76 |
77 | System.exit(0);
78 | }
79 |
80 | }
81 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/periodicTable/PeriodictableHttpPost.java:
--------------------------------------------------------------------------------
1 | package businessLayer.webserviceClients.periodicTable;
2 |
3 | import javax.jws.WebMethod;
4 | import javax.jws.WebParam;
5 | import javax.jws.WebResult;
6 | import javax.jws.WebService;
7 | import javax.jws.soap.SOAPBinding;
8 | import javax.xml.bind.annotation.XmlSeeAlso;
9 |
10 | /**
11 | * This class was generated by Apache CXF 3.0.0-milestone2
12 | * 2014-03-14T14:08:52.196+05:30
13 | * Generated source version: 3.0.0-milestone2
14 | *
15 | */
16 | @WebService(targetNamespace = "http://www.webserviceX.NET", name = "periodictableHttpPost")
17 | @XmlSeeAlso({ObjectFactory.class})
18 | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
19 | public interface PeriodictableHttpPost {
20 |
21 | /**
22 | * Get atomic Number by element name
23 | */
24 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body")
25 | @WebMethod(operationName = "GetAtomicNumber")
26 | public java.lang.String getAtomicNumber(
27 | @WebParam(partName = "ElementName", name = "ElementName", targetNamespace = "http://www.webserviceX.NET")
28 | java.lang.String elementName
29 | );
30 |
31 | /**
32 | * Get atomic symbol by element name
33 | */
34 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body")
35 | @WebMethod(operationName = "GetElementSymbol")
36 | public java.lang.String getElementSymbol(
37 | @WebParam(partName = "ElementName", name = "ElementName", targetNamespace = "http://www.webserviceX.NET")
38 | java.lang.String elementName
39 | );
40 |
41 | /**
42 | * Get element
43 | */
44 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body")
45 | @WebMethod(operationName = "GetAtoms")
46 | public java.lang.String getAtoms();
47 |
48 | /**
49 | * Get atomic wieght by element name
50 | */
51 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body")
52 | @WebMethod(operationName = "GetAtomicWeight")
53 | public java.lang.String getAtomicWeight(
54 | @WebParam(partName = "ElementName", name = "ElementName", targetNamespace = "http://www.webserviceX.NET")
55 | java.lang.String elementName
56 | );
57 | }
58 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/periodicTable/PeriodictableHttpPost_PeriodictableHttpPost_Client.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.periodicTable;
3 |
4 | /**
5 | * Please modify this class to meet your needs
6 | * This class is not complete
7 | */
8 |
9 | import java.io.File;
10 | import java.net.MalformedURLException;
11 | import java.net.URL;
12 | import javax.xml.namespace.QName;
13 |
14 | /**
15 | * This class was generated by Apache CXF 3.0.0-milestone2
16 | * 2014-03-14T14:08:52.164+05:30
17 | * Generated source version: 3.0.0-milestone2
18 | *
19 | */
20 | public final class PeriodictableHttpPost_PeriodictableHttpPost_Client {
21 |
22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET", "periodictable");
23 |
24 | private PeriodictableHttpPost_PeriodictableHttpPost_Client() {
25 | }
26 |
27 | public static void main(String args[]) throws java.lang.Exception {
28 | URL wsdlURL = Periodictable.WSDL_LOCATION;
29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) {
30 | File wsdlFile = new File(args[0]);
31 | try {
32 | if (wsdlFile.exists()) {
33 | wsdlURL = wsdlFile.toURI().toURL();
34 | } else {
35 | wsdlURL = new URL(args[0]);
36 | }
37 | } catch (MalformedURLException e) {
38 | e.printStackTrace();
39 | }
40 | }
41 |
42 | Periodictable ss = new Periodictable(wsdlURL, SERVICE_NAME);
43 | PeriodictableHttpPost port = ss.getPeriodictableHttpPost();
44 |
45 | {
46 | System.out.println("Invoking getAtomicNumber...");
47 | java.lang.String _getAtomicNumber_elementName = "";
48 | java.lang.String _getAtomicNumber__return = port.getAtomicNumber(_getAtomicNumber_elementName);
49 | System.out.println("getAtomicNumber.result=" + _getAtomicNumber__return);
50 |
51 |
52 | }
53 | {
54 | System.out.println("Invoking getElementSymbol...");
55 | java.lang.String _getElementSymbol_elementName = "";
56 | java.lang.String _getElementSymbol__return = port.getElementSymbol(_getElementSymbol_elementName);
57 | System.out.println("getElementSymbol.result=" + _getElementSymbol__return);
58 |
59 |
60 | }
61 | {
62 | System.out.println("Invoking getAtoms...");
63 | java.lang.String _getAtoms__return = port.getAtoms();
64 | System.out.println("getAtoms.result=" + _getAtoms__return);
65 |
66 |
67 | }
68 | {
69 | System.out.println("Invoking getAtomicWeight...");
70 | java.lang.String _getAtomicWeight_elementName = "";
71 | java.lang.String _getAtomicWeight__return = port.getAtomicWeight(_getAtomicWeight_elementName);
72 | System.out.println("getAtomicWeight.result=" + _getAtomicWeight__return);
73 |
74 |
75 | }
76 |
77 | System.exit(0);
78 | }
79 |
80 | }
81 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/periodicTable/PeriodictableSoap.java:
--------------------------------------------------------------------------------
1 | package businessLayer.webserviceClients.periodicTable;
2 |
3 | import javax.jws.WebMethod;
4 | import javax.jws.WebParam;
5 | import javax.jws.WebResult;
6 | import javax.jws.WebService;
7 | import javax.xml.bind.annotation.XmlSeeAlso;
8 | import javax.xml.ws.RequestWrapper;
9 | import javax.xml.ws.ResponseWrapper;
10 |
11 | /**
12 | * This class was generated by Apache CXF 3.0.0-milestone2
13 | * 2014-03-14T14:08:52.186+05:30
14 | * Generated source version: 3.0.0-milestone2
15 | *
16 | */
17 | @WebService(targetNamespace = "http://www.webserviceX.NET", name = "periodictableSoap")
18 | @XmlSeeAlso({ObjectFactory.class})
19 | public interface PeriodictableSoap {
20 |
21 | /**
22 | * Get atomic Number by element name
23 | */
24 | @WebResult(name = "GetAtomicNumberResult", targetNamespace = "http://www.webserviceX.NET")
25 | @RequestWrapper(localName = "GetAtomicNumber", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.periodicTable.GetAtomicNumber")
26 | @WebMethod(operationName = "GetAtomicNumber", action = "http://www.webserviceX.NET/GetAtomicNumber")
27 | @ResponseWrapper(localName = "GetAtomicNumberResponse", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.periodicTable.GetAtomicNumberResponse")
28 | public java.lang.String getAtomicNumber(
29 | @WebParam(name = "ElementName", targetNamespace = "http://www.webserviceX.NET")
30 | java.lang.String elementName
31 | );
32 |
33 | /**
34 | * Get atomic symbol by element name
35 | */
36 | @WebResult(name = "GetElementSymbolResult", targetNamespace = "http://www.webserviceX.NET")
37 | @RequestWrapper(localName = "GetElementSymbol", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.periodicTable.GetElementSymbol")
38 | @WebMethod(operationName = "GetElementSymbol", action = "http://www.webserviceX.NET/GetElementSymbol")
39 | @ResponseWrapper(localName = "GetElementSymbolResponse", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.periodicTable.GetElementSymbolResponse")
40 | public java.lang.String getElementSymbol(
41 | @WebParam(name = "ElementName", targetNamespace = "http://www.webserviceX.NET")
42 | java.lang.String elementName
43 | );
44 |
45 | /**
46 | * Get element
47 | */
48 | @WebResult(name = "GetAtomsResult", targetNamespace = "http://www.webserviceX.NET")
49 | @RequestWrapper(localName = "GetAtoms", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.periodicTable.GetAtoms")
50 | @WebMethod(operationName = "GetAtoms", action = "http://www.webserviceX.NET/GetAtoms")
51 | @ResponseWrapper(localName = "GetAtomsResponse", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.periodicTable.GetAtomsResponse")
52 | public java.lang.String getAtoms();
53 |
54 | /**
55 | * Get atomic wieght by element name
56 | */
57 | @WebResult(name = "GetAtomicWeightResult", targetNamespace = "http://www.webserviceX.NET")
58 | @RequestWrapper(localName = "GetAtomicWeight", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.periodicTable.GetAtomicWeight")
59 | @WebMethod(operationName = "GetAtomicWeight", action = "http://www.webserviceX.NET/GetAtomicWeight")
60 | @ResponseWrapper(localName = "GetAtomicWeightResponse", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.periodicTable.GetAtomicWeightResponse")
61 | public java.lang.String getAtomicWeight(
62 | @WebParam(name = "ElementName", targetNamespace = "http://www.webserviceX.NET")
63 | java.lang.String elementName
64 | );
65 | }
66 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/periodicTable/PeriodictableSoap_PeriodictableSoap12_Client.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.periodicTable;
3 |
4 | /**
5 | * Please modify this class to meet your needs
6 | * This class is not complete
7 | */
8 |
9 | import java.io.File;
10 | import java.net.MalformedURLException;
11 | import java.net.URL;
12 | import javax.xml.namespace.QName;
13 |
14 | /**
15 | * This class was generated by Apache CXF 3.0.0-milestone2
16 | * 2014-03-14T14:08:52.132+05:30
17 | * Generated source version: 3.0.0-milestone2
18 | *
19 | */
20 | public final class PeriodictableSoap_PeriodictableSoap12_Client {
21 |
22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET", "periodictable");
23 |
24 | private PeriodictableSoap_PeriodictableSoap12_Client() {
25 | }
26 |
27 | public static void main(String args[]) throws java.lang.Exception {
28 | URL wsdlURL = Periodictable.WSDL_LOCATION;
29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) {
30 | File wsdlFile = new File(args[0]);
31 | try {
32 | if (wsdlFile.exists()) {
33 | wsdlURL = wsdlFile.toURI().toURL();
34 | } else {
35 | wsdlURL = new URL(args[0]);
36 | }
37 | } catch (MalformedURLException e) {
38 | e.printStackTrace();
39 | }
40 | }
41 |
42 | Periodictable ss = new Periodictable(wsdlURL, SERVICE_NAME);
43 | PeriodictableSoap port = ss.getPeriodictableSoap12();
44 |
45 | {
46 | System.out.println("Invoking getAtomicNumber...");
47 | java.lang.String _getAtomicNumber_elementName = "";
48 | java.lang.String _getAtomicNumber__return = port.getAtomicNumber(_getAtomicNumber_elementName);
49 | System.out.println("getAtomicNumber.result=" + _getAtomicNumber__return);
50 |
51 |
52 | }
53 | {
54 | System.out.println("Invoking getElementSymbol...");
55 | java.lang.String _getElementSymbol_elementName = "";
56 | java.lang.String _getElementSymbol__return = port.getElementSymbol(_getElementSymbol_elementName);
57 | System.out.println("getElementSymbol.result=" + _getElementSymbol__return);
58 |
59 |
60 | }
61 | {
62 | System.out.println("Invoking getAtoms...");
63 | java.lang.String _getAtoms__return = port.getAtoms();
64 | System.out.println("getAtoms.result=" + _getAtoms__return);
65 |
66 |
67 | }
68 | {
69 | System.out.println("Invoking getAtomicWeight...");
70 | java.lang.String _getAtomicWeight_elementName = "";
71 | java.lang.String _getAtomicWeight__return = port.getAtomicWeight(_getAtomicWeight_elementName);
72 | System.out.println("getAtomicWeight.result=" + _getAtomicWeight__return);
73 |
74 |
75 | }
76 |
77 | System.exit(0);
78 | }
79 |
80 | }
81 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/periodicTable/PeriodictableSoap_PeriodictableSoap_Client.java:
--------------------------------------------------------------------------------
1 |
2 | package businessLayer.webserviceClients.periodicTable;
3 |
4 | /**
5 | * Please modify this class to meet your needs
6 | * This class is not complete
7 | */
8 |
9 | import java.io.File;
10 | import java.net.MalformedURLException;
11 | import java.net.URL;
12 | import javax.xml.namespace.QName;
13 |
14 | /**
15 | * This class was generated by Apache CXF 3.0.0-milestone2
16 | * 2014-03-14T14:08:52.151+05:30
17 | * Generated source version: 3.0.0-milestone2
18 | *
19 | */
20 | public final class PeriodictableSoap_PeriodictableSoap_Client {
21 |
22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET", "periodictable");
23 |
24 | private PeriodictableSoap_PeriodictableSoap_Client() {
25 | }
26 |
27 | public static void main(String args[]) throws java.lang.Exception {
28 | URL wsdlURL = Periodictable.WSDL_LOCATION;
29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) {
30 | File wsdlFile = new File(args[0]);
31 | try {
32 | if (wsdlFile.exists()) {
33 | wsdlURL = wsdlFile.toURI().toURL();
34 | } else {
35 | wsdlURL = new URL(args[0]);
36 | }
37 | } catch (MalformedURLException e) {
38 | e.printStackTrace();
39 | }
40 | }
41 |
42 | Periodictable ss = new Periodictable(wsdlURL, SERVICE_NAME);
43 | PeriodictableSoap port = ss.getPeriodictableSoap();
44 |
45 | {
46 | System.out.println("Invoking getAtomicNumber...");
47 | java.lang.String _getAtomicNumber_elementName = "";
48 | java.lang.String _getAtomicNumber__return = port.getAtomicNumber(_getAtomicNumber_elementName);
49 | System.out.println("getAtomicNumber.result=" + _getAtomicNumber__return);
50 |
51 |
52 | }
53 | {
54 | System.out.println("Invoking getElementSymbol...");
55 | java.lang.String _getElementSymbol_elementName = "";
56 | java.lang.String _getElementSymbol__return = port.getElementSymbol(_getElementSymbol_elementName);
57 | System.out.println("getElementSymbol.result=" + _getElementSymbol__return);
58 |
59 |
60 | }
61 | {
62 | System.out.println("Invoking getAtoms...");
63 | java.lang.String _getAtoms__return = port.getAtoms();
64 | System.out.println("getAtoms.result=" + _getAtoms__return);
65 |
66 |
67 | }
68 | {
69 | System.out.println("Invoking getAtomicWeight...");
70 | java.lang.String _getAtomicWeight_elementName = "";
71 | java.lang.String _getAtomicWeight__return = port.getAtomicWeight(_getAtomicWeight_elementName);
72 | System.out.println("getAtomicWeight.result=" + _getAtomicWeight__return);
73 |
74 |
75 | }
76 |
77 | System.exit(0);
78 | }
79 |
80 | }
81 |
--------------------------------------------------------------------------------
/src/main/java/businessLayer/webserviceClients/periodicTable/package-info.java:
--------------------------------------------------------------------------------
1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://www.webserviceX.NET", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
2 | package businessLayer.webserviceClients.periodicTable;
3 |
--------------------------------------------------------------------------------
/src/main/java/pages/BasePage.java:
--------------------------------------------------------------------------------
1 | package pages;
2 |
3 | import org.apache.log4j.Logger;
4 | import utils.RuntimeUtils;
5 |
6 | public class BasePage {
7 | protected Logger logger;
8 |
9 | public BasePage(){
10 | logger = (Logger) RuntimeUtils.retrieveState("logger");
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/main/java/pages/PageUtils.java:
--------------------------------------------------------------------------------
1 | package pages;
2 |
3 | import utils.DriverUtils;
4 |
5 | public class PageUtils {
6 | public static void navigateTo(String url) {
7 | DriverUtils.getDriver().get(url);
8 | DriverUtils.saveScreenShotAs("navigateTo", "Navigate to: " + url);
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/main/java/pages/SearchPage.java:
--------------------------------------------------------------------------------
1 | package pages;
2 |
3 | import org.apache.log4j.Logger;
4 | import org.openqa.selenium.By;
5 | import org.openqa.selenium.WebDriver;
6 | import utils.DriverUtils;
7 |
8 | public class SearchPage extends BasePage {
9 | private final WebDriver driver;
10 | private String searchInputBoxId = "gbqfq";
11 | private String searchButtonId = "gbqfb";
12 | private String numberOfSearchResultsId = "resultStats";
13 |
14 | public SearchPage() {
15 | driver = DriverUtils.getDriver();
16 | }
17 |
18 | public void searchFor(String searchCriteria) {
19 | enterSearchCriteria(searchCriteria);
20 | search();
21 | }
22 |
23 | private void enterSearchCriteria(String searchCriteria) {
24 | logger.info("enterSearchCriteria: " + searchCriteria);
25 | driver.findElement(By.id(searchInputBoxId)).sendKeys(searchCriteria);
26 | }
27 |
28 | private void search() {
29 | driver.findElement(By.id(searchButtonId)).click();
30 | }
31 |
32 | public int getNumberOfSearchResults() {
33 | String numberOfSearchResults = driver.findElement(By.id(numberOfSearchResultsId)).getText();
34 | DriverUtils.saveScreenShotAs("getNumberOfSearchResults", "Search results: " + numberOfSearchResults);
35 | numberOfSearchResults = numberOfSearchResults.replaceAll("About ", "").replaceAll(" results.*", "").replaceAll(",","");
36 | logger.info("numberOfSearchResults: " + numberOfSearchResults);
37 | return Integer.valueOf(numberOfSearchResults);
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/main/java/utils/CustomAsserts.java:
--------------------------------------------------------------------------------
1 | package utils;
2 |
3 | import org.apache.log4j.Logger;
4 | import org.junit.Assert;
5 |
6 | import java.util.ArrayList;
7 |
8 | public class CustomAsserts {
9 | private static ArrayList