├── GameProject
├── .classpath
├── .gitignore
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ └── org.eclipse.jdt.core.prefs
└── src
│ ├── Abstarct
│ ├── CampaignService.java
│ ├── DiscountService.java
│ ├── GameService.java
│ ├── SaleService.java
│ ├── UserCheckService.java
│ └── UserService.java
│ ├── Adapters
│ ├── LoginCheckAdapter.java
│ └── MernisCheckAdapter.java
│ ├── Concrete
│ ├── CampaignManager.java
│ ├── DiscountManager.java
│ ├── GameManager.java
│ ├── SaleManager.java
│ └── UserManager.java
│ ├── Entities
│ ├── Campaign.java
│ ├── Discount.java
│ ├── Game.java
│ └── User.java
│ ├── main
│ └── Main.java
│ └── mernisCheck
│ ├── 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/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/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/Concrete/SaleManager.java=UTF-8
3 | encoding//src/mernisCheck/KPSPublic.java=UTF-8
4 | encoding//src/mernisCheck/KPSPublicLocator.java=UTF-8
5 | encoding//src/mernisCheck/KPSPublicSoap.java=UTF-8
6 | encoding//src/mernisCheck/KPSPublicSoapStub.java=UTF-8
7 |
--------------------------------------------------------------------------------
/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.methodParameters=do not generate
4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
6 | org.eclipse.jdt.core.compiler.compliance=1.8
7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate
8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate
9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate
10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
11 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
12 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
13 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
14 | org.eclipse.jdt.core.compiler.release=enabled
15 | org.eclipse.jdt.core.compiler.source=1.8
16 |
--------------------------------------------------------------------------------
/GameProject/src/Abstarct/CampaignService.java:
--------------------------------------------------------------------------------
1 | package Abstarct;
2 |
3 | import Entities.Campaign;
4 |
5 | public interface CampaignService {
6 | public void campaignAdd(Campaign campaign);
7 | public void campaignDelete(Campaign campaign);
8 | public void campaignUpdate(Campaign campaign);
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/GameProject/src/Abstarct/DiscountService.java:
--------------------------------------------------------------------------------
1 | package Abstarct;
2 |
3 | public interface DiscountService {
4 | public double discountPriceCalculation(double gamePrice, int campignDiscount);
5 |
6 | }
7 |
--------------------------------------------------------------------------------
/GameProject/src/Abstarct/GameService.java:
--------------------------------------------------------------------------------
1 | package Abstarct;
2 | import Entities.Game;
3 |
4 | public interface GameService {
5 | public void add(Game game);
6 | public void delete(Game game);
7 | public void update(Game game);
8 |
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/GameProject/src/Abstarct/SaleService.java:
--------------------------------------------------------------------------------
1 | package Abstarct;
2 |
3 | import Entities.Campaign;
4 | import Entities.Game;
5 | import Entities.User;
6 |
7 | public interface SaleService {
8 | public void printingLastPrice(Game game, Campaign campaign, User user);
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/GameProject/src/Abstarct/UserCheckService.java:
--------------------------------------------------------------------------------
1 | package Abstarct;
2 | import Entities.User;
3 |
4 | public interface UserCheckService {
5 | public boolean loginControl(User user);
6 | }
7 |
--------------------------------------------------------------------------------
/GameProject/src/Abstarct/UserService.java:
--------------------------------------------------------------------------------
1 | package Abstarct;
2 | import Entities.User;
3 |
4 | public interface UserService {
5 | public void userAdd(User user);
6 |
7 | public void userDelete(User user);
8 |
9 | public void userUpdate(User user);
10 | }
11 |
--------------------------------------------------------------------------------
/GameProject/src/Adapters/LoginCheckAdapter.java:
--------------------------------------------------------------------------------
1 | package Adapters;
2 |
3 | import Abstarct.UserCheckService;
4 | import Entities.User;
5 |
6 | public class LoginCheckAdapter implements UserCheckService{
7 |
8 | @Override
9 | public boolean loginControl(User user) {
10 | boolean result=false;
11 | if(user.getNationalityId().length()!=11) {
12 | result=false;
13 | }
14 | else {
15 | result=true;
16 | }
17 | return result;
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/GameProject/src/Adapters/MernisCheckAdapter.java:
--------------------------------------------------------------------------------
1 | package Adapters;
2 | import java.rmi.RemoteException;
3 |
4 | import Abstarct.UserCheckService;
5 | import Entities.User;
6 | import mernisCheck.KPSPublicSoapProxy;
7 |
8 | public class MernisCheckAdapter implements UserCheckService{
9 |
10 | @Override
11 | public boolean loginControl(User user) {
12 | KPSPublicSoapProxy client=new KPSPublicSoapProxy();
13 | boolean result=false;
14 | try {
15 | result=client.TCKimlikNoDogrula(
16 | Long.valueOf(user.getNationalityId()),
17 | user.getFirstName(),
18 | user.getLastName(),
19 | user.getDateOfBirth().getYear());
20 | } catch (NumberFormatException e) {
21 | e.printStackTrace();
22 | } catch (RemoteException e) {
23 | e.printStackTrace();
24 | }
25 | return result;
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/GameProject/src/Concrete/CampaignManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Zeynebb/GameStoreProject/d9522f6bedf8ceeecd43a2dd0ef00ded7326b250/GameProject/src/Concrete/CampaignManager.java
--------------------------------------------------------------------------------
/GameProject/src/Concrete/DiscountManager.java:
--------------------------------------------------------------------------------
1 | package Concrete;
2 |
3 | import Abstarct.DiscountService;
4 |
5 | public class DiscountManager implements DiscountService{
6 |
7 | @Override
8 | public double discountPriceCalculation(double gamePrice, int campaignDiscount) {
9 | double result=(gamePrice*campaignDiscount)/100;
10 | return result;
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/GameProject/src/Concrete/GameManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Zeynebb/GameStoreProject/d9522f6bedf8ceeecd43a2dd0ef00ded7326b250/GameProject/src/Concrete/GameManager.java
--------------------------------------------------------------------------------
/GameProject/src/Concrete/SaleManager.java:
--------------------------------------------------------------------------------
1 | package Concrete;
2 |
3 | import Abstarct.SaleService;
4 | import Entities.User;
5 | import Entities.Campaign;
6 | import Entities.Game;
7 |
8 | public class SaleManager implements SaleService {
9 | DiscountManager discountManager;
10 |
11 | public SaleManager(DiscountManager discountManager) {
12 | this.discountManager = discountManager;
13 | }
14 |
15 | @Override
16 | public void printingLastPrice(Game game, Campaign campaign, User user) {
17 | double result=discountManager.discountPriceCalculation(game.getGamePice(), campaign.getDiscount());
18 | System.out.println("+> "+user.getFirstName()+" "+user.getLastName()+ " '"
19 | + game.getGameName() + "' oyununu '"
20 | + campaign.getCampaignName()+"' kampanyası ile "
21 | + game.getGamePice() + " TL yerine "
22 | + result +" TL'ye satin aldı.");
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/GameProject/src/Concrete/UserManager.java:
--------------------------------------------------------------------------------
1 | package Concrete;
2 | import Abstarct.UserCheckService;
3 | import Abstarct.UserService;
4 | import Entities.User;
5 |
6 | public class UserManager implements UserService{
7 |
8 | private UserCheckService userCheckService;
9 |
10 | public UserManager(UserCheckService userCheckService) {
11 | this.userCheckService = userCheckService;
12 | }
13 |
14 | @Override
15 | public void userAdd(User user) {
16 | if(userCheckService.loginControl(user)) {
17 | System.out.println("-> "+user.getFirstName()+" "+user.getLastName()+" isimli kullanici eklendi.");
18 | }
19 | else {
20 | System.out.println("-> "+user.getFirstName()+" "
21 | +user.getLastName()+" isimli kullanicinin bilgileri gecerli degil. Kullanici eklenemedi!");
22 | }
23 | }
24 |
25 | @Override
26 | public void userDelete(User user) {
27 | System.out.println("-> "+user.getFirstName()+" "+user.getLastName()+" isimli kullanici silindi.");
28 | }
29 |
30 | @Override
31 | public void userUpdate(User user) {
32 |
33 | System.out.println("-> "+user.getFirstName()+" "+user.getLastName()+" isimli kullanicinin bilgileri guncellendi.");
34 |
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/GameProject/src/Entities/Campaign.java:
--------------------------------------------------------------------------------
1 | package Entities;
2 |
3 | public class Campaign {
4 | private int Id;
5 | private String campaignName;
6 | private int discount;
7 |
8 | public Campaign(int id, String campaignName, int discount) {
9 | Id = id;
10 | this.campaignName = campaignName;
11 | this.discount = discount;
12 | }
13 |
14 | public int getId() {
15 | return Id;
16 | }
17 | public String getCampaignName() {
18 | return campaignName;
19 | }
20 | public void setCampaignName(String campaignName) {
21 | this.campaignName = campaignName;
22 | }
23 | public int getDiscount() {
24 | return discount;
25 | }
26 | public void setDiscount(int discount) {
27 | this.discount = discount;
28 | }
29 |
30 |
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/GameProject/src/Entities/Discount.java:
--------------------------------------------------------------------------------
1 | package Entities;
2 |
3 | public class Discount {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/GameProject/src/Entities/Game.java:
--------------------------------------------------------------------------------
1 | package Entities;
2 |
3 | public class Game {
4 | private int Id;
5 | private String gameName;
6 | private double gamePice;
7 |
8 | public Game(int id, String gameName, double gamePice) {
9 | Id = id;
10 | this.gameName = gameName;
11 | this.gamePice = gamePice;
12 | }
13 | public int getId() {
14 | return Id;
15 | }
16 | public String getGameName() {
17 | return gameName;
18 | }
19 | public double getGamePice() {
20 | return gamePice;
21 | }
22 |
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/GameProject/src/Entities/User.java:
--------------------------------------------------------------------------------
1 | package Entities;
2 | import java.util.Date;
3 |
4 | public class User {
5 | private int Id;
6 | private String firstName;
7 | private String lastName;
8 | private String nationalityId;
9 | private Date dateOfBirth;
10 |
11 | public User(int id, String firstName, String lastName, String nationalityId, Date dateOfBirth) {
12 | Id = id;
13 | this.firstName = firstName;
14 | this.lastName = lastName;
15 | this.nationalityId = nationalityId;
16 | this.dateOfBirth = dateOfBirth;
17 | }
18 | public int getId() {
19 | return Id;
20 | }
21 | public void setId(int id) {
22 | Id = id;
23 | }
24 | public String getFirstName() {
25 | return firstName;
26 | }
27 | public void setFirstName(String firstName) {
28 | this.firstName = firstName;
29 | }
30 | public String getLastName() {
31 | return lastName;
32 | }
33 | public void setLastName(String lastName) {
34 | this.lastName = lastName;
35 | }
36 | public String getNationalityId() {
37 | return nationalityId;
38 | }
39 | public void setNationalityId(String nationalityId) {
40 | this.nationalityId = nationalityId;
41 | }
42 | public Date getDateOfBirth() {
43 | return dateOfBirth;
44 | }
45 | public void setDateOfBirth(Date dateOfBirth) {
46 | this.dateOfBirth = dateOfBirth;
47 | }
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/GameProject/src/main/Main.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Zeynebb/GameStoreProject/d9522f6bedf8ceeecd43a2dd0ef00ded7326b250/GameProject/src/main/Main.java
--------------------------------------------------------------------------------
/GameProject/src/mernisCheck/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 mernisCheck;
9 |
10 | public interface KPSPublic extends javax.xml.rpc.Service {
11 | public java.lang.String getKPSPublicSoapAddress();
12 |
13 | public mernisCheck.KPSPublicSoap getKPSPublicSoap() throws javax.xml.rpc.ServiceException;
14 |
15 | public mernisCheck.KPSPublicSoap getKPSPublicSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
16 | }
17 |
--------------------------------------------------------------------------------
/GameProject/src/mernisCheck/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 mernisCheck;
9 |
10 | public class KPSPublicLocator extends org.apache.axis.client.Service implements mernisCheck.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 mernisCheck.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 mernisCheck.KPSPublicSoap getKPSPublicSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
54 | try {
55 | mernisCheck.KPSPublicSoapStub _stub = new mernisCheck.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 (mernisCheck.KPSPublicSoap.class.isAssignableFrom(serviceEndpointInterface)) {
76 | mernisCheck.KPSPublicSoapStub _stub = new mernisCheck.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/mernisCheck/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 mernisCheck;
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/mernisCheck/KPSPublicSoapProxy.java:
--------------------------------------------------------------------------------
1 | package mernisCheck;
2 |
3 | public class KPSPublicSoapProxy implements mernisCheck.KPSPublicSoap {
4 | private String _endpoint = null;
5 | private mernisCheck.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 mernisCheck.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 mernisCheck.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/mernisCheck/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 mernisCheck;
9 |
10 | public class KPSPublicSoapStub extends org.apache.axis.client.Stub implements mernisCheck.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 | # Game Store Project
2 |
3 | Gereksinimler
4 | 1. Oyuncuların sisteme kayıt olabileceği, bilgilerini güncelleyebileceği, kayıtlarını silebileceği bir ortamı simule ediniz.
5 | Müşteri bilgilerinin doğruluğunu e-devlet sistemlerini kullanarak doğrulama yapmak istiyoruz.
6 | (E-devlet sistemlerinde doğrulama TcNo, Ad, Soyad, DoğumYılı bilgileriyle yapılır. Bunu yapacak servisi simule etmeniz yeterlidir.) (Loglama gibi)
7 |
8 | 2. Oyun satışı yapılabilecek satış ortamını simule ediniz.( Yapılan satışlar oyuncu ile ilişkilendirilmelidir.
9 | Oyuncunun parametre olarak metotta olmasını kastediyorum.)
10 |
11 | 3. Sisteme yeni kampanya girişi, kampanyanın silinmesi ve güncellenmesi imkanlarını simule ediniz.
12 |
13 | 4. Satışlarda kampanya entegrasyonunu simule ediniz.
14 |
15 | 
16 |
17 |
18 |
--------------------------------------------------------------------------------