Package org.jboss.ws.core.jaxrpc

Examples of org.jboss.ws.core.jaxrpc.SerializationContextJAXRPC


   public SerializationContext createSerializationContext()
   {
      EndpointMetaData epMetaData = getEndpointMetaData();
      ServiceMetaData serviceMetaData = epMetaData.getServiceMetaData();

      SerializationContextJAXRPC jaxrpcContext = new SerializationContextJAXRPC();
      jaxrpcContext.setTypeMapping(serviceMetaData.getTypeMapping());
      jaxrpcContext.setJavaWsdlMapping(serviceMetaData.getJavaWsdlMapping());
      return jaxrpcContext;
   }
View Full Code Here


/*     */   private Object deserialize(QName xmlName, QName xmlType, String val, SerializationContext serContext)
/*     */     throws BindingException
/*     */   {
/*  81 */     if (log.isDebugEnabled()) log.debug("deserialize: [xmlName=" + xmlName + ",xmlType=" + xmlType + "]");
/*     */
/*  84 */     SerializationContextJAXRPC jaxrpcContext = (SerializationContextJAXRPC)serContext;
/*     */
/*  86 */     Object value = null;
/*  87 */     String typeName = xmlType.getLocalPart();
/*     */     try
/*     */     {
/*  92 */       XSModel model = jaxrpcContext.getXsModel();
/*     */
/*  95 */       JavaWsdlMapping jaxrpcMapping = jaxrpcContext.getJavaWsdlMapping();
/*     */
/*  97 */       this.unmarshaller.setProperty("org.jboss.xb.xsd.xsmodel", model);
/*  98 */       this.unmarshaller.setProperty("org.jboss.xb.root.qname", xmlName);
/*  99 */       this.unmarshaller.setProperty("org.jboss.xb.type.qname", xmlType);
/* 100 */       this.unmarshaller.setProperty("org.jboss.xb.java.mapping", jaxrpcMapping);
View Full Code Here

/*     */   public Result serialize(QName xmlName, QName xmlType, Object value, SerializationContext serContext, NamedNodeMap attributes)
/*     */     throws BindingException
/*     */   {
/*  83 */     log.debug("serialize: [xmlName=" + xmlName + ",xmlType=" + xmlType + "]");
/*     */
/*  86 */     SerializationContextJAXRPC jaxrpcContext = (SerializationContextJAXRPC)serContext;
/*     */     try
/*     */     {
/*  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);
View Full Code Here

   public SerializationContext createSerializationContext()
   {
      EndpointMetaData epMetaData = getEndpointMetaData();
      ServiceMetaData serviceMetaData = epMetaData.getServiceMetaData();

      SerializationContextJAXRPC jaxrpcContext = new SerializationContextJAXRPC();
      jaxrpcContext.setTypeMapping(serviceMetaData.getTypeMapping());
      jaxrpcContext.setJavaWsdlMapping(serviceMetaData.getJavaWsdlMapping());
      return jaxrpcContext;
   }
View Full Code Here

/*     */   public SerializationContext createSerializationContext()
/*     */   {
/*  73 */     EndpointMetaData epMetaData = getEndpointMetaData();
/*  74 */     ServiceMetaData serviceMetaData = epMetaData.getServiceMetaData();
/*     */
/*  76 */     SerializationContextJAXRPC jaxrpcContext = new SerializationContextJAXRPC();
/*  77 */     jaxrpcContext.setTypeMapping(serviceMetaData.getTypeMapping());
/*  78 */     jaxrpcContext.setJavaWsdlMapping(serviceMetaData.getJavaWsdlMapping());
/*  79 */     return jaxrpcContext;
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.ws.core.jaxrpc.SerializationContextJAXRPC

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.