Hello,
I am migrating code from NWDS 7.0 to NWDS 7.3 and I get import errors at ResourceContext & IConnectorGatewayService class/interfaces.
Could someone please let me know which of the standard Used DCs I need to use for this?
And in case if I need to download JAR from Portal, how & from where I need to download it?
IUser CMSADMIN_IUSER = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service"); ResourceContext RES_CONTEXT = new ResourceContext(CMSADMIN_IUSER); IResourceFactory RES_FACTORY = ResourceFactory.getInstance();
IConnectorGatewayService cg = (IConnectorGatewayService)PortalRuntime.getRuntimeResources().getService(IConnectorGatewayService.KEY); | |||||||
ConnectionProperties connProp = new ConnectionProperties(request.getLocale(), request.getUser()); | |||||||
connection = cg.getConnection(systemIdentifier, connProp); | |||||||
IInteraction interaction = connection.createInteractionEx(); | |||||||
IInteractionSpec interactionSpec = interaction.getInteractionSpec(); | |||||||
interactionSpec.setPropertyValue(NAME, Z_BAPI_EMP_GBU_GET); | |||||||
RecordFactory recordFactory = interaction.getRecordFactory(); | |||||||
MappedRecord importParams = recordFactory.createMappedRecord(IMPORT_PARAMS); | |||||||
importParams.put(OBJTYP, US); | |||||||
MappedRecord exportParams = (MappedRecord) interaction.execute(interactionSpec, importParams); | |||||||