Package org.jboss.ws.feature

Examples of org.jboss.ws.feature.FastInfosetFeature


   {
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-fastinfoset?wsdl");
      QName serviceName = new QName("http://org.jboss.ws/fastinfoset", "FastInfosetEndpointService");
      Service service = Service.create(wsdlURL, serviceName);

      FastInfosetFeature feature = new FastInfosetFeature();
      FastInfoset port = service.getPort(FastInfoset.class, feature);
      String retStr = port.echo("hello world");
      assertEquals("hello world", retStr);
   }
View Full Code Here


     
      Element srcEnv = DOMUtils.parse(srcXML);
      ByteArrayInputStream bais = getFastInputStream(srcXML);

      MessageFactoryImpl factory = new MessageFactoryImpl();
      factory.addFeature(new FastInfosetFeature());
      SOAPMessage soapMessage = factory.createMessage(null, bais);
      SOAPEnvelope resEnv = soapMessage.getSOAPPart().getEnvelope();
      assertEquals(srcEnv, resEnv);
   }
View Full Code Here

   {
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-fastinfoset?wsdl");
      QName serviceName = new QName("http://org.jboss.ws/fastinfoset", "FastInfosetEndpointService");
      Service service = Service.create(wsdlURL, serviceName);

      FastInfosetFeature feature = new FastInfosetFeature();
      FastInfoset port = service.getPort(FastInfoset.class, feature);
      String retStr = port.echo("hello world");
      assertEquals("hello world", retStr);
   }
View Full Code Here

               processSchemaValidation(dep, sepMetaData, sepClass);
            }
            else if (an.annotationType() == FastInfoset.class)
            {
               FastInfoset anFeature = sepClass.getAnnotation(FastInfoset.class);
               FastInfosetFeature feature = new FastInfosetFeature(anFeature.enabled());
               sepMetaData.addFeature(feature);
            }
            else if (an.annotationType() == JsonEncoding.class)
            {
               JsonEncoding anFeature = sepClass.getAnnotation(JsonEncoding.class);
View Full Code Here

            processSchemaValidation(dep, sepMetaData, sepClass);
         }
         else if (an.annotationType() == FastInfoset.class)
         {
            FastInfoset anFeature = sepClass.getAnnotation(FastInfoset.class);
            FastInfosetFeature feature = new FastInfosetFeature(anFeature.enabled());
            sepMetaData.addFeature(feature);
         }
         else if (an.annotationType() == JsonEncoding.class)
         {
            JsonEncoding anFeature = sepClass.getAnnotation(JsonEncoding.class);
View Full Code Here

            processSchemaValidation(dep, sepMetaData, sepClass);
         }
         else if (an.annotationType() == FastInfoset.class)
         {
            FastInfoset anFeature = sepClass.getAnnotation(FastInfoset.class);
            FastInfosetFeature feature = new FastInfosetFeature(anFeature.enabled());
            sepMetaData.addFeature(feature);
         }
         else if (an.annotationType() == JsonEncoding.class)
         {
            JsonEncoding anFeature = sepClass.getAnnotation(JsonEncoding.class);
View Full Code Here

TOP

Related Classes of org.jboss.ws.feature.FastInfosetFeature

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.