Package org.jboss.ws.core.jaxrpc

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


   private Object deserialize(QName xmlName, QName xmlType, String val, SerializationContext serContext) throws BindingException
   {
      if(log.isDebugEnabled()) log.debug("deserialize: [xmlName=" + xmlName + ",xmlType=" + xmlType + "]");

      // Expect the specific JAXRPC serialization context
      SerializationContextJAXRPC jaxrpcContext = (SerializationContextJAXRPC)serContext;

      Object value = null;
      String typeName = xmlType.getLocalPart();

      try
      {
         // Get the parsed model
         XSModel model = jaxrpcContext.getXsModel();

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

         unmarshaller.setProperty(JBossXBConstants.JBXB_XS_MODEL, model);
         unmarshaller.setProperty(JBossXBConstants.JBXB_ROOT_QNAME, xmlName);
         unmarshaller.setProperty(JBossXBConstants.JBXB_TYPE_QNAME, xmlType);
         unmarshaller.setProperty(JBossXBConstants.JBXB_JAVA_MAPPING, jaxrpcMapping);
View Full Code Here


   public Result serialize(QName xmlName, QName xmlType, Object value, SerializationContext serContext, NamedNodeMap attributes) throws BindingException
   {
      log.debug("serialize: [xmlName=" + xmlName + ",xmlType=" + xmlType + "]");

      // Expect the specific JAXRPC serialization context
      SerializationContextJAXRPC jaxrpcContext = (SerializationContextJAXRPC)serContext;

      try
      {
         // Get the parsed model
         XSModel model = jaxrpcContext.getXsModel();

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

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

         // marshalling context
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

   protected void setUp() throws Exception
   {
      TypeMappingRegistry tmRegistry = new TypeMappingRegistryImpl();
      typeMapping = (TypeMappingImpl)tmRegistry.getDefaultTypeMapping();

      serContext = new SerializationContextJAXRPC();
      serContext.setTypeMapping(typeMapping);
   }
View Full Code Here

   private Object deserialize(QName xmlName, QName xmlType, String val, SerializationContext serContext) throws BindingException
   {
      if(log.isDebugEnabled()) log.debug("deserialize: [xmlName=" + xmlName + ",xmlType=" + xmlType + "]");

      // Expect the specific JAXRPC serialization context
      SerializationContextJAXRPC jaxrpcContext = (SerializationContextJAXRPC)serContext;

      Object value = null;
      String typeName = xmlType.getLocalPart();

      try
      {
         // Get the parsed model
         XSModel model = jaxrpcContext.getXsModel();

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

         unmarshaller.setProperty(JBossXBConstants.JBXB_XS_MODEL, model);
         unmarshaller.setProperty(JBossXBConstants.JBXB_ROOT_QNAME, xmlName);
         unmarshaller.setProperty(JBossXBConstants.JBXB_TYPE_QNAME, xmlType);
         unmarshaller.setProperty(JBossXBConstants.JBXB_JAVA_MAPPING, jaxrpcMapping);
View Full Code Here

   public Result serialize(QName xmlName, QName xmlType, Object value, SerializationContext serContext, NamedNodeMap attributes) throws BindingException
   {
      log.debug("serialize: [xmlName=" + xmlName + ",xmlType=" + xmlType + "]");

      // Expect the specific JAXRPC serialization context
      SerializationContextJAXRPC jaxrpcContext = (SerializationContextJAXRPC)serContext;

      try
      {
         // Get the parsed model
         XSModel model = jaxrpcContext.getXsModel();

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

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

         // marshalling context
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

   protected void setUp() throws Exception
   {
      TypeMappingRegistry tmRegistry = new TypeMappingRegistryImpl();
      typeMapping = (TypeMappingImpl)tmRegistry.getDefaultTypeMapping();

      serContext = new SerializationContextJAXRPC();
      serContext.setTypeMapping(typeMapping);
   }
View Full Code Here

   protected void setUp() throws Exception
   {
      TypeMappingRegistry tmRegistry = new TypeMappingRegistryImpl();
      typeMapping = (TypeMappingImpl)tmRegistry.getDefaultTypeMapping();

      serContext = new SerializationContextJAXRPC();
      serContext.setTypeMapping(typeMapping);
   }
View Full Code Here

   private Object deserialize(QName xmlName, QName xmlType, String val, SerializationContext serContext) throws BindingException
   {
      if(log.isDebugEnabled()) log.debug("deserialize: [xmlName=" + xmlName + ",xmlType=" + xmlType + "]");

      // Expect the specific JAXRPC serialization context
      SerializationContextJAXRPC jaxrpcContext = (SerializationContextJAXRPC)serContext;

      Object value = null;

      try
      {
         // Get the parsed model
         XSModel model = jaxrpcContext.getXsModel();

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

         unmarshaller.setProperty(JBossXBConstants.JBXB_XS_MODEL, model);
         unmarshaller.setProperty(JBossXBConstants.JBXB_ROOT_QNAME, xmlName);
         unmarshaller.setProperty(JBossXBConstants.JBXB_TYPE_QNAME, xmlType);
         unmarshaller.setProperty(JBossXBConstants.JBXB_JAVA_MAPPING, jaxrpcMapping);
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.