Вызов приложения Console_putLNDataV2_Test.exe для отправки заполненных ЭЛН в ФСС

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

//-- 1-й - журнал приложения - D:\temp\FSS\files\Log.txt
//-- 2-й - первичный файл, должен быть сформирован до вызова приложения - D:\temp\FSS\files\V2_test_900000468164_p1.xml
//-- 3-й - конечный файл - D:\temp\FSS\files\V2_test_900000468164_p5.xml
//-- 4-й - рег. номер предприятия в ФСС - 11111
//-- 5-й - номер ЭЛН - 22222
//-- 6-й - серийный номер сертификата страхователя - 438D9D0017AA35894EB4EEEDAF62A7
//-- 7-й - серийный номер сертификата ФСС - 00C4750D5B11E4DB80E811F4CAB74FA01E

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

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

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


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

cd D:\temp\FSS\Console
Console_putLNDataV2_Test D:\temp\FSS\files\Log.txt D:\temp\FSS\files\V2_test_900000468164_p1.xml
D:\temp\FSS\files\V2_test_900000468164_p5.xml 7812043050 900000468164
025EB2BC0053AC0EAB4A010FA0DFAE0694 01D690086009A0300000028B03E80002



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

<S: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:eln="http://ru/ibs/fss/ln/ws/FileOperationsLn.wsdl" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <prParseReestrFileRequest xmlns="http://www.fss.ru/integration/types/eln/ins/v01"> <request> <regNum>7812043050</regNum> <pXmlFile> <rowset ns2:version="2.0" xmlns:ns2="http://www.fss.ru/integration/types/eln/v01"> <ns1:row xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://www.fss.ru/integration/types/eln/ins/v01" wsu:Id="ELN_900000468164"> <ns1:lnCode>900000468164</ns1:lnCode> <ns1:snils>88293188566</ns1:snils> <ns1:innPerson>XXXXXXXXXX</ns1:innPerson> <ns1:employer>XXXXXXXXXXX</ns1:employer> <ns1:emplFlag>true</ns1:emplFlag> <ns1:emplRegNo>7812043050</ns1:emplRegNo> <ns1:emplParentNo>78121</ns1:emplParentNo> <ns1:approve1>XXXXXXXXX</ns1:approve1> <ns1:approve2>XXXXXXXXX</ns1:approve2> <ns1:baseAvgSal>XXXXXXXXX</ns1:baseAvgSal> <ns1:baseAvgDailySal>XXXXXXXXX</ns1:baseAvgDailySal> <ns1:insurYy>3</ns1:insurYy> <ns1:insurMm>2</ns1:insurMm> <ns1:notInsurYy>0</ns1:notInsurYy> <ns1:notInsurMm>0</ns1:notInsurMm> <ns1:calcCondition1 /> <ns1:calcCondition2 /> <ns1:calcCondition3 /> <ns1:form1Dt xsi:nil="true" /> <ns1:returnDateEmpl xsi:nil="true" /> <ns1:dt1Ln>2019-04-18</ns1:dt1Ln> <ns1:dt2Ln>2019-04-30</ns1:dt2Ln> <ns1:emplPayment>XXXXXXX</ns1:emplPayment> <ns1:fssPayment>XXXXXXX</ns1:fssPayment> <ns1:payment>XXXXXXXX</ns1:payment> </ns1:row> </rowset> </pXmlFile> </request> </prParseReestrFileRequest> </S:Body> </S:Envelope>

Конечный файл - V2_test_900000468164_p5.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 gdC60L7QuSDQpNC10LTQtdGA0LDRhtC40LgxLjAsBgNVBAsMJdCm0LXQvdGC0YDQsNC70YzQvdGL 0Lkg0LDQv9C/0LDRgNCw0YIxZzBlBgNVBAMMXtCk0L7QvdC0INGB0L7RhtC40LDQu9GM0L3QvtCz 0L4g0YHRgtGA0LDRhdC+0LLQsNC90LjRjyDQoNC+0YHRgdC40LnRgdC60L7QuSDQpNC10LTQtdGA 0LDRhtC40LgwHhcN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 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>EjmQD6SJszNOJGp1SNnqJ4oU6ZxBuSjETeg4b68A9UY=</DigestValue> </Reference> </SignedInfo> <SignatureValue>VFgVoMJHcjuSPJZVdXnK6MsUDvalxw4Gz2Btv00Svf0Mr8nSSq5G7erqRVyEZ/jye502ba9vwylZ gzlvMqf/mA==</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#">MIIIyTCCCHSgAwIBAgIQAdaQCGAJoDAAAAKLA+gAAjAMBggqhQMHAQEDAgUAMIIB2DEYMBYGBSqF A2QBEg0xMDI3NzM5NDQzMjM2MT0wOwYDVQQJDDTQntGA0LvQuNC60L7QsiDQv9C10YDQtdGD0LvQ vtC6LCDQtC4gMywg0LrQvtGA0L8uINCQMRowGAYIKoUDA4EDAQESD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fBC4wLDAqoCigJoYkaHR0cDovL2Zzcy5ydS91Yy9H VUNfRlNTX1JGXzIwMjAuY3JsMIIBYAYDVR0jBIIBVzCCAVOAFD2o7bwXrstz2cPo0cin9ryscFZm oYIBLKSCASgwggEkMR4wHAYJKoZIhvcNAQkBFg9kaXRAbWluc3Z5YXoucnUxCzAJBgNVBAYTAlJV MRgwFgYDVQQIDA83NyDQnNC+0YHQutCy0LAxGTAXBgNVBAcMENCzLiDQnNC+0YHQutCy0LAxLjAs BgNVBAkMJdGD0LvQuNGG0LAg0KLQstC10YDRgdC60LDRjywg0LTQvtC8IDcxLDAqBgNVBAoMI9Cc 0LjQvdC60L7QvNGB0LLRj9C30Ywg0KDQvtGB0YHQuNC4MRgwFgYFKoUDZAESDTEwNDc3MDIwMjY3 MDExGjAYBggqhQMDgQMBARIMMDA3NzEwNDc0Mzc1MSwwKgYDVQQDDCPQnNC40L3QutC+0LzRgdCy 0Y/Qt9GMINCg0L7RgdGB0LjQuIILAKhAVEAAAAAAA58wHQYDVR0OBBYEFBGLbUHNNZEst5g5AfDd 9w6rG2H5MAwGCCqFAwcBAQMCBQADQQDVak5Yshj5IiR0tMqBmPfvVF3SMB/sw6k8qnRwubcePmPF X+VU7vbTLYeSDT82mUC4kXios9LQDpThFlpQrbIn</X509Certificate> </soap:Header> <soap:Body wsu:Id="OGRN_1027739443236"> <prParseReestrFileResponse 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"> <wsResult> <ns2:requestId>LNDATAINS_7812043050_2021_03_17_00002</ns2:requestId> <ns2:status>0</ns2:status> <ns2:mess>Направляемых данных недостаточно для определения состояния ЭЛН 900000468164</ns2:mess> <ns2:info> <ns2:infoRowset> <ns2:infoRow> <ns2:rowNo>1</ns2:rowNo> <ns2:lnCode>900000468164</ns2:lnCode> <ns2:status>0</ns2:status> <ns2:errors> <ns2:error> <ns2:errCode>ERROR</ns2:errCode> <ns2:errMess>Для перехода в статус ''Продлен'' необходимо добавить период нетрудоспособности; Для перехода в статус 'Закрыт' необходимо заполнить поля: 'Приступить к работе с: дата' или 'Иное: код'; Для перехода в статус 'Направление на МСЭ' необходимо заполнить поле 'Дата направления в бюро МСЭ'.</ns2:errMess> </ns2:error> </ns2:errors> </ns2:infoRow> </ns2:infoRowset> </ns2:info> </wsResult> </prParseReestrFileResponse> </soap:Body> </soap:Envelope>



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