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>

--

--

  1. Strategy Design Pattern
  2. Observer Design Pattern
  3. Factory Design Pattern
  4. Abstract Factory Design Pattern
  5. Singleton Design Pattern
  6. Builder Design Pattern
  7. Prototype Design Pattern
  8. Decorator Design Pattern
  9. Command Design Pattern
  10. Adapter Design Pattern
  11. Facade Design Pattern
  12. Bridge Design Pattern
  13. Template Method Design Pattern
  14. Iterator Design Pattern
  15. Composite Design Pattern
  16. Flyweight Design Pattern
  17. State Design Pattern
  18. Proxy Design Pattern
  19. Chain of Responsibility Design Pattern
  20. Interpreter Design Pattern
  21. Mediator Design Pattern
  22. Memento Design Pattern
  23. 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’);

--

--

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=” “)

--

--