Package com.sforce.ws.parser

Examples of com.sforce.ws.parser.XmlOutputStream


        packageManifest.setTypes((PackageTypeMembers[]) packageTypeMembersList.toArray(new PackageTypeMembers[0]));       
        // Serialise it (better way to do this?)
          TypeMapper typeMapper = new TypeMapper();
          ByteArrayOutputStream packageBaos = new ByteArrayOutputStream();
          QName packageQName = new QName("http://soap.sforce.com/2006/04/metadata", "Package");
          XmlOutputStream xmlOutputStream = new XmlOutputStream(packageBaos, true);
          xmlOutputStream.setPrefix("", "http://soap.sforce.com/2006/04/metadata");
          xmlOutputStream.setPrefix("xsi", "http://www.w3.org/2001/XMLSchema-instance");
          packageManifest.write(packageQName, xmlOutputStream, typeMapper);
          xmlOutputStream.close();
          packageManifestXml = new String(packageBaos.toByteArray())
        }
       
        // Download the Repository as an archive zip
      RepositoryId repoId = RepositoryId.create(repoOwner, repoName);
View Full Code Here


            File f = new File(DEPLOY_DIR, obj.getFullName() + ".object");
            if (!f.exists()) {
                f.createNewFile();
            }
            FileOutputStream fos = new FileOutputStream(f);
            XmlOutputStream xout = new XmlOutputStream(fos, true);
            xout.setPrefix("", "http://soap.sforce.com/2006/04/metadata");
            try {
                xout.startDocument();
                obj.write(new QName("http://soap.sforce.com/2006/04/metadata", "CustomObject"), xout, typeMapper);
            } finally {
                xout.endDocument();
                xout.close();
                fos.close();
            }
           
            schemaFiles.add(f);
        }
View Full Code Here

TOP

Related Classes of com.sforce.ws.parser.XmlOutputStream

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.