Hi,
I've been searching through the forums for code to create a Custom Node. One of the topics (called create node) is giving an error but I could get info somewhere else about node creation using this code:
Node nodeCentro = new Node();
nodeCentro.setParentID(idNodoAgrupacion);
nodeCentro.setType( "Centro de Trabajo" );
nodeCentro.setName(centroName);
Node centroNode = dm.createNodon(nodeCento );
I'm I
I'm getting the following error. ¿Is there a way to create custom nodes from the DocumentManagement service?
javax.xml.ws.soap.SOAPFaultException : La creación del tipo de nodo especificado no se admite.(Something like the creation of this type of node is forbidden)
at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException( SOAP11Fault.java:189 )
at com.sun.xml.ws.fault.SOAPFaultBuilder.createException( SOAPFaultBuilder.java:130 )
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke( SyncMethodHandler.java:119 )
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke( SyncMethodHandler.java:89 )
at com.sun.xml.ws.client.sei.SEIStub.invoke( SEIStub.java:118 )
at $Proxy36.createNodeAndVersion(Unknown Source)
at es.sacyr.utils.LocalizacionUtils.creacionCentro( LocalizacionUtils.java:119 )
at es.sacyr.utils.LocalizacionUtils.crearLocalizacion( LocalizacionUtils.java:150 )
at es.sacyr.examples.ProcesoPrueba.main( ProcesoPrueba.java:78 )