Package com.dgwave.osrs.jaxb

Examples of com.dgwave.osrs.jaxb.Header


  public void testCreateOPSEnvelope() {
    try {
      JAXBContext jc = JAXBContext.newInstance("com.dgwave.osrs.jaxb");
      ObjectFactory objFactory = new ObjectFactory();
      OPSEnvelope opsEnvelope = objFactory.createOPSEnvelope();
      Header header = objFactory.createHeader();
      header.setVersion("0.9");
      opsEnvelope.setHeader(header);
     
      Item domain = objFactory.createItem();
      domain.setKey("domain");
      domain.setStringValue("dgwave.com");
View Full Code Here


  protected OPSEnvelope getEmptyEnvelope() throws OsrsException {
    initJaxb();
    OPSEnvelope opsEnvelope = null;

      opsEnvelope = oj.createOPSEnvelope();
      Header header = oj.createHeader();
      header.setVersion(this.version);
      opsEnvelope.setHeader(header);
     
      DataBlock dBlock = oj.createDataBlock();
     
      Body body = oj.createBody();
View Full Code Here

TOP

Related Classes of com.dgwave.osrs.jaxb.Header

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.