Package org.jboss.ws.core.jaxrpc.binding.jbossxb

Examples of org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBMarshaller


         // Get the jaxrpc-mapping.xml object graph
         JavaWsdlMapping jaxrpcMapping = jaxrpcContext.getJavaWsdlMapping();

         // schemabinding marshaller is the default delegate
         JBossXBMarshaller delegate = marshaller;

         // marshalling context
         delegate.setProperty(JBossXBConstants.JBXB_XS_MODEL, model);
         delegate.setProperty(JBossXBConstants.JBXB_TYPE_QNAME, xmlType);
         delegate.setProperty(JBossXBConstants.JBXB_ROOT_QNAME, xmlName);
         delegate.setProperty(JBossXBConstants.JBXB_JAVA_MAPPING, jaxrpcMapping);

         // marshall
         StringWriter strwr = new StringWriter();
         delegate.marshal(value, strwr);
         String xmlFragment = strwr.toString();

         log.debug("serialized: " + xmlFragment);
         return new BufferedStreamResult(xmlFragment);
      }
View Full Code Here


         // Get the jaxrpc-mapping.xml object graph
         JavaWsdlMapping jaxrpcMapping = jaxrpcContext.getJavaWsdlMapping();

         // schemabinding marshaller is the default delegate
         JBossXBMarshaller delegate = marshaller;

         // marshalling context
         delegate.setProperty(JBossXBConstants.JBXB_XS_MODEL, model);
         delegate.setProperty(JBossXBConstants.JBXB_TYPE_QNAME, xmlType);
         delegate.setProperty(JBossXBConstants.JBXB_ROOT_QNAME, xmlName);
         delegate.setProperty(JBossXBConstants.JBXB_JAVA_MAPPING, jaxrpcMapping);

         // marshall
         StringWriter strwr = new StringWriter();
         delegate.marshal(value, strwr);
         String xmlFragment = strwr.toString();

         log.debug("serialized: " + xmlFragment);
         return new BufferedStreamResult(xmlFragment);
      }
View Full Code Here

/*     */     {
/*  91 */       XSModel model = jaxrpcContext.getXsModel();
/*     */
/*  94 */       JavaWsdlMapping jaxrpcMapping = jaxrpcContext.getJavaWsdlMapping();
/*     */
/*  97 */       JBossXBMarshaller delegate = this.marshaller;
/*     */
/* 100 */       delegate.setProperty("org.jboss.xb.xsd.xsmodel", model);
/* 101 */       delegate.setProperty("org.jboss.xb.type.qname", xmlType);
/* 102 */       delegate.setProperty("org.jboss.xb.root.qname", xmlName);
/* 103 */       delegate.setProperty("org.jboss.xb.java.mapping", jaxrpcMapping);
/*     */
/* 106 */       StringWriter strwr = new StringWriter();
/* 107 */       delegate.marshal(value, strwr);
/* 108 */       String xmlFragment = strwr.toString();
/*     */
/* 110 */       log.debug("serialized: " + xmlFragment);
/* 111 */       return new BufferedStreamResult(xmlFragment);
/*     */     }
View Full Code Here

TOP

Related Classes of org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBMarshaller

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.