Compare commits
8 Commits
refactor/c
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc78d4e26f | ||
|
|
3f03f0154a | ||
|
|
3834aa87fe | ||
|
|
7eba0b20ca | ||
|
|
3504f9cfb9 | ||
|
|
82baca1bfd | ||
|
|
564ea80ef7 | ||
|
|
b42a9bb284 |
@ -1,7 +1,9 @@
|
|||||||
{
|
{
|
||||||
|
"providerId": "Microsoft.Tools.ServiceModel.Svcutil",
|
||||||
|
"version": "2.1.0",
|
||||||
"ExtendedData": {
|
"ExtendedData": {
|
||||||
"inputs": [
|
"inputs": [
|
||||||
"http://evolucia.elt-poisk.com/soap.php?wsdl"
|
"https://evolucia.elt-poisk.com/soap.php?wsdl"
|
||||||
],
|
],
|
||||||
"collectionTypes": [
|
"collectionTypes": [
|
||||||
"System.Array",
|
"System.Array",
|
||||||
@ -10,6 +12,7 @@
|
|||||||
"namespaceMappings": [
|
"namespaceMappings": [
|
||||||
"*, ELTKasko"
|
"*, ELTKasko"
|
||||||
],
|
],
|
||||||
|
"outputFile": "Reference",
|
||||||
"sync": true,
|
"sync": true,
|
||||||
"targetFramework": "netcoreapp3.1",
|
"targetFramework": "netcoreapp3.1",
|
||||||
"typeReuseMode": "All"
|
"typeReuseMode": "All"
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -3,7 +3,7 @@
|
|||||||
"Version": "15.0.40203.910",
|
"Version": "15.0.40203.910",
|
||||||
"ExtendedData": {
|
"ExtendedData": {
|
||||||
"inputs": [
|
"inputs": [
|
||||||
"http://evolucia.elt-poisk.com/soaposago.php?wsdl"
|
"https://evolucia.elt-poisk.com/soaposago.php?wsdl"
|
||||||
],
|
],
|
||||||
"collectionTypes": [
|
"collectionTypes": [
|
||||||
"System.Array",
|
"System.Array",
|
||||||
|
|||||||
@ -6792,6 +6792,7 @@ namespace ELTOsago
|
|||||||
result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
|
result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
|
||||||
result.MaxReceivedMessageSize = int.MaxValue;
|
result.MaxReceivedMessageSize = int.MaxValue;
|
||||||
result.AllowCookies = true;
|
result.AllowCookies = true;
|
||||||
|
result.Security.Mode = System.ServiceModel.BasicHttpSecurityMode.Transport;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
|
throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
|
||||||
@ -6801,7 +6802,7 @@ namespace ELTOsago
|
|||||||
{
|
{
|
||||||
if ((endpointConfiguration == EndpointConfiguration.EltSoap))
|
if ((endpointConfiguration == EndpointConfiguration.EltSoap))
|
||||||
{
|
{
|
||||||
return new System.ServiceModel.EndpointAddress("http://evolucia.elt-poisk.com/soaposago.php");
|
return new System.ServiceModel.EndpointAddress("https://evolucia.elt-poisk.com/soaposago.php");
|
||||||
}
|
}
|
||||||
throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
|
throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
|
||||||
}
|
}
|
||||||
|
|||||||
6
ELT.Client/Models/Common/Response.cs
Normal file
6
ELT.Client/Models/Common/Response.cs
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
namespace ELT.Client.Models.Common;
|
||||||
|
|
||||||
|
public class ErrorResponse
|
||||||
|
{
|
||||||
|
public string Error { get; set; }
|
||||||
|
}
|
||||||
@ -3,6 +3,7 @@ using ELT.Client.Models.Common;
|
|||||||
using ELTKasko;
|
using ELTKasko;
|
||||||
using ELTOsago;
|
using ELTOsago;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using AuthInfo = ELTOsago.AuthInfo;
|
||||||
using EltKaskoSoap = ELTKasko.EltSoap;
|
using EltKaskoSoap = ELTKasko.EltSoap;
|
||||||
using ELTOsagoSoap = ELTOsago.EltSoap;
|
using ELTOsagoSoap = ELTOsago.EltSoap;
|
||||||
|
|
||||||
@ -36,6 +37,8 @@ public class CommonController : ControllerBase
|
|||||||
|
|
||||||
[HttpPost("get-kasko-calculation")]
|
[HttpPost("get-kasko-calculation")]
|
||||||
public ActionResult<KASKOCalculationResult> GetKaskoCalculation([FromBody] GetKaskoCalculationInput data)
|
public ActionResult<KASKOCalculationResult> GetKaskoCalculation([FromBody] GetKaskoCalculationInput data)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
var preRequestData = this.GetPreRequestData(data.Preparams);
|
var preRequestData = this.GetPreRequestData(data.Preparams);
|
||||||
|
|
||||||
@ -79,9 +82,16 @@ public class CommonController : ControllerBase
|
|||||||
|
|
||||||
return Ok(res);
|
return Ok(res);
|
||||||
}
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
return StatusCode(500, new ErrorResponse { Error = e.Message });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[HttpPost("get-osago-calculation")]
|
[HttpPost("get-osago-calculation")]
|
||||||
public ActionResult<OSAGOFullCalculationResponse> GetOsagoCalculation([FromBody] GetOsagoCalculationInput data)
|
public ActionResult<OSAGOFullCalculationResponse> GetOsagoCalculation([FromBody] GetOsagoCalculationInput data)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
var prerequestData = this.GetPreRequestData(data.Preparams);
|
var prerequestData = this.GetPreRequestData(data.Preparams);
|
||||||
|
|
||||||
@ -90,7 +100,7 @@ public class CommonController : ControllerBase
|
|||||||
request.CarInfo.Mark = prerequestData.Brand;
|
request.CarInfo.Mark = prerequestData.Brand;
|
||||||
request.CarInfo.Model = prerequestData.Model;
|
request.CarInfo.Model = prerequestData.Model;
|
||||||
|
|
||||||
request.AuthInfo = new ELTOsago.AuthInfo
|
request.AuthInfo = new AuthInfo
|
||||||
{
|
{
|
||||||
Login = _login,
|
Login = _login,
|
||||||
Password = _password
|
Password = _password
|
||||||
@ -107,4 +117,9 @@ public class CommonController : ControllerBase
|
|||||||
|
|
||||||
return Ok(res);
|
return Ok(res);
|
||||||
}
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
return StatusCode(500, new ErrorResponse { Error = e.Message });
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
17
docker-compose.yml
Normal file
17
docker-compose.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
version: '3.3'
|
||||||
|
services:
|
||||||
|
elt:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
environment:
|
||||||
|
- eltLogin=${ELT_LOGIN}
|
||||||
|
- eltPassword=${ELT_PASSWORD}
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- calc_network
|
||||||
|
|
||||||
|
networks:
|
||||||
|
calc_network:
|
||||||
|
external:
|
||||||
|
name: calc_network
|
||||||
Loading…
x
Reference in New Issue
Block a user