WSO2 프록시에서 속성을 채우려고합니다. 다음 문법과 xpath 표현식을 사용하고 있습니다 :wso2 속성 조정자의 xpath 표현식이 작동하지 않습니다.
<property expression="//RelationValueList/PersonnelRelationValueUnitType[RelAttrId='R54' and DateTo=max(//RelationValueList/PersonnelRelationValueUnitType[RelAttrId='R54']/DateTo/xs:dateTime(.))][last()]/RelationValue" name="RelValue" scope="default" type="STRING"/>
이 Xpath 표현식은 온라인 Xpath 테스터에서 정상적으로 작동합니다. 속성 중재자의 WSO2 표현에서 사용할 때 그러나 그것은 나에게 다음과 같은 이클립스 오류 제공 :
<GetPersonnelResponse>
<GetPersonnelResult>
<RelationValueList>
<PersonnelRelationValueUnitType>
<RelAttrId>C1</RelAttrId>
<RelationValue>1234</RelationValue>
<DateFrom>1900-01-02T00:00:00</DateFrom>
<DateTo>2199-12-31T00:00:00</DateTo>
</PersonnelRelationValueUnitType>
<PersonnelRelationValueUnitType>
<RelAttrId>R54</RelAttrId>
<RelationValue>GEN123</RelationValue>
<DateFrom>1900-01-02T00:00:00</DateFrom>
<DateTo>2017-12-04T00:00:00</DateTo>
</PersonnelRelationValueUnitType>
<PersonnelRelationValueUnitType>
<RelAttrId>R54</RelAttrId>
<RelationValue>GEN456</RelationValue>
<DateFrom>2017-12-05T00:00:00</DateFrom>
<DateTo>2099-12-31T00:00:00</DateTo>
</PersonnelRelationValueUnitType>
</RelationValueList>
</GetPersonnelResult>
</GetPersonnelResponse>
:
WSO2 알 수없는 시냅스 구성 태그를 XML 문서는 다음과 같습니다
Xpath 2.0은 WSO2esb에서 사용할 수 있습니다. 가장 높은 DateTo 값을 가진 RelationValue를 선택해야합니다. 여러 값이있는 경우 마지막 값을 취합니다.
누구든지이 문제를 해결하는 방법을 알고 있습니다.
전체 오류 로그입니까? – Bee
Eclipse에서 오류가 발생했습니다. 방금 전체 오류 메시지의 스크린 샷을 추가했습니다. – Patrick
누구나 아이디어가 있습니까? – Patrick