├── GameProject
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ └── org.eclipse.jdt.core.prefs
├── bin
│ ├── Abstract
│ │ ├── GameSaleService.class
│ │ ├── GameService.class
│ │ ├── GameUserCheckService.class
│ │ ├── GameUserService.class
│ │ └── OfferService.class
│ ├── Adapter
│ │ └── MernisServiceAdapter.class
│ ├── Concrate
│ │ ├── GameManager.class
│ │ ├── GameSaleManager.class
│ │ ├── GameUserCheckManager.class
│ │ ├── GameUserManage.class
│ │ └── OfferManager.class
│ ├── Entities
│ │ ├── Game.class
│ │ ├── GameUser.class
│ │ └── Offer.class
│ ├── Main.class
│ └── tr
│ │ └── gov
│ │ └── nvi
│ │ └── tckimlik
│ │ └── WS
│ │ ├── KPSPublic.class
│ │ ├── KPSPublicLocator.class
│ │ ├── KPSPublicSoap.class
│ │ ├── KPSPublicSoapProxy.class
│ │ └── KPSPublicSoapStub.class
└── src
│ ├── Abstract
│ ├── GameSaleService.java
│ ├── GameService.java
│ ├── GameUserCheckService.java
│ ├── GameUserService.java
│ └── OfferService.java
│ ├── Adapter
│ └── MernisServiceAdapter.java
│ ├── Concrate
│ ├── GameManager.java
│ ├── GameSaleManager.java
│ ├── GameUserCheckManager.java
│ ├── GameUserManage.java
│ └── OfferManager.java
│ ├── Entities
│ ├── Game.java
│ ├── GameUser.java
│ └── Offer.java
│ ├── Main.java
│ └── tr
│ └── gov
│ └── nvi
│ └── tckimlik
│ └── WS
│ ├── KPSPublic.java
│ ├── KPSPublicLocator.java
│ ├── KPSPublicSoap.java
│ ├── KPSPublicSoapProxy.java
│ └── KPSPublicSoapStub.java
└── README.md
/GameProject/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/GameProject/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | GameProject
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 |
--------------------------------------------------------------------------------
/GameProject/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/Adapter/MernisServiceAdapter.java=UTF-8
3 | encoding//src/Concrate/GameUserManage.java=UTF-8
4 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublic.java=UTF-8
5 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.java=UTF-8
6 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.java=UTF-8
7 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.java=UTF-8
8 |
--------------------------------------------------------------------------------
/GameProject/.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=16
4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5 | org.eclipse.jdt.core.compiler.compliance=16
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.enablePreviewFeatures=disabled
11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
13 | org.eclipse.jdt.core.compiler.release=enabled
14 | org.eclipse.jdt.core.compiler.source=16
15 |
--------------------------------------------------------------------------------
/GameProject/bin/Abstract/GameSaleService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/Abstract/GameSaleService.class
--------------------------------------------------------------------------------
/GameProject/bin/Abstract/GameService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/Abstract/GameService.class
--------------------------------------------------------------------------------
/GameProject/bin/Abstract/GameUserCheckService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/Abstract/GameUserCheckService.class
--------------------------------------------------------------------------------
/GameProject/bin/Abstract/GameUserService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/Abstract/GameUserService.class
--------------------------------------------------------------------------------
/GameProject/bin/Abstract/OfferService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/Abstract/OfferService.class
--------------------------------------------------------------------------------
/GameProject/bin/Adapter/MernisServiceAdapter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/Adapter/MernisServiceAdapter.class
--------------------------------------------------------------------------------
/GameProject/bin/Concrate/GameManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/Concrate/GameManager.class
--------------------------------------------------------------------------------
/GameProject/bin/Concrate/GameSaleManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/Concrate/GameSaleManager.class
--------------------------------------------------------------------------------
/GameProject/bin/Concrate/GameUserCheckManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/Concrate/GameUserCheckManager.class
--------------------------------------------------------------------------------
/GameProject/bin/Concrate/GameUserManage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/Concrate/GameUserManage.class
--------------------------------------------------------------------------------
/GameProject/bin/Concrate/OfferManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/Concrate/OfferManager.class
--------------------------------------------------------------------------------
/GameProject/bin/Entities/Game.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/Entities/Game.class
--------------------------------------------------------------------------------
/GameProject/bin/Entities/GameUser.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/Entities/GameUser.class
--------------------------------------------------------------------------------
/GameProject/bin/Entities/Offer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/Entities/Offer.class
--------------------------------------------------------------------------------
/GameProject/bin/Main.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/Main.class
--------------------------------------------------------------------------------
/GameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublic.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublic.class
--------------------------------------------------------------------------------
/GameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.class
--------------------------------------------------------------------------------
/GameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.class
--------------------------------------------------------------------------------
/GameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoapProxy.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoapProxy.class
--------------------------------------------------------------------------------
/GameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.class
--------------------------------------------------------------------------------
/GameProject/src/Abstract/GameSaleService.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/src/Abstract/GameSaleService.java
--------------------------------------------------------------------------------
/GameProject/src/Abstract/GameService.java:
--------------------------------------------------------------------------------
1 | package Abstract;
2 |
3 | import Entities.Game;
4 | import Entities.GameUser;
5 |
6 | public interface GameService {
7 | void add(Game game);
8 | void delete(Game game);
9 | void uptade(Game game);
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/GameProject/src/Abstract/GameUserCheckService.java:
--------------------------------------------------------------------------------
1 | package Abstract;
2 |
3 | import Entities.GameUser;
4 |
5 | public interface GameUserCheckService {
6 | boolean CheckIfRealPerson(GameUser gameUser);
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/GameProject/src/Abstract/GameUserService.java:
--------------------------------------------------------------------------------
1 | package Abstract;
2 |
3 | import Entities.GameUser;
4 |
5 | public interface GameUserService {
6 |
7 | void add(GameUser gameUser);
8 | void delete(GameUser gameUser);
9 | void uptade(GameUser gameUser);
10 |
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/GameProject/src/Abstract/OfferService.java:
--------------------------------------------------------------------------------
1 | package Abstract;
2 |
3 | import Entities.GameUser;
4 | import Entities.Offer;
5 |
6 | public interface OfferService {
7 | void add(Offer offer);
8 | void delete(Offer offer);
9 | void uptade(Offer offer);
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/GameProject/src/Adapter/MernisServiceAdapter.java:
--------------------------------------------------------------------------------
1 | package Adapter;
2 |
3 | import java.rmi.RemoteException;
4 | import java.util.Locale;
5 |
6 | import Abstract.GameUserCheckService;
7 | import Entities.GameUser;
8 | import tr.gov.nvi.tckimlik.WS.KPSPublicSoapProxy;
9 |
10 | public class MernisServiceAdapter implements GameUserCheckService{
11 |
12 |
13 | @Override
14 | public boolean CheckIfRealPerson(GameUser gameUser) {
15 | KPSPublicSoapProxy client=new KPSPublicSoapProxy();
16 |
17 | boolean result=true;
18 | try {
19 | result =client.TCKimlikNoDogrula(Long.parseLong(gameUser.getNationalityId()), gameUser.getFirstName().toUpperCase(new Locale("tr")),
20 | gameUser.getLastName().toUpperCase(new Locale("tr")), gameUser.getDateOfBirth());
21 | } catch (NumberFormatException e) {
22 | // TODO Auto-generated catch block
23 | e.printStackTrace();
24 | } catch (RemoteException e) {
25 | // TODO Auto-generated catch block
26 | e.printStackTrace();
27 | }
28 | return result;
29 |
30 |
31 | }
32 | }
33 |
34 |
35 |
--------------------------------------------------------------------------------
/GameProject/src/Concrate/GameManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/src/Concrate/GameManager.java
--------------------------------------------------------------------------------
/GameProject/src/Concrate/GameSaleManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/src/Concrate/GameSaleManager.java
--------------------------------------------------------------------------------
/GameProject/src/Concrate/GameUserCheckManager.java:
--------------------------------------------------------------------------------
1 | package Concrate;
2 |
3 | import Abstract.GameUserCheckService;
4 | import Entities.GameUser;
5 |
6 | public class GameUserCheckManager implements GameUserCheckService{
7 |
8 | @Override
9 | public boolean CheckIfRealPerson(GameUser gameUser) {
10 |
11 | return true;
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/GameProject/src/Concrate/GameUserManage.java:
--------------------------------------------------------------------------------
1 | package Concrate;
2 |
3 | import Abstract.GameUserCheckService;
4 | import Abstract.GameUserService;
5 | import Entities.GameUser;
6 |
7 | public class GameUserManage implements GameUserService{
8 |
9 | GameUserCheckService gameUserCheckService;
10 |
11 | public GameUserManage(GameUserCheckService gameUserCheckService){
12 | this.gameUserCheckService=gameUserCheckService;
13 | }
14 | @Override
15 | public void add(GameUser gameUser) {
16 | //System.out.println("Oyuncu eklendi. "+ gameUser.getFirstName());
17 | if(gameUserCheckService.CheckIfRealPerson(gameUser)) {
18 | System.out.println(gameUser.getFirstName() + " adlı oyuncu kaydedildi. ");
19 | }
20 | else
21 | {
22 | System.out.println(gameUser.getFirstName() + " 'adlı oyuncunun kaydı başarısız oldu.");
23 | }
24 |
25 | }
26 |
27 | @Override
28 | public void delete(GameUser gameUser) {
29 | System.out.println("Oyuncu silindi" + gameUser.getFirstName());
30 |
31 | }
32 |
33 | @Override
34 | public void uptade(GameUser gameUser) {
35 | System.out.println("Oyuncu bilgileri güncellendi. "+gameUser.getFirstName());
36 |
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/GameProject/src/Concrate/OfferManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/src/Concrate/OfferManager.java
--------------------------------------------------------------------------------
/GameProject/src/Entities/Game.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/src/Entities/Game.java
--------------------------------------------------------------------------------
/GameProject/src/Entities/GameUser.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/src/Entities/GameUser.java
--------------------------------------------------------------------------------
/GameProject/src/Entities/Offer.java:
--------------------------------------------------------------------------------
1 | package Entities;
2 |
3 | public class Offer {
4 | //FIELD
5 | private int id;
6 | private String offerName;
7 | private double offerDiscount;
8 | private int offerDate;
9 |
10 | //YAPICI
11 | public Offer() {
12 |
13 | }
14 | public Offer(int id, String offerName, double offerDiscount, int offerDate) {
15 | super();
16 | this.id = id;
17 | this.offerName = offerName;
18 | this.offerDiscount = offerDiscount;
19 | this.offerDate = offerDate;
20 | }
21 |
22 | //SET/GET
23 | public int getId() {
24 | return id;
25 | }
26 | public void setId(int id) {
27 | this.id = id;
28 | }
29 | public String getOfferName() {
30 | return offerName;
31 | }
32 | public void setOfferName(String offerName) {
33 | this.offerName = offerName;
34 | }
35 | public double getOfferDiscount() {
36 | return offerDiscount;
37 | }
38 | public void setOfferDiscount(double offerDiscount) {
39 | this.offerDiscount = offerDiscount;
40 | }
41 | public int getOfferDate() {
42 | return offerDate;
43 | }
44 | public void setOfferDate(int offerDate) {
45 | this.offerDate = offerDate;
46 | }
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/GameProject/src/Main.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kayambetul/javaCampGameProject/6bc705e3fe4c64abef8cafd19075fb99750b7b70/GameProject/src/Main.java
--------------------------------------------------------------------------------
/GameProject/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 |
--------------------------------------------------------------------------------
/GameProject/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 |
--------------------------------------------------------------------------------
/GameProject/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 |
--------------------------------------------------------------------------------
/GameProject/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 | }
--------------------------------------------------------------------------------
/GameProject/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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # javaCampGameProject
--------------------------------------------------------------------------------