I am trying to create a relationship between two objects, using the Bentley Web Services Gateway with EB Plugin.An example of an existing instance (as returned by WSG):
{ "instances": [ { "instanceId": "123456", "schemaName": "EB_ECPLUGIN_SCHEMA", "className": "OurDocument", "properties": { ... } }, "relationshipInstances": [ { "instanceId": "123456_789", "schemaName": "eB", "className": "ProjectDocument", "direction": "backward", "properties": {}, "relatedInstance": { "instanceId": "789", "schemaName": "EB_ECPLUGIN_SCHEMA", "className": "OurProject", "properties": { ... } ]}}The closest (I think) we've got to creating this relationship is:
POST hs2-qa-aw.bentley.com/.../123456{ "instance": { "schemaName": "EB_ECPLUGIN_SCHEMA", "instanceId": "123456", "className": "OurDocument", "changeState": "modified", "properties": {}, "relationshipInstances": [{ "instanceId": "123456_789", "schemaName": "eB", "className": "ProjectDocument", "direction": "forward", "changeState": "new", "relatedInstance": { "schemaName": "EB_ECPLUGIN_SCHEMA", "instanceId": "789", "className": "OurProject", "properties": {} } }] } }
Which errors with:{"errorId":null,"errorMessage":"Class 'OurDocument' is not supported as 'Source' in relationship class 'ProjectDocument'.","errorDescription":null}I've tried about 20 combinations of URL, and payload with no success. In prior integration (using a dll) we used the Implicit Relationship "IR-DOCUMENT_PROJECTS_SHARED" however if we try and use this as the class, the WSG complains about it not existing in either the EB or EB_ECPLUGIN_SCHEMA.Any advice would be gratefully received, I have asked via Bentley support but have received no useful information.