Package com.ipc.oce.xml.oc

Examples of com.ipc.oce.xml.oc.OCXMLReader


   *
   * @return экземпляр XMLReader
   * @throws JIException - ошибка DCOM.
   */
  public final OCXMLReader newXMLReader() throws JIException {
    return new OCXMLReader(newObject("XMLReader"));
  }
View Full Code Here


   
    serializer.writeXML(writer, documentObject);
    String xml = writer.close();
    System.out.println("XML size: " + xml.length());
   
    OCXMLReader reader = app.newXMLReader();
    reader.setString(xml);
   
    OCDocumentObject reverseObject = new OCDocumentObject(serializer.readXML(reader));
   
    assertTrue(originalIsNew == reverseObject.isNew());
    assertTrue(originalDocNum.equals(reverseObject.getNumberAsString()));
View Full Code Here

  @POST
  public Response updateDataObject(String body) {
    try {
      OCApp app = getApplication();
      OCXDTOSerializer serializer = app.getXDTOSerializer();
      OCXMLReader reader = app.newXMLReader();
      reader.setString(body);
      OCObject object = serializer.readXML(reader);
      _OCCommonObject commonObject = new _OCCommonObject(object);
      /*if (commonObject.isNew()) {
       
         * The request could not be understood by the server due to
View Full Code Here

  @PUT
  public Response createDataObject(String body) {
    try {
      OCApp app = getApplication();
      OCXDTOSerializer serializer = app.getXDTOSerializer();
      OCXMLReader reader = app.newXMLReader();
      reader.setString(body);
      OCObject object = serializer.readXML(reader);
      _OCCommonObject commonObject = new _OCCommonObject(object);
      commonObject.write();
     
      OCXMLWriter writer = app.newXMLWriter();
View Full Code Here

TOP

Related Classes of com.ipc.oce.xml.oc.OCXMLReader

Copyright © 2018 www.massapicom. 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.