Create DirXml-Resource / Resource from PRD Entity
I want to create IDM resource object from Userapp PRD form, I have added
Dirxml-Resource as Entity
added attributes for entity, CN, Dirxml-ContentType, Dirxml-Data
in PRD workflow I have define Entity with create aciton
for Dirxml-ContentType = 'text/xml'
for Dirxml-Data = i am addding some xml data
When testing PRD. i get LDAP Invalid attributeValue error, I have checked Dirxmk-Data is type of Stream in schema, but now sure how to write data in stream to from PRD?
Oops forgot about that. Use Integration Activity and have fun working with it. I have some helpful articles on the topic:
Last two are basically exactly what you need step by step, just use a different SOAP endpoint (Resource, and the createResource() API call.)
@geoffc yes i will see but i have checked attribute Dirxml-Data is type of "Stream", my question how to write "Stream" from Create Entity within PRD workflow? Data i have is xml "String" which i want write, my blind guess is that it has to be type of "Stream" but not sure if userapp DAL converts automatically from String to Stream automatically or do i have to do myself and how ?
In general, Stream vs String is immaterial, and only matters in terms of storage in the DIB. Stream is stored in the nds.01 file, whereas a stream attribute is stored in a file naed OBJECTID.nds (I think that is the extension). Thus there is a 64K liimit on attr data in teh DIB but Stream files do not have limits (I think, maybe 4GB?)
I was thinking about where you set the Type of an attr and in the DAL I see it under UI Control. I THINK this is more about display (treat as large file) vs storgae.
Worst case you need to B64 encode the data, but I do not think that should be neccasary. But worth a shot.
@cpedersen i did not that we can cerate dirxml-resource using soap? are you sure you are not talking about nrfResource and not Dirxml-Resource?
There is SOAP endpoints we use actively for creating role and resources(nrfResource) but i did not know if there was one for Dirxml-Resource, can you point to it any documentaiton?