HI,Iam trying to import a object into a folder, below is the code snippet in which Iam trying to setup reference relationship.##########try { ObjectPath objectPath = new ObjectPath(); objectPath.setPath(o.getFolder()); System.out.println("Object Path :: "+objectPath.getPath()); ObjectIdentity folderIdentity = new ObjectIdentity(); folderIdentity.setObjectPath(objectPath); folderIdentity.setRepositoryName(docbase); ReferenceRelationship folderRelationship = new ReferenceRelationship(); folderRelationship.setName("folder"); System.out.println("Intent Modifier :: "+folderRelationship.getIntentModifier()); //folderRelationship.setTarget(dataObj); folderRelationship.setTarget(folderIdentity); folderRelationship.setTargetRole("parent"); relationship[0] = folderRelationship; //mydataObject.setRelationships(relationship); } catch (Exception e) { e.printStackTrace(); }##########Iam using wsdls generated from axis1.4 on JDK1.4 env.The following throwsup error like :: #################################AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server faultSubcode: faultString: "Create" operation failed for object: [karthikTES_2ndNoc09_1] [id =null] PROPERTIES [object_name=karthikTES_2ndNoc09_1]. faultActor: faultNode: faultDetail: {http://rt.fs.documentum.emc.com/}SerializableException:<exceptionBean><attribute><name>messageId</name><type>java.lang.String</type><value><value>E_CREATING_OBJECT_TREE_FAILED_WITH_TREE_DUMP</value></value>;</attribute><exceptionClass>com.emc.documentum.fs.services.core.CoreServiceException</exceptionClass><genericType>java.lang.Exception</genericType><message>"Create" operation failed for object: [karthikTES_2ndNoc09_1] [id =null] PROPERTIES [object_name=karthikTES_2ndNoc09_1].</message><messageId>E_CREATING_OBJECT_TREE_FAILED_WITH_TREE_DUMP</messageId></exceptionBean><exceptionBean><attribute><name>messageId</name><type>java.lang.String</type><value><value>E_UNSUPPORTED_OBJECT_TYPE</value></value></attribute><exceptionClass>com.emc.documentum.fs.services.core.CoreServiceException</exceptionClass><genericType>java.lang.Exception</genericType><message>Unsupported ObjectIdentity type: "UNDEFINED".</message><messageId>E_UNSUPPORTED_OBJECT_TYPE</messageId></exceptionBean><exceptionBean><attribute><name>;messageId</name><type>java.lang.String</type><value><;value>E_UNSUPPORTED_OBJECT_TYPE</value></value></attribute>;<exceptionClass>com.emc.documentum.fs.services.core.impl.execution.proto.dfc.DfcOperationException</exceptionClass><genericType>java.lang.Exception</genericType><message>Unsupported ObjectIdentity type: "UNDEFINED".</message><messageId>E_UNSUPPORTED_OBJECT_TYPE</messageId></exceptionBean><message>"Create" operation failed for object: [karthikTES_2ndNoc09_1] [id =null] PROPERTIES [object_name=karthikTES_2ndNoc09_1].</message>"Create" operation failed for object: [karthikTES_2ndNoc09_1] [id =null] PROPERTIES [object_name=karthikTES_2ndNoc09_1].#######################
Can anyone tell me how to set the relationship.