Step 1:
Find the WSDL which is available in global, Here i am selected
http://wsgeoip.lavasoft.com/ipservice.asmx?WSDL
Step 2:
Create a folder in your PC (GEO), navigate to folder using terminal / command prompt. Enter the below command to generate the WSDL classes.
GEO>wsimport -keep “http://wsgeoip.lavasoft.com/ipservice.asmx?WSDL"
Note: Java Should be installed before you run above command.
Step 3:
Once the classes generated, you need to find the Stub Class, Here “GeoIPSService” is the name of the SOAP Stub.

Step 4:
Open GEO folder in your IntelliJ or eclipse, Add one Main class called TestGeoIP.java, As shown below
public class TestGeoIP {
public static void main(String args[]){
String ipAddress = "142.250.195.174";
GeoIPService geoIPService = new GeoIPService();
GeoIPServiceSoap geoIPServiceSoap = geoIPService.getGeoIPServiceSoap();
System.out.println(geoIPServiceSoap.getIpLocation(ipAddress));
}
}
Step 5:
Execute the program and see the output as below:
<GeoIP><Country>US</Country><State>CA</State></GeoIP>
- Strategy Design Pattern
- Observer Design Pattern
- Factory Design Pattern
- Abstract Factory Design Pattern
- Singleton Design Pattern
- Builder Design Pattern
- Prototype Design Pattern
- Decorator Design Pattern
- Command Design Pattern
- Adapter Design Pattern
- Facade Design Pattern
- Bridge Design Pattern
- Template Method Design Pattern
- Iterator Design Pattern
- Composite Design Pattern
- Flyweight Design Pattern
- State Design Pattern
- Proxy Design Pattern
- Chain of Responsibility Design Pattern
- Interpreter Design Pattern
- Mediator Design Pattern
- Memento Design Pattern
- Visitor Design Pattern
DROP DATABASE IF EXISTS ntbank;
CREATE DATABASE ntbank;
use ntbank;
CREATE USER ‘ntbank’@’localhost’ IDENTIFIED BY ‘NTbank@123’;
GRANT ALL PRIVILEGES ON *.* TO ‘ntbank’@’localhost’;
INSERT INTO role (role_id, name) VALUES (2, ‘ROLE_USER’);
INSERT INTO role (role_id, name) VALUES (1, ‘ROLE_ADMIN’);
INSERT INTO role (role_id, name) VALUES (3, ‘ROLE_AGENT’);
Pre-requisites for AEM Installation
- JDK
- AEM Quick start file
- License key / file
def say_hello(name):
return(“Hello,” + name + “!” )
say_hello(nagendra”);
— — — — — — — — — — — — — —
def my_func(st):
operations = (str.lower, str.upper)
return ‘’.join(operations[i%2](x) for i, x in enumerate(st))
>>> my_func(‘nagendra’);
‘nAgEnDrA’
— — — — — — — — — —
list1 = [5,6,7,8]
for num in list1:
# checking condition
if num % 2 == 0:
print(num, end=” “)