Package com.ipc.oce.xml.oc

Examples of com.ipc.oce.xml.oc.OCXDTOSerializer.writeXML()


    OCDocumentManager manager = app.getDocumentManager("ПриемНаРаботуВОрганизацию");
    OCDocumentObject doc = manager.createDocument();
    OCXDTOSerializer serializer = app.getXDTOSerializer();
    OCXMLWriter writer = app.newXMLWriter();
    writer.setString();
    serializer.writeXML(writer, doc);
    System.out.println(writer.close());
  }
 
  @Ignore
  @Test
View Full Code Here


   
    OCXDTOSerializer serializer = app.getXDTOSerializer();
    OCXMLWriter writer = app.newXMLWriter();
    writer.setString("UTF-8");
   
    serializer.writeXML(writer, documentObject);
    String xml = writer.close();
    System.out.println("XML size: " + xml.length());
   
    OCXMLReader reader = app.newXMLReader();
    reader.setString(xml);
View Full Code Here

  public String showXML() throws JIException {
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
    OCXDTOSerializer ocxdtoSerializer = app.getXDTOSerializer();
    OCXMLWriter ocxmlWriter = app.newXMLWriter();
    ocxmlWriter.setString("UTF-8");
    ocxdtoSerializer.writeXML(ocxmlWriter, this);
   
    return ocxmlWriter.close();
  }

}
View Full Code Here

  public String showXML() throws JIException {
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
    OCXDTOSerializer ocxdtoSerializer = app.getXDTOSerializer();
    OCXMLWriter ocxmlWriter = app.newXMLWriter();
    ocxmlWriter.setString("UTF-8");
    ocxdtoSerializer.writeXML(ocxmlWriter, this);
   
    return ocxmlWriter.close();
  }

}
View Full Code Here

  public String showXML() throws JIException {
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
    OCXDTOSerializer ocxdtoSerializer = app.getXDTOSerializer();
    OCXMLWriter ocxmlWriter = app.newXMLWriter();
    ocxmlWriter.setString("UTF-8");
    ocxdtoSerializer.writeXML(ocxmlWriter, this);
   
    return ocxmlWriter.close();
  }

}
View Full Code Here

  public String showXML() throws JIException {
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
    OCXDTOSerializer ocxdtoSerializer = app.getXDTOSerializer();
    OCXMLWriter ocxmlWriter = app.newXMLWriter();
    ocxmlWriter.setString("UTF-8");
    ocxdtoSerializer.writeXML(ocxmlWriter, this);
   
    return ocxmlWriter.close();
  }
 
}
View Full Code Here

  public String showXML() throws JIException {
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
    OCXDTOSerializer ocxdtoSerializer = app.getXDTOSerializer();
    OCXMLWriter ocxmlWriter = app.newXMLWriter();
    ocxmlWriter.setString("UTF-8");
    ocxdtoSerializer.writeXML(ocxmlWriter, this);
   
    return ocxmlWriter.close();
  }
 
  /**
 
View Full Code Here

    Message out = exchange.getOut();
   
    OCXDTOSerializer serializer = app.getXDTOSerializer();
    OCXMLWriter writer = app.newXMLWriter();
    writer.setString("UTF-8");
    serializer.writeXML(writer, dataObject);
    out.setBody(writer.close(), String.class);
   
  }

}
View Full Code Here

    OCCatalogSelection selection = manager.select();
    StringBuffer sb = new StringBuffer(4096);
    OCXDTOSerializer serializer = app.getXDTOSerializer();
    while(selection.next()) {
      OCCatalogObject object = selection.getObject();
      sb.append(serializer.writeXML(object));
    }
    surroundContainersTag(sb);
    return sb.toString();
  }
 
View Full Code Here

     
      OCXDTOSerializer serializer = app.getXDTOSerializer();
      OCXMLWriter writer = app.newXMLWriter();
      writer.setString("UTF-8");
     
      serializer.writeXML(writer, obj);
      return writer.close();
     
    } catch (Exception e) {
      throw new WebApplicationException(e);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.