├── README.md └── gameStore ├── .classpath ├── .gitignore ├── .project ├── .settings ├── org.eclipse.core.resources.prefs └── org.eclipse.jdt.core.prefs └── src ├── Abstract ├── CampaignService.java ├── CustomerCheckService.java ├── CustomerService.java ├── Entity.java └── SaleService.java ├── Adapters └── MernisCheckManager.java ├── Concrate ├── CustomerManager.java ├── EpicSaleManager.java ├── HalloweenCampaignManeger.java ├── MyCheckManager.java ├── SteamSaleManager.java └── SummerCampaignManager.java ├── Entities ├── Customer.java ├── Game.java └── Gamer.java ├── Mian.java └── tr └── gov └── nvi └── tckimlik └── WS ├── KPSPublic.java ├── KPSPublicLocator.java ├── KPSPublicSoap.java ├── KPSPublicSoapProxy.java └── KPSPublicSoapStub.java /README.md: -------------------------------------------------------------------------------- 1 | # GameStore 2 | Java ile kodlanmış oyun satış platformlarının simülasyon edilmiş hali. Mernis doğrulama sistemi entegre edilmiştir. Gereksinimlerde yazılanlar ve daha fazlası projeye dahil edilmiştir. 3 |
4 | ### Gereksinimler 5 | 6 | 1) Oyuncuların sisteme kayıt olabileceği, bilgilerini güncelleyebileceği, kayıtlarını silebileceği bir ortamı simule ediniz. Müşteri bilgilerinin doğruluğunu Mernis doğrulama sistemini kullanarak doğrulama yapmak istiyoruz. 7 | 8 | 2) Oyun satışı yapılabilecek satış ortamını simule ediniz.( Yapılan satışlar oyuncu ile ilişkilendirilmelidir.) 9 | 10 | 3) Sisteme yeni kampanya girişi, kampanyanın silinmesi ve güncellenmesi imkanlarını simule ediniz. 11 | 12 | 4) Satışlarda kampanya entegrasyonunu simule ediniz. 13 | 14 | 5) Solid prensiplerine uygun bir şekilde kodlayınız. 15 | 16 | #### Folders 17 | 18 | ![gamestoredosya](https://user-images.githubusercontent.com/77545911/122417791-6c0e8d80-cf92-11eb-8381-a0f743c95b97.PNG) 19 |
20 | 21 | #### Main class 22 | ![GameStoreMain](https://user-images.githubusercontent.com/77545911/122417027-dffc6600-cf91-11eb-8b57-4735ec81e0d5.PNG) 23 |
24 | 25 | #### Console 26 | ![GameStoreConsole](https://user-images.githubusercontent.com/77545911/122417419-2356d480-cf92-11eb-89a5-31a5368ddc94.PNG) 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /gameStore/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /gameStore/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /gameStore/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | gameStore 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jem.workbench.JavaEMFNature 16 | org.eclipse.jdt.core.javanature 17 | 18 | 19 | -------------------------------------------------------------------------------- /gameStore/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublic.java=UTF-8 3 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.java=UTF-8 4 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.java=UTF-8 5 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.java=UTF-8 6 | -------------------------------------------------------------------------------- /gameStore/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.6 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.release=disabled 12 | org.eclipse.jdt.core.compiler.source=1.6 13 | -------------------------------------------------------------------------------- /gameStore/src/Abstract/CampaignService.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | import Entities.Game; 4 | 5 | public interface CampaignService { 6 | void add(Game game); 7 | void delete(Game game); 8 | 9 | } 10 | -------------------------------------------------------------------------------- /gameStore/src/Abstract/CustomerCheckService.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | import Entities.Gamer; 4 | 5 | public interface CustomerCheckService { 6 | boolean checkIfRealPerson(Gamer gamer); 7 | } 8 | -------------------------------------------------------------------------------- /gameStore/src/Abstract/CustomerService.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | import Entities.Gamer; 4 | 5 | public interface CustomerService { 6 | void add(Gamer gamer); 7 | void delete(Gamer gamer); 8 | void update(Gamer gamer); 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /gameStore/src/Abstract/Entity.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | public interface Entity { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /gameStore/src/Abstract/SaleService.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | import Entities.Game; 4 | import Entities.Gamer; 5 | 6 | public interface SaleService { 7 | void sale(Game game, Gamer gamer); 8 | 9 | 10 | } 11 | -------------------------------------------------------------------------------- /gameStore/src/Adapters/MernisCheckManager.java: -------------------------------------------------------------------------------- 1 | package Adapters; 2 | 3 | import Abstract.CustomerCheckService; 4 | import Entities.Gamer; 5 | import tr.gov.nvi.tckimlik.WS.KPSPublicSoapProxy; 6 | 7 | public class MernisCheckManager implements CustomerCheckService{ 8 | 9 | @Override 10 | public boolean checkIfRealPerson(Gamer gamer) { 11 | 12 | KPSPublicSoapProxy kpsPublicSoapProxy = new KPSPublicSoapProxy(); 13 | 14 | try { 15 | return kpsPublicSoapProxy.TCKimlikNoDogrula(Long.valueOf(gamer.getNationalityId()), 16 | gamer.getFirstName(), gamer.getLastName(), gamer.getDateOfBirth().getYear()); 17 | } catch (Exception e) { 18 | e.printStackTrace(); 19 | } 20 | 21 | return false; 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /gameStore/src/Concrate/CustomerManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Marulov/GameStore/079ef9b7194e59b0d9072c058b3de041654641ff/gameStore/src/Concrate/CustomerManager.java -------------------------------------------------------------------------------- /gameStore/src/Concrate/EpicSaleManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Marulov/GameStore/079ef9b7194e59b0d9072c058b3de041654641ff/gameStore/src/Concrate/EpicSaleManager.java -------------------------------------------------------------------------------- /gameStore/src/Concrate/HalloweenCampaignManeger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Marulov/GameStore/079ef9b7194e59b0d9072c058b3de041654641ff/gameStore/src/Concrate/HalloweenCampaignManeger.java -------------------------------------------------------------------------------- /gameStore/src/Concrate/MyCheckManager.java: -------------------------------------------------------------------------------- 1 | package Concrate; 2 | 3 | import Abstract.CustomerCheckService; 4 | import Entities.Gamer; 5 | 6 | public class MyCheckManager implements CustomerCheckService { 7 | 8 | @Override 9 | public boolean checkIfRealPerson(Gamer gamer) { 10 | if (gamer.getNationalityId().length() == 11) { 11 | return true; 12 | } 13 | return false; 14 | 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /gameStore/src/Concrate/SteamSaleManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Marulov/GameStore/079ef9b7194e59b0d9072c058b3de041654641ff/gameStore/src/Concrate/SteamSaleManager.java -------------------------------------------------------------------------------- /gameStore/src/Concrate/SummerCampaignManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Marulov/GameStore/079ef9b7194e59b0d9072c058b3de041654641ff/gameStore/src/Concrate/SummerCampaignManager.java -------------------------------------------------------------------------------- /gameStore/src/Entities/Customer.java: -------------------------------------------------------------------------------- 1 | package Entities; 2 | 3 | import java.time.LocalDate; 4 | 5 | import Abstract.Entity; 6 | 7 | public class Customer implements Entity{ 8 | private int id; 9 | private String firstName; 10 | private String lastName; 11 | private LocalDate dateOfBirth; 12 | private String nationalityId; 13 | 14 | public Customer() { 15 | 16 | } 17 | 18 | public Customer(int id, String firstName, String lastName, LocalDate dateOfBirth, String nationalityId) { 19 | super(); 20 | this.id = id; 21 | this.firstName = firstName; 22 | this.lastName = lastName; 23 | this.dateOfBirth = dateOfBirth; 24 | this.nationalityId = nationalityId; 25 | } 26 | 27 | public int getId() { 28 | return id; 29 | } 30 | 31 | public void setId(int id) { 32 | this.id = id; 33 | } 34 | 35 | public String getFirstName() { 36 | return firstName; 37 | } 38 | 39 | public void setFirstName(String firstName) { 40 | this.firstName = firstName; 41 | } 42 | 43 | public String getLastName() { 44 | return lastName; 45 | } 46 | 47 | public void setLastName(String lastName) { 48 | this.lastName = lastName; 49 | } 50 | 51 | public LocalDate getDateOfBirth() { 52 | return dateOfBirth; 53 | } 54 | 55 | public void setDateOfBirth(LocalDate dateOfBirth) { 56 | this.dateOfBirth = dateOfBirth; 57 | } 58 | 59 | public String getNationalityId() { 60 | return nationalityId; 61 | } 62 | 63 | public void setNationalityId(String nationalityId) { 64 | this.nationalityId = nationalityId; 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /gameStore/src/Entities/Game.java: -------------------------------------------------------------------------------- 1 | package Entities; 2 | 3 | public class Game { 4 | private int id; 5 | private String name; 6 | private int price; 7 | private int stock; 8 | private int discount; 9 | 10 | public Game() { 11 | 12 | } 13 | 14 | public Game(int id, String name, int price, int stock, int discount) { 15 | super(); 16 | this.id = id; 17 | this.name = name; 18 | this.price = price; 19 | this.stock = stock; 20 | this.discount = discount; 21 | } 22 | 23 | public int getId() { 24 | return id; 25 | } 26 | 27 | public void setId(int id) { 28 | this.id = id; 29 | } 30 | 31 | public String getName() { 32 | return name; 33 | } 34 | 35 | public void setName(String name) { 36 | this.name = name; 37 | } 38 | 39 | public int getPrice() { 40 | return price; 41 | } 42 | 43 | public void setPrice(int price) { 44 | this.price = price; 45 | } 46 | 47 | public int getStock() { 48 | return stock; 49 | } 50 | 51 | public void setStock(int stock) { 52 | this.stock = stock; 53 | } 54 | 55 | public int getDiscount() { 56 | return this.price - ((int)(this.price * this.discount) / 100); 57 | } 58 | 59 | } 60 | -------------------------------------------------------------------------------- /gameStore/src/Entities/Gamer.java: -------------------------------------------------------------------------------- 1 | package Entities; 2 | 3 | import java.time.LocalDate; 4 | 5 | public class Gamer extends Customer { 6 | private String userName; 7 | 8 | public Gamer() { 9 | 10 | } 11 | 12 | public Gamer(String userName, int id, String firstName, String lastName, LocalDate dateOfBirth, String nationalityId) { 13 | super(id, firstName, lastName, dateOfBirth, nationalityId); 14 | this.userName = userName; 15 | } 16 | 17 | public String getUserName() { 18 | return userName; 19 | } 20 | 21 | public void setUserName(String userName) { 22 | this.userName = userName; 23 | } 24 | 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /gameStore/src/Mian.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Marulov/GameStore/079ef9b7194e59b0d9072c058b3de041654641ff/gameStore/src/Mian.java -------------------------------------------------------------------------------- /gameStore/src/tr/gov/nvi/tckimlik/WS/KPSPublic.java: -------------------------------------------------------------------------------- 1 | /** 2 | * KPSPublic.java 3 | * 4 | * This file was auto-generated from WSDL 5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. 6 | */ 7 | 8 | package tr.gov.nvi.tckimlik.WS; 9 | 10 | public interface KPSPublic extends javax.xml.rpc.Service { 11 | public java.lang.String getKPSPublicSoapAddress(); 12 | 13 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap() throws javax.xml.rpc.ServiceException; 14 | 15 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException; 16 | } 17 | -------------------------------------------------------------------------------- /gameStore/src/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.java: -------------------------------------------------------------------------------- 1 | /** 2 | * KPSPublicLocator.java 3 | * 4 | * This file was auto-generated from WSDL 5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. 6 | */ 7 | 8 | package tr.gov.nvi.tckimlik.WS; 9 | 10 | public class KPSPublicLocator extends org.apache.axis.client.Service implements tr.gov.nvi.tckimlik.WS.KPSPublic { 11 | 12 | public KPSPublicLocator() { 13 | } 14 | 15 | 16 | public KPSPublicLocator(org.apache.axis.EngineConfiguration config) { 17 | super(config); 18 | } 19 | 20 | public KPSPublicLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException { 21 | super(wsdlLoc, sName); 22 | } 23 | 24 | // Use to get a proxy class for KPSPublicSoap 25 | private java.lang.String KPSPublicSoap_address = "https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx"; 26 | 27 | public java.lang.String getKPSPublicSoapAddress() { 28 | return KPSPublicSoap_address; 29 | } 30 | 31 | // The WSDD service name defaults to the port name. 32 | private java.lang.String KPSPublicSoapWSDDServiceName = "KPSPublicSoap"; 33 | 34 | public java.lang.String getKPSPublicSoapWSDDServiceName() { 35 | return KPSPublicSoapWSDDServiceName; 36 | } 37 | 38 | public void setKPSPublicSoapWSDDServiceName(java.lang.String name) { 39 | KPSPublicSoapWSDDServiceName = name; 40 | } 41 | 42 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap() throws javax.xml.rpc.ServiceException { 43 | java.net.URL endpoint; 44 | try { 45 | endpoint = new java.net.URL(KPSPublicSoap_address); 46 | } 47 | catch (java.net.MalformedURLException e) { 48 | throw new javax.xml.rpc.ServiceException(e); 49 | } 50 | return getKPSPublicSoap(endpoint); 51 | } 52 | 53 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { 54 | try { 55 | tr.gov.nvi.tckimlik.WS.KPSPublicSoapStub _stub = new tr.gov.nvi.tckimlik.WS.KPSPublicSoapStub(portAddress, this); 56 | _stub.setPortName(getKPSPublicSoapWSDDServiceName()); 57 | return _stub; 58 | } 59 | catch (org.apache.axis.AxisFault e) { 60 | return null; 61 | } 62 | } 63 | 64 | public void setKPSPublicSoapEndpointAddress(java.lang.String address) { 65 | KPSPublicSoap_address = address; 66 | } 67 | 68 | /** 69 | * For the given interface, get the stub implementation. 70 | * If this service has no port for the given interface, 71 | * then ServiceException is thrown. 72 | */ 73 | public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { 74 | try { 75 | if (tr.gov.nvi.tckimlik.WS.KPSPublicSoap.class.isAssignableFrom(serviceEndpointInterface)) { 76 | tr.gov.nvi.tckimlik.WS.KPSPublicSoapStub _stub = new tr.gov.nvi.tckimlik.WS.KPSPublicSoapStub(new java.net.URL(KPSPublicSoap_address), this); 77 | _stub.setPortName(getKPSPublicSoapWSDDServiceName()); 78 | return _stub; 79 | } 80 | } 81 | catch (java.lang.Throwable t) { 82 | throw new javax.xml.rpc.ServiceException(t); 83 | } 84 | throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); 85 | } 86 | 87 | /** 88 | * For the given interface, get the stub implementation. 89 | * If this service has no port for the given interface, 90 | * then ServiceException is thrown. 91 | */ 92 | public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { 93 | if (portName == null) { 94 | return getPort(serviceEndpointInterface); 95 | } 96 | java.lang.String inputPortName = portName.getLocalPart(); 97 | if ("KPSPublicSoap".equals(inputPortName)) { 98 | return getKPSPublicSoap(); 99 | } 100 | else { 101 | java.rmi.Remote _stub = getPort(serviceEndpointInterface); 102 | ((org.apache.axis.client.Stub) _stub).setPortName(portName); 103 | return _stub; 104 | } 105 | } 106 | 107 | public javax.xml.namespace.QName getServiceName() { 108 | return new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "KPSPublic"); 109 | } 110 | 111 | private java.util.HashSet ports = null; 112 | 113 | public java.util.Iterator getPorts() { 114 | if (ports == null) { 115 | ports = new java.util.HashSet(); 116 | ports.add(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "KPSPublicSoap")); 117 | } 118 | return ports.iterator(); 119 | } 120 | 121 | /** 122 | * Set the endpoint address for the specified port name. 123 | */ 124 | public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { 125 | 126 | if ("KPSPublicSoap".equals(portName)) { 127 | setKPSPublicSoapEndpointAddress(address); 128 | } 129 | else 130 | { // Unknown Port Name 131 | throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); 132 | } 133 | } 134 | 135 | /** 136 | * Set the endpoint address for the specified port name. 137 | */ 138 | public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException { 139 | setEndpointAddress(portName.getLocalPart(), address); 140 | } 141 | 142 | } 143 | -------------------------------------------------------------------------------- /gameStore/src/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.java: -------------------------------------------------------------------------------- 1 | /** 2 | * KPSPublicSoap.java 3 | * 4 | * This file was auto-generated from WSDL 5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. 6 | */ 7 | 8 | package tr.gov.nvi.tckimlik.WS; 9 | 10 | public interface KPSPublicSoap extends java.rmi.Remote { 11 | public boolean TCKimlikNoDogrula(long TCKimlikNo, java.lang.String ad, java.lang.String soyad, int dogumYili) throws java.rmi.RemoteException; 12 | } 13 | -------------------------------------------------------------------------------- /gameStore/src/tr/gov/nvi/tckimlik/WS/KPSPublicSoapProxy.java: -------------------------------------------------------------------------------- 1 | package tr.gov.nvi.tckimlik.WS; 2 | 3 | public class KPSPublicSoapProxy implements tr.gov.nvi.tckimlik.WS.KPSPublicSoap { 4 | private String _endpoint = null; 5 | private tr.gov.nvi.tckimlik.WS.KPSPublicSoap kPSPublicSoap = null; 6 | 7 | public KPSPublicSoapProxy() { 8 | _initKPSPublicSoapProxy(); 9 | } 10 | 11 | public KPSPublicSoapProxy(String endpoint) { 12 | _endpoint = endpoint; 13 | _initKPSPublicSoapProxy(); 14 | } 15 | 16 | private void _initKPSPublicSoapProxy() { 17 | try { 18 | kPSPublicSoap = (new tr.gov.nvi.tckimlik.WS.KPSPublicLocator()).getKPSPublicSoap(); 19 | if (kPSPublicSoap != null) { 20 | if (_endpoint != null) 21 | ((javax.xml.rpc.Stub)kPSPublicSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); 22 | else 23 | _endpoint = (String)((javax.xml.rpc.Stub)kPSPublicSoap)._getProperty("javax.xml.rpc.service.endpoint.address"); 24 | } 25 | 26 | } 27 | catch (javax.xml.rpc.ServiceException serviceException) {} 28 | } 29 | 30 | public String getEndpoint() { 31 | return _endpoint; 32 | } 33 | 34 | public void setEndpoint(String endpoint) { 35 | _endpoint = endpoint; 36 | if (kPSPublicSoap != null) 37 | ((javax.xml.rpc.Stub)kPSPublicSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); 38 | 39 | } 40 | 41 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap() { 42 | if (kPSPublicSoap == null) 43 | _initKPSPublicSoapProxy(); 44 | return kPSPublicSoap; 45 | } 46 | 47 | public boolean TCKimlikNoDogrula(long TCKimlikNo, java.lang.String ad, java.lang.String soyad, int dogumYili) throws java.rmi.RemoteException{ 48 | if (kPSPublicSoap == null) 49 | _initKPSPublicSoapProxy(); 50 | return kPSPublicSoap.TCKimlikNoDogrula(TCKimlikNo, ad, soyad, dogumYili); 51 | } 52 | 53 | 54 | } -------------------------------------------------------------------------------- /gameStore/src/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.java: -------------------------------------------------------------------------------- 1 | /** 2 | * KPSPublicSoapStub.java 3 | * 4 | * This file was auto-generated from WSDL 5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. 6 | */ 7 | 8 | package tr.gov.nvi.tckimlik.WS; 9 | 10 | public class KPSPublicSoapStub extends org.apache.axis.client.Stub implements tr.gov.nvi.tckimlik.WS.KPSPublicSoap { 11 | private java.util.Vector cachedSerClasses = new java.util.Vector(); 12 | private java.util.Vector cachedSerQNames = new java.util.Vector(); 13 | private java.util.Vector cachedSerFactories = new java.util.Vector(); 14 | private java.util.Vector cachedDeserFactories = new java.util.Vector(); 15 | 16 | static org.apache.axis.description.OperationDesc [] _operations; 17 | 18 | static { 19 | _operations = new org.apache.axis.description.OperationDesc[1]; 20 | _initOperationDesc1(); 21 | } 22 | 23 | private static void _initOperationDesc1(){ 24 | org.apache.axis.description.OperationDesc oper; 25 | org.apache.axis.description.ParameterDesc param; 26 | oper = new org.apache.axis.description.OperationDesc(); 27 | oper.setName("TCKimlikNoDogrula"); 28 | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "TCKimlikNo"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false); 29 | oper.addParameter(param); 30 | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "Ad"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); 31 | param.setOmittable(true); 32 | oper.addParameter(param); 33 | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "Soyad"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); 34 | param.setOmittable(true); 35 | oper.addParameter(param); 36 | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "DogumYili"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false); 37 | oper.addParameter(param); 38 | oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean")); 39 | oper.setReturnClass(boolean.class); 40 | oper.setReturnQName(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "TCKimlikNoDogrulaResult")); 41 | oper.setStyle(org.apache.axis.constants.Style.WRAPPED); 42 | oper.setUse(org.apache.axis.constants.Use.LITERAL); 43 | _operations[0] = oper; 44 | 45 | } 46 | 47 | public KPSPublicSoapStub() throws org.apache.axis.AxisFault { 48 | this(null); 49 | } 50 | 51 | public KPSPublicSoapStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { 52 | this(service); 53 | super.cachedEndpoint = endpointURL; 54 | } 55 | 56 | public KPSPublicSoapStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { 57 | if (service == null) { 58 | super.service = new org.apache.axis.client.Service(); 59 | } else { 60 | super.service = service; 61 | } 62 | ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2"); 63 | } 64 | 65 | protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException { 66 | try { 67 | org.apache.axis.client.Call _call = super._createCall(); 68 | if (super.maintainSessionSet) { 69 | _call.setMaintainSession(super.maintainSession); 70 | } 71 | if (super.cachedUsername != null) { 72 | _call.setUsername(super.cachedUsername); 73 | } 74 | if (super.cachedPassword != null) { 75 | _call.setPassword(super.cachedPassword); 76 | } 77 | if (super.cachedEndpoint != null) { 78 | _call.setTargetEndpointAddress(super.cachedEndpoint); 79 | } 80 | if (super.cachedTimeout != null) { 81 | _call.setTimeout(super.cachedTimeout); 82 | } 83 | if (super.cachedPortName != null) { 84 | _call.setPortName(super.cachedPortName); 85 | } 86 | java.util.Enumeration keys = super.cachedProperties.keys(); 87 | while (keys.hasMoreElements()) { 88 | java.lang.String key = (java.lang.String) keys.nextElement(); 89 | _call.setProperty(key, super.cachedProperties.get(key)); 90 | } 91 | return _call; 92 | } 93 | catch (java.lang.Throwable _t) { 94 | throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t); 95 | } 96 | } 97 | 98 | public boolean TCKimlikNoDogrula(long TCKimlikNo, java.lang.String ad, java.lang.String soyad, int dogumYili) throws java.rmi.RemoteException { 99 | if (super.cachedEndpoint == null) { 100 | throw new org.apache.axis.NoEndPointException(); 101 | } 102 | org.apache.axis.client.Call _call = createCall(); 103 | _call.setOperation(_operations[0]); 104 | _call.setUseSOAPAction(true); 105 | _call.setSOAPActionURI("http://tckimlik.nvi.gov.tr/WS/TCKimlikNoDogrula"); 106 | _call.setEncodingStyle(null); 107 | _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); 108 | _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); 109 | _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); 110 | _call.setOperationName(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "TCKimlikNoDogrula")); 111 | 112 | setRequestHeaders(_call); 113 | setAttachments(_call); 114 | try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(TCKimlikNo), ad, soyad, new java.lang.Integer(dogumYili)}); 115 | 116 | if (_resp instanceof java.rmi.RemoteException) { 117 | throw (java.rmi.RemoteException)_resp; 118 | } 119 | else { 120 | extractAttachments(_call); 121 | try { 122 | return ((java.lang.Boolean) _resp).booleanValue(); 123 | } catch (java.lang.Exception _exception) { 124 | return ((java.lang.Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue(); 125 | } 126 | } 127 | } catch (org.apache.axis.AxisFault axisFaultException) { 128 | throw axisFaultException; 129 | } 130 | } 131 | 132 | } 133 | --------------------------------------------------------------------------------