- Сгенерировать SoapRequest из этого входного объекта C#
- Десериализовать Big SoapResponse в объект C#
Но в реальном времени мне приходится динамически генерировать этот SOAPRequest, используя C#Object и десериализовать полученный SOAPResponse в C. #Object.
Введите объект клиента:
public class CustomerRequest
{
public int CustomerID { get; set; }
public string CustomerName { get; set; }
public string CustomerNum { get; set; }
}
Ввод SOAPRequest:
1
100001
ShellGroup
S0001
1
1
1
1
Выходной объект C#:
public class CustomerResponse
{
public int CustomerID { get; set; }
public string WID { get; set; }
public string CustomerCategory { get; set; }
public string PaymentType { get; set; }
public decimal YTDSalesAmt { get; set; }
public decimal TotalBalance { get; set; }
}
Выходной ответ SOAP:
c367dfff098d100072372cd7d2b10000
DRS_Test_Customer
100001
1
1
1
1
1
1
1
1
c367dfff098d100072372cd7d2b10000
DRS_Test_Customer
100001
100001
DRS_Test_Customer
DRS Test Customer
0
e11734df23421001a426d11a2f260002
Client_Segment_D
3b963336fb681000c889f5fcdaf80000
DNU_Customers_A_L
3b963336fb681000c88a3e5862220000
Net_30
56d98a332dee100041e05d81e40b0000
Check_Cheque
0
0
0
0
0
0
312c8e6461c34811826feda832015897
USA-EIN
0
0
DRS Test Customer
bc33aa3152ec42d4995f4791a106ed09
US
USA
840
2024-02-25T07:02:00.485-08:00
555 Peachtree Road
Atlanta
dec8eabbb13d45bdb159b8e25d896110
USA-GA
GA
US-GA
Georgia
Fulton
30339
4fae289a7fe541b098ca9448e462ff6b
BUSINESS
7a232f5736a840a393b8ab43df7becd5
BILLING
b58a4a54e04c4e1f8fc32bfc3b1a77cf
SHIPPING
8f470e4f6ffd49638c80ea6b5443bddb
REMIT
46355d2592d2100042e1d503f5ba0000
Billing
46355d2592d2100042e1d469275f0000
Remit_To
46355d2592d2100042e1d1db6e730000
Shipping
0
c367dfff098d100072c565a357830000
ADDRESS_REFERENCE-6-1903
ADDRESS_REFERENCE-6-1903
Подробнее здесь: https://stackoverflow.com/questions/791 ... -soap-resp
Мобильная версия