Package org.codehaus.xfire.wsdl11.builder

Examples of org.codehaus.xfire.wsdl11.builder.WSDLBuilderExtension


    }
   
    public void testSimpleType()
        throws Exception
    {
        WSDLServiceBuilder builder = new WSDLServiceBuilder(getResourceAsStream("echoSimpleType.wsdl"));
        builder.setBindingProvider(new MessageBindingProvider());
        builder.build();
       
        Collection services = builder.getAllServices();       
        assertEquals(1, services.size());
       
        Service service = (Service) services.iterator().next();
       
        assertFalse(service.getServiceInfo().isWrapped());
View Full Code Here


    }
   
    public void testEmptyWrappedResponse()
        throws Exception
    {
        WSDLServiceBuilder builder = new WSDLServiceBuilder(getResourceAsStream("emptyWrappedResponse.wsdl"));
        builder.setBindingProvider(new MessageBindingProvider());
        builder.build();
       
        Collection services = builder.getAllServices();       
        assertEquals(1, services.size());
       
        Service service = (Service) services.iterator().next();
       
        assertTrue(service.getServiceInfo().isWrapped());
View Full Code Here

        assertEquals(0, parts.size());
    }
    public void testSimpleVisitor()
        throws Exception
    {
        WSDLServiceBuilder builder = new WSDLServiceBuilder(getResourceAsStream("echoSimple.wsdl"));
        builder.setBindingProvider(new MessageBindingProvider());
        builder.build();
       
        Collection services = builder.getAllServices();       
        assertEquals(1, services.size());
       
        Service service = (Service) services.iterator().next();
       
        QName name = service.getName();
View Full Code Here

    }
   
    public void testXsdChoice()
      throws Exception
  {
      WSDLServiceBuilder builder = new WSDLServiceBuilder(getResourceAsStream("echo-xsd-choice.wsdl"));
      builder.setBindingProvider(new MessageBindingProvider());
      builder.build();
     
      Collection services = builder.getAllServices();       
      assertEquals(1, services.size());
     
      Service service = (Service) services.iterator().next();
     
      QName name = service.getName();
View Full Code Here

  }
   
    public void testUnboundedResponse()
      throws Exception
  {
      WSDLServiceBuilder builder = new WSDLServiceBuilder(getResourceAsStream("echoWrappedList.wsdl"));
      builder.setBindingProvider(new MessageBindingProvider());
      builder.build();
     
      Collection services = builder.getAllServices();       
      assertEquals(1, services.size());
     
      Service service = (Service) services.iterator().next();
     
      QName name = service.getName();
View Full Code Here

   

    public void testAnonymousInner()
      throws Exception
  {
      WSDLServiceBuilder builder = new WSDLServiceBuilder(getResourceAsStream("echoAnonymousType.wsdl"));
      builder.setBindingProvider(new MessageBindingProvider());
      builder.build();
     
      Collection services = builder.getAllServices();       
      assertEquals(1, services.size());
     
      Service service = (Service) services.iterator().next();
     
      QName name = service.getName();
View Full Code Here

    extends AbstractXFireTest
{
    public void testVisitor()
        throws Exception
    {
        WSDLServiceBuilder builder = new WSDLServiceBuilder(getResourceAsStream("extendedWrappedTypes.wsdl"));
        builder.setBindingProvider(new MessageBindingProvider());
        builder.build();
       
        Map serviceMap = builder.getServices();
        assertEquals(1, serviceMap.size());
       
        Collection services = builder.getAllServices();       
        assertEquals(1, services.size());
       
        Service service = (Service) services.iterator().next();
       
        Collection operations = service.getServiceInfo().getOperations();
View Full Code Here

    extends AbstractXFireTest
{
    public void testVisitor()
        throws Exception
    {
        WSDLServiceBuilder builder = new WSDLServiceBuilder(getResourceAsStream("echoWrapped.wsdl"));
        builder.setBindingProvider(new MessageBindingProvider());
        builder.build();
       
        Collection services = builder.getAllServices();       
        assertEquals(1, services.size());
       
        Service service = (Service) services.iterator().next();
        Collection operations = service.getServiceInfo().getOperations();
        assertEquals(1, operations.size());
View Full Code Here

    }
   
    public void testBadWrapped()
        throws Exception
    {
        WSDLServiceBuilder builder = new WSDLServiceBuilder(getResourceAsStream("echoBadWrapped.wsdl"));
        builder.setBindingProvider(new MessageBindingProvider());
        builder.build();
       
        Collection services = builder.getAllServices();       
        assertEquals(1, services.size());
       
        Service service = (Service) services.iterator().next();
        Collection operations = service.getServiceInfo().getOperations();
        assertEquals(1, operations.size());
View Full Code Here

            throws Exception
    {
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        getWSDL("Echo").write(bos);

        WSDLServiceBuilder builder = new WSDLServiceBuilder(new ByteArrayInputStream(bos.toByteArray()));
        builder.setTransportManager(getTransportManager());
        builder.build();
       
        Service service = (Service) builder.getAllServices().iterator().next();
        assertTrue(service.getBindingProvider() instanceof AegisBindingProvider);
        AbstractSoapBinding binding = (AbstractSoapBinding) service.getBindings().iterator().next();
       
        Client client = new Client(binding, "xfire.local://" + service.getSimpleName());
        client.setXFire(getXFire());
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.wsdl11.builder.WSDLBuilderExtension

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.