Вызов приложения Console_getLNDataV2_Test.exe для получения данных ЭЛН

//-- Параметры вызова

//-- 1-й - журнал приложения - D:\temp\FSS\files\Log.txt
//-- 2-й - первичный файл, должен быть сформирован до вызова приложения - D:\temp\FSS\files\V2_test_900000468164_f1.xml
//-- 3-й - конечный файл - D:\temp\FSS\files\V2_test_900000468164_f5.xml
//-- 4-й - рег. номер предприятия в ФСС - 7812043050
//-- 5-й - номер ЭЛН - 900000468164
//-- 6-й - СНИЛС - 88293188566
//-- 7-й - серийный номер сертификата страхователя - 025EB2BC0053AC0EAB4A010FA0DFAE0694
//-- 8-й - серийный номер сертификата ФСС - 01D690086009A0300000028B03E80002

//-- вызов из программы

//-- cPath - каталог консольного приложения
//-- cParams - строка параметров

string cPath = "D:\\temp\\FSS\\Console";
string cParams = "D:\\temp\\FSS\\files\\Log.txt D:\\temp\\FSS\\files\\V2_test_900000468164_f1.xml D:\\temp\\FSS\\files\\V2_test_900000468164_f5.xml 7812043050 900000468164 88293188566 025EB2BC0053AC0EAB4A010FA0DFAE0694 01D690086009A0300000028B03E80002";
string filename = Path.Combine(cPath, "Console_getLNDataV2_Test.exe");
var proc = System.Diagnostics.Process.Start(filename, cParams);


//-- вызов из командной строки

cd D:\temp\FSS\Console
Console_getLNDataV2_Test.exe D:\temp\FSS\files\Log.txt D:\temp\FSS\files\V2_test_900000468164_f1.xml
D:\temp\FSS\files\V2_test_900000468164_f5.xml 7812043050 900000468164 88293188566 025EB2BC0053AC0EAB4A010FA0DFAE0694
01D690086009A0300000028B03E80002



Первичный файл - V2_test_900000468164_f1.xml:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" wsu:Id="REGNO_7812043050" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <getPrivateLNDataRequest xmlns="http://www.fss.ru/integration/types/eln/ins/v01"> <regNum>7812043050</regNum> <lnCode>900000468164</lnCode> <snils>88293188566</snils> </getPrivateLNDataRequest> </soapenv:Body> </soapenv:Envelope>

Конечный файл - V2_test_900000468164_f5.xml:

<soap:Envelope xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <soap:Header> <wsse:Security soap:actor="http://eln.fss.ru/actor/fss/ca/1027739443236"> <wsse:BinarySecurityToken wsu:Id="http://eln.fss.ru/actor/fss/ca/1027739443236" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">MIIIyTCCCHSgAwIBAgIQAdaQCGAJoDAAAAKLA+gAAjAMBggqhQMHAQEDAgUAMIIB2DEYMBYGBSqF A2QBEg0xMDI3NzM5NDQzMjM2MT0wOwYDVQQJDDTQntGA0LvQuNC60L7QsiDQv9C10YDQtdGD0LvQ vtC6LCDQtC4gMywg0LrQvtGA0L8uINCQMRowGAYIKoUDA4EDAQESDDAwNzczNjA1NjY0NzELMAkG A1UEBhMCUlUxGTAXBgNVBAcMENCzLiDQnNC+0YHQutCy0LAxGDAWBgNVBAgMDzc3INCc0L7RgdC6 0LLQsDEdMBsGCSqGSIb3DQEJARYOaW5mby11Y0Bmc3MucnUxZzBlBgNVBAoMXtCk0L7QvdC0INGB 0L7RhtC40LDQu9GM0L3QvtCz0L4g0YHRgtGA0LDRhdC+0LLQsNC90LjRjyDQoNC+0YHRgdC40LnR gdC60L7QuSDQpNC10LTQtdGA0LDRhtC40LgxLjAsBgNVBAsMJdC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DRgdC60LDRjywg0LTQvtC8IDcxLDAqBgNVBAoMI9Cc 0LjQvdC60L7QvNGB0LLRj9C30Ywg0KDQvtGB0YHQuNC4MRgwFgYFKoUDZAESDTEwNDc3MDIwMjY3 MDExGjAYBggqhQMDgQMBARIMMDA3NzEwNDc0Mzc1MSwwKgYDVQQDDCPQnNC40L3QutC+0LzRgdCy 0Y/Qt9GMINCg0L7RgdGB0LjQuIILAKhAVEAAAAAAA58wHQYDVR0OBBYEFBGLbUHNNZEst5g5AfDd 9w6rG2H5MAwGCCqFAwcBAQMCBQADQQDVak5Yshj5IiR0tMqBmPfvVF3SMB/sw6k8qnRwubcePmPF X+VU7vbTLYeSDT82mUC4kXios9LQDpThFlpQrbIn</wsse:BinarySecurityToken> <Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> <SignedInfo> <CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments" /> <SignatureMethod Algorithm="urn:ietf:params:xml:ns:cpxmlsec:algorithms:gostr34102012-gostr34112012-256" /> <Reference URI="#OGRN_1027739443236"> <Transforms> <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments" /> </Transforms> <DigestMethod Algorithm="urn:ietf:params:xml:ns:cpxmlsec:algorithms:gostr34112012-256" /> <DigestValue>34Kyy5f/H8Ms3sn1Du9/4/C0paXimgpTwetZVdg1pBs=</DigestValue> </Reference> </SignedInfo> <SignatureValue>1kxUYIPZDcSOtbdmTWOUNVFWRQgUp1WZiEWd/U6wJQ8ZjXimyErz7Rp8i+iSjb3FuKKmoQnoTYCD Vyi7opMLXA==</SignatureValue> <KeyInfo> <wsse:SecurityTokenReference> <wsse:Reference ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" URI="#http://eln.fss.ru/actor/fss/ca/1027739443236" /> </wsse:SecurityTokenReference> </KeyInfo> </Signature> </wsse:Security> <X509Certificate xmlns="http://www.w3.org/2000/09/xmldsig#">MIIIyT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TIg0L7RgiAy OS4wMS4yMDE0INCz0L7QtNCwDGTQodC10YDRgtC40YTQuNC60LDRgiDRgdC+0L7RgtCy0LXRgtGB 0YLQstC40Y8g4oSWINCh0KQvMTI4LTI5MzIg0L7RgiAxMCDQsNCy0LPRg9GB0YLQsCAyMDE2INCz 0L7QtNCwMAwGA1UdEwEB/wQCMAAwNQYDVR0fBC4wLDAqoCigJoYkaHR0cDovL2Zzcy5ydS91Yy9H VUNfRlNTX1JGXzIwMjAuY3JsMIIBYAYDVR0jBIIBVzCCAVOAFD2o7bwXrstz2cPo0cin9ryscFZm oYIBLKSCASgwggEkMR4wHAYJKoZIhvcNAQkBFg9kaXRAbWluc3Z5YXoucnUxCzAJBgNVBAYTAlJV MRgwFgYDVQQIDA83NyDQnNC+0YHQutCy0LAxGTAXBgNVBAcMENCzLiDQnNC+0YHQutCy0LAxLjAs BgNVBAkMJdGD0LvQuNGG0LAg0KLQstC10YDRgdC60LDRjywg0LTQvtC8IDcxLDAqBgNVBAoMI9Cc 0LjQvdC60L7QvNGB0LLRj9C30Ywg0KDQvtGB0YHQuNC4MRgwFgYFKoUDZAESDTEwNDc3MDIwMjY3 MDExGjAYBggqhQMDgQMBARIMMDA3NzEwNDc0Mzc1MSwwKgYDVQQDDCPQnNC40L3QutC+0LzRgdCy 0Y/Qt9GMINCg0L7RgdGB0LjQuIILAKhAVEAAAAAAA58wHQYDVR0OBBYEFBGLbUHNNZEst5g5AfDd 9w6rG2H5MAwGCCqFAwcBAQMCBQADQQDVak5Yshj5IiR0tMqBmPfvVF3SMB/sw6k8qnRwubcePmPF X+VU7vbTLYeSDT82mUC4kXios9LQDpThFlpQrbIn</X509Certificate> </soap:Header> <soap:Body wsu:Id="OGRN_1027739443236"> <getPrivateLNDataResponse xmlns="http://www.fss.ru/integration/types/eln/ins/v01" xmlns:ns6="http://www.fss.ru/integration/types/common/v01" xmlns:ns5="http://www.fss.ru/integration/types/fault/v01" xmlns:ns4="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns3="http://www.fss.ru/integration/types/eln/mse/v01" xmlns:ns2="http://www.fss.ru/integration/types/eln/v01"> <fileOperationsLnUserGetPrivateLNDataOut> <ns2:requestId>GETLNINS_7812043050_2021_03_17_00004</ns2:requestId> <ns2:status>1</ns2:status> <data> <outRowset> <responseRow> <snils>88293188566</snils> <surname>Вражеский</surname> <name>Катаклизм</name> <patronymic>Диогенович</patronymic> <lnCode>900000468164</lnCode> <prevLnCode>900000468731</prevLnCode> <primaryFlag>false</primaryFlag> <duplicateFlag>false</duplicateFlag> <lnDate>2020-06-15</lnDate> <lpuName>ГАУЗ ТО "МКМЦ "Медицинский город"</lpuName> <lpuAddress>г.Тюмень, ул.Барнаульская, д.32</lpuAddress> <lpuOgrn>1037200556117</lpuOgrn> <birthday>1966-06-15</birthday> <gender>0</gender> <reason1>01</reason1> <treatPeriods> <treatFullPeriod> <ns2:treatChairman>Тестовый ПЕТР Петрович</ns2:treatChairman> <ns2:treatChairmanRole>Пред ВК</ns2:treatChairmanRole> <ns2:treatPeriod> <ns2:treatDt1>2020-06-15</ns2:treatDt1> <ns2:treatDt2>2020-06-15</ns2:treatDt2> <ns2:treatDoctorRole>Врач-онколог</ns2:treatDoctorRole> <ns2:treatDoctor>Тестовый ПЕТР Петрович</ns2:treatDoctor> </ns2:treatPeriod> </treatFullPeriod> </treatPeriods> <lnState>010</lnState> </responseRow> </outRowset> </data> </fileOperationsLnUserGetPrivateLNDataOut> </getPrivateLNDataResponse> </soap:Body> </soap:Envelope>



Вернуться на главную страницу