SearchEmployees_ByParameters - Synerdocs/synerdocs-sdk GitHub Wiki

Запрос:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:syn="http://synerdocs.ru" xmlns:mid="http://schemas.datacontract.org/2004/07/Midway.ObjectModel" xmlns:mid1="http://schemas.datacontract.org/2004/07/Midway.ObjectModel.Common">
	<soapenv:Header/>
	<soapenv:Body>
		<syn:SearchEmployees>
			<syn:credentials>
				<mid:AuthToken>bb0bb49b-5f27-4a5d-af0e-000019d68da5</mid:AuthToken>
				<mid:BoxAddress>[email protected]</mid:BoxAddress>
			</syn:credentials>
			<syn:request xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
				<mid:FilterSettings>
					<mid:Filter i:type="mid:CompositeFilterCondition">
						<mid:Conditions>
							<!-- При указании в качестве параметров поиска объекта класса FilterCondition запрос строится по принципу (ВидПоля1 Оператор1 Значение1) Оператор (ВидПоля2 Оператор2 Значение2) Оператор .... -->
							<mid:FilterConditionBase i:type="mid:FilterCondition">
								<!-- В качестве значения параметра FieldName должно быть указано значение из перечисления -->
								<mid:FieldName>
									<mid:Code>9</mid:Code>
								</mid:FieldName>
								<mid:Operator>
									<mid:Code>1</mid:Code>
								</mid:Operator>
								<mid:Value>true</mid:Value>
							</mid:FilterConditionBase>
							<mid:FilterConditionBase i:type="mid:FilterCondition">
								<mid:FieldName>
									<mid:Code>12</mid:Code>
								</mid:FieldName>
								<mid:Operator>
									<mid:Code>5</mid:Code>
								</mid:Operator>
								<mid:Value>2017-09-25T00:00:00</mid:Value>
							</mid:FilterConditionBase>
						</mid:Conditions>
						<mid:Operator>
							<mid:Code>1</mid:Code>
						</mid:Operator>
					</mid:Filter>
				</mid:FilterSettings>
				<mid:LoadingSettings>
					<mid:WithCertificate>true</mid:WithCertificate>
				</mid:LoadingSettings>
			</syn:request>
		</syn:SearchEmployees>
	</soapenv:Body>
</soapenv:Envelope>

Ответ:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
	<s:Body>
		<SearchEmployeesResponse xmlns="http://synerdocs.ru">
			<SearchEmployeesResult xmlns:a="http://schemas.datacontract.org/2004/07/Midway.ObjectModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
				<a:Items>
					<a:Employee>
						<a:AvailableDepartments i:nil="true"/>
						<a:Certificate>
							<a:CertificateId>0</a:CertificateId>
							<a:ExpiryDate>2018-09-26T06:31:09</a:ExpiryDate>
							<a:IsTest>false</a:IsTest>
							<a:IssuerName>УЦ 2 ГУЦ Synerdocs test</a:IssuerName>
							<a:LegalPerson>Градский Владимир Георгиевич</a:LegalPerson>
							<a:Login i:nil="true"/>
							<a:OrganizationId>0</a:OrganizationId>
							<a:PublicKey i:nil="true"/>
							<a:QualifiedCertificate>true</a:QualifiedCertificate>
							<a:Raw>MIIJBjCCCLWgAwIBAgIEWcn1pDAIBgYqhQMCAgMwggG2MRgwFgYFKoUDZAESDTEwMzE4MDE5NjIwOTIxGjAYBggqhQMDgQMBARIMMDAxODM1MDU2ODA5MSMwIQYJKoZIhvcNAQkBFhRzdXBwb3J0QHN5bmVyZG9jcy5ydTEhMB8GA1UECh4YBB4EHgQeACAEFAQYBCAEFQQaBCIEIwQcMVkwVwYDVQQLHlAEHgRCBDQENQQ7ACAEPAQ1BDYEOgQ+BEAEPwQ+BEAEMARCBDgEMgQ9BD4EMwQ+ACAENAQ+BDoEQwQ8BDUEPQRCBD4EPgQxBD4EQAQ+BEIEMDFDMEEGA1UECR46BDMALgAgBBgENgQ1BDIEQQQ6ACAEPwQ1BEAALgAgBCEENQQyBDUEQAQ9BEsEOQAgBDQALgAgADYAMTEVMBMGA1UEBx4MBBgENgQ1BDIEQQQ6MTkwNwYDVQQIHjAAMQA4ACAEIwQ0BDwEQwRABEIEQQQ6BDAETwAgBCAENQRBBD8EQwQxBDsEOAQ6BDAxCzAJBgNVBAYTAlJVMTcwNQYDVQQDHi4EIwQmACAAMgAgBBMEIwQmACAAUwB5AG4AZQByAGQAbwBjAHM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MDELMAkGA1UEBhMCUlUxIzAhBgkqhkiG9w0BCQEWFHN1cHBvcnRAc3luZXJkb2NzLnJ1MRowGAYIKoUDA4EDAQESDDAwMTgzNTA1NjgwOTEhMB8GA1UECh4YBB4EHgQeACAEFAQYBCAEFQQaBCIEIwQcMTcwNQYDVQQDHi4EIwQmACAAMQAgBBMEIwQmACAAUwB5AG4AZQByAGQAbwBjAHMAIAB0AGUAcwB0ggIwOTAdBgNVHQ4EFgQUM3TrNcR9Ad46ajRsxdKIlR9rfogwCAYGKoUDAgIDA0EA6I96hA3wJveozXXUkyJ/mqaBDVwTiBJfkrRK3nrMs4w+Yl1yb//qClm6zZLUQlM3duuS7SNuoyJ1OPzGYTyB2Q==</a:Raw>
							<a:SerialNumber>59C9F5A4</a:SerialNumber>
							<a:SignatureAlgorithm>ECGOST3410</a:SignatureAlgorithm>
							<a:StartDate>2017-09-26T06:31:09</a:StartDate>
							<a:Thumbprint>C1CC32A86773F03A09CF593DBB7AB359CEF95B80</a:Thumbprint>
						</a:Certificate>
						<a:Id>3488ad13-0c1d-4878-b63c-5d20c4d8f080</a:Id>
						<a:InvoiceReglamentAccepted>true</a:InvoiceReglamentAccepted>
						<a:IsAdmin>true</a:IsAdmin>
						<a:IsDeleted>false</a:IsDeleted>
						<a:Organization>
							<a:Addresses/>
							<a:Bank i:nil="true"/>
							<a:Bik i:nil="true"/>
							<a:BoxAddress i:nil="true"/>
							<a:ContactAuthType>Accept</a:ContactAuthType>
							<a:CorrespondentAccount i:nil="true"/>
							<a:CurrentAccount i:nil="true"/>
							<a:EdiSubscriberStatus>
								<a:Code>0</a:Code>
								<a:Description>Не зарегистрирована как абонент EDI</a:Description>
								<a:Name>NotRegistered</a:Name>
							</a:EdiSubscriberStatus>
							<a:ExchangeWithIndividualEnabled>false</a:ExchangeWithIndividualEnabled>
							<a:Fax i:nil="true"/>
							<a:FeatureConfirmReceiptEnabled>false</a:FeatureConfirmReceiptEnabled>
							<a:FirstName i:nil="true"/>
							<a:Ifns i:nil="true"/>
							<a:Inn i:nil="true"/>
							<a:InvoiceReglamentAccepted>false</a:InvoiceReglamentAccepted>
							<a:IsForeignCompany>false</a:IsForeignCompany>
							<a:IsJuridical>true</a:IsJuridical>
							<a:Kpp i:nil="true"/>
							<a:LastName i:nil="true"/>
							<a:LegalAddress i:nil="true"/>
							<a:LegalForm i:nil="true"/>
							<a:LegalName i:nil="true"/>
							<a:MailingAddress i:nil="true"/>
							<a:MiddleName i:nil="true"/>
							<a:Name i:nil="true"/>
							<a:Ogrn i:nil="true"/>
							<a:OperatorCode i:nil="true"/>
							<a:OperatorServiceName i:nil="true"/>
							<a:OrganizationId>0</a:OrganizationId>
							<a:OrganizationStatus>NonActive</a:OrganizationStatus>
							<a:OrganizationType>LegalEntity</a:OrganizationType>
							<a:RoamingPackageRecipientId i:nil="true"/>
							<a:ServiceCode i:nil="true"/>
							<a:ServiceReglamentAccepted>false</a:ServiceReglamentAccepted>
							<a:State i:nil="true"/>
							<a:StateRegistrationCert i:nil="true"/>
							<a:Tel i:nil="true"/>
							<a:Version>0</a:Version>
						</a:Organization>
						<a:OrganizationBoxId>[email protected]</a:OrganizationBoxId>
						<a:Position>Специалист по ЗИ</a:Position>
						<a:Settings/>
						<a:User>
							<a:Comment i:nil="true"/>
							<a:Email i:nil="true"/>
							<a:FirstName i:nil="true"/>
							<a:LastName i:nil="true"/>
							<a:Login i:nil="true"/>
							<a:MiddleName i:nil="true"/>
							<a:Phone i:nil="true"/>
							<a:Skype i:nil="true"/>
							<a:Snils i:nil="true"/>
							<a:TimeZone i:nil="true"/>
						</a:User>
					</a:Employee>
				</a:Items>
				<a:Paging xmlns:b="http://schemas.datacontract.org/2004/07/Midway.ObjectModel.Common">
					<b:First>0</b:First>
					<b:PageSize>25</b:PageSize>
				</a:Paging>
				<a:Total>1</a:Total>
			</SearchEmployeesResult>
		</SearchEmployeesResponse>
	</s:Body>
</s:Envelope>
⚠️ **GitHub.com Fallback** ⚠️