I am facing a problem retrieving all objects of a certain (custom) object type from my server by browsing in inverse direction starting at the node of the object type.
I am executing sth like:
Code: Select all
bContext = new BrowseContext();
bContext.BrowseDirection = UnifiedAutomation.UaBase.BrowseDirection.Inverse;
bContext.ReferenceTypeId = <NodeId_of_HasTypeDefinition_Reference>;
var browseResult = this.CurrentSession.Browse(<NodeId_of_CustomObjectType>, bContext, out cp);
Executing the request with ReferenceTypeId = <NodeId_of_HasSubType_Reference> returns the expected result (BaseObjectType; being super type of my custom object type).
I have tried this with my custom server and also the demo server provided by unified automation (taking the boiler type (ns=2,id=1003) instead) with the same (empty) result.
I am using .Net SDK Bundle 2.2.1 on Win 8 64bit.
Can you provide any solution to this? Does the UA server support inverse browsing starting at an object type to retrieve all objects of that type on the server?
Best Regards
Luigi