Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Brayan Sarmiento
API-Gateway-CHEC
Commits
a771a265
Commit
a771a265
authored
Jun 18, 2024
by
Brayan Sarmiento
Browse files
Obtener Xml Formateado
parent
b7dc25ca
Changes
2
Show whitespace changes
Inline
Side-by-side
gatewayGK/POSBC/ClientePOSBC.cs
View file @
a771a265
using
System.Net
;
using
System.Net.Sockets
;
using
System.Text
;
using
System.Xml.Linq
;
using
EvaPosSCOSrv
;
using
Serilog
;
using
static
System
.
Runtime
.
InteropServices
.
JavaScript
.
JSType
;
namespace
gatewaySCO.POSBC
;
...
...
@@ -106,6 +108,7 @@ public class ClienteServidorPOSBC(string ip, int pto)
bufferEntrada
=
ms
.
ToArray
();
}
_contadorMensajesRecibidos
++;
string
result
=
Encoding
.
UTF8
.
GetString
(
bufferEntrada
);
Log
.
Debug
(
"Respuesta #{contador} de POSBC {ip} - {msj}"
,
_contadorMensajesRecibidos
,
_ip
,
bufferEntrada
.
ToString
);
return
bufferEntrada
;
...
...
gatewayGK/appsettings.json
View file @
a771a265
...
...
@@ -4,14 +4,14 @@
"POS_comment"
:
"Indicates the set of commands to instantiate, according to the type of POS: evapos, tests, gk, etc."
,
"IpGateway"
:
"127.0.0.1"
,
"IpGateway_comment"
:
"Gateway IP, local or remote"
,
"PortGateway"
:
669
7
,
"PortGateway"
:
669
0
,
"PortGateway_comment"
:
"Gateway IP Port"
,
"Language"
:
"es"
,
"Language_comment"
:
"Language code as needed by the POS application"
},
"POSBC"
:
{
"IpPOSBC"
:
"127.0.0.1"
,
"PortPOSBC"
:
669
8
"PortPOSBC"
:
669
7
},
"DataGK"
:
{
"IpGkSmartPOS"
:
"10.10.117.10"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment