Показать сообщение отдельно
Старый 13.05.2010, 14:38   #1  
Tony Green is offline
Tony Green
Участник
Аватар для Tony Green
 
184 / 25 (1) +++
Регистрация: 08.10.2002
Адрес: Москва
? Есть ли ограничения на количество связанных entity в FetchXML?
Коллеги, ай нид хелп!

Делаю хитромудрый soap запрос с формы. Типа такого:

Код:
<fetch mapping="logical">
	<entity name="new_position">
		<all-attributes />
		<filter>
			<condition attribute="statecode" operator="eq" value="0" />
			<condition attribute="new_legalpersonid" operator="eq" value="b8352330-baf9-dd11-b72d-001f29ecb0a0" />
		</filter>
		<link-entity name="new_empl" from="new_emplid" to="new_emplid">
			<link-entity name="systemuser" from="new_emplid" to="new_emplid">
				<filter>
					<condition attribute="systemuserid" operator="eq" value="612c765d-d596-dd11-b935-001f29ecb0a0" />
				</filter>
			</link-entity>
		</link-entity>
	</entity>
</fetch>

При выполнении получаю ошибку "Invalid Child Node. There can only be condition and filter nodes. NodeName = link-entity NodeXml = <link-entity name="new_empl" from="new_emplid" to="new_emplid"><link-entity name="systemuser" from="new_emplid" to="new_emplid"><filter><condition attribute="systemuserid" operator="eq" value="412e6b89-14a4-dd11-a24f-001f29ecb0a0" /></filter></link-entity></link-entity>"

Вопрос: есть ли ограничения на кол-во уровней связанных сущностей в soap запросе или я скорее всего накосячил в синтаксисе при сочинении запроса?
__________________
С уважением,
Tony Green