KPSService 1.0.1

dotnet add package KPSService --version 1.0.1                
NuGet\Install-Package KPSService -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KPSService" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KPSService --version 1.0.1                
#r "nuget: KPSService, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install KPSService as a Cake Addin
#addin nuget:?package=KPSService&version=1.0.1

// Install KPSService as a Cake Tool
#tool nuget:?package=KPSService&version=1.0.1                

KPS-service

Kimlik Paylaşım Sistemi .Net Framework 4.8

KPS SOAP Sistemi Kütüphanesi

Bu kütüphane, KPS SOAP sistemine .Net Framework 4.8 ile erişim sağlamak için tasarlanmıştır. Kütüphaneyi NuGet üzerinde yayınlamayı planlıyorsanız, bu README dosyası size başlangıç için yardımcı olacaktır.

Teknik Bilgiler

KPS sisteminin teknik alt yapısı hakkında detaylı bilgi için bu linki ziyaret edebilirsiniz.

Kurulum

Kütüphaneyi NuGet üzerinden projenize eklemek için şu komutu kullanabilirsiniz:

dotnet add package KPSService

Gereksinim

dotnet add package Microsoft.IdentityModel --version 7.0.0

App.config dosyasına eklenecekler

<configuration>
.
.
.
<system.serviceModel>
		<bindings>
			<customBinding>
				<binding name="CustomBinding_BilesikKutukSorgulaKimlikNoServis">
					<security defaultAlgorithmSuite="Default" authenticationMode="IssuedTokenOverTransport"
                        requireDerivedKeys="false" includeTimestamp="true" messageSecurityVersion="WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10">
						<issuedTokenParameters>
							<additionalRequestParameters>
								<trust:SecondaryParameters xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">
									<trust:KeyType xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://docs.oasis-open.org/ws-sx/ws-trust/200512/SymmetricKey</trust:KeyType>
								</trust:SecondaryParameters>
							</additionalRequestParameters>
							<issuer address="https://kimlikdogrulama.nvi.gov.tr/Services/Issuer.svc/IWSTrust13"
                                binding="ws2007HttpBinding" bindingConfiguration="https://kimlikdogrulama.nvi.gov.tr/Services/Issuer.svc/IWSTrust13" />
							<issuerMetadata address="https://kimlikdogrulama.nvi.gov.tr/Services/Issuer.svc/mex" />
						</issuedTokenParameters>
						
						<localClientSettings detectReplays="false" />
						<localServiceSettings detectReplays="false" />
					</security>
					<textMessageEncoding />
					<httpsTransport />
				</binding>
			</customBinding>
			<ws2007HttpBinding>
				<binding name="IssuedTokenBinding">
					<readerQuotas maxArrayLength="2147483647" />
					<security mode="TransportWithMessageCredential">
						<message clientCredentialType="Windows" establishSecurityContext="false" />
					</security>
				</binding>
				<binding name="WS2007HttpBinding_IWSTrust13Sync" closeTimeout="00:01:00"
                    openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                    bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
                    maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                    messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
                    allowCookies="false">
					<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="2147483647"
                        maxBytesPerRead="4096" maxNameTableCharCount="16384" />
					<reliableSession ordered="true" inactivityTimeout="00:10:00"
                        enabled="false" />
					<security mode="TransportWithMessageCredential">
						<transport clientCredentialType="None" proxyCredentialType="None"
                            realm="" />
						<message clientCredentialType="None" negotiateServiceCredential="true"
                            algorithmSuite="Default" establishSecurityContext="false" />
					</security>
				</binding>
				<binding name="stsIssuerServiceBinding">
					<security mode="TransportWithMessageCredential">
						<transport clientCredentialType="None" />
						<message clientCredentialType="UserName" establishSecurityContext="false" />
					</security>
				</binding>
				<binding name="https://kimlikdogrulama.nvi.gov.tr/Services/Issuer.svc/IWSTrust13">
					<security mode="TransportWithMessageCredential">
						<transport clientCredentialType="None" />
						<message establishSecurityContext="false" />
					</security>
				</binding>
			</ws2007HttpBinding>
		</bindings>
		<client>
			<endpoint address="https://kimlikdogrulama.nvi.gov.tr/Services/Issuer.svc/IWSTrust13"
                binding="ws2007HttpBinding" bindingConfiguration="stsIssuerServiceBinding"
                contract="Microsoft.IdentityModel.Protocols.WSTrust.IWSTrustChannelContract"
                name="STSIssuerService" />
			<endpoint address="https://kpsv2.nvi.gov.tr/Services/RoutingService.svc"
                binding="customBinding" bindingConfiguration="CustomBinding_BilesikKutukSorgulaKimlikNoServis"
                contract="BilesikKutukSorgula.BilesikKutukSorgulaKimlikNoServis"
                name="CustomBinding_BilesikKutukSorgulaKimlikNoServis" />
		</client>
	</system.serviceModel>
	.
	.
	.
	</configuration>

Kullanımı

BilesikKutuk bilesikKutuk = new BilesikKutuk(17497644136, 1996, 12, 10);
bilesikKutuk.setConf(KPSConfiguration.Instance
    .setUsername("KRM-123456")
    .setPassword("123456"));
Console.WriteLine(bilesikKutuk.getSonuc().SorguSonucu[0].KimlikNo);
Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 213 8/16/2023
1.0.0 164 8/15/2023

Readme düzenlendi. Conf eklendi