Examples of XFireProxyFactory


Examples of org.codehaus.xfire.client.XFireProxyFactory

        assertValid("//detail/e:EchoFault/f:customMessage[text()='yo']", response);
    }
   
    public void testClient() throws Exception
    {
        XFireProxyFactory factory = new XFireProxyFactory(getXFire());
        EchoWithFault echo = (EchoWithFault) factory.create(service, "xfire.local://EchoWithFault");
       
        try
        {
            echo.echo("yo");
            fail("Should have thrown custom fault.");
View Full Code Here

Examples of org.codehaus.xfire.client.XFireProxyFactory

            if (endpoint != null) {
                client.getService().setProperty(JbiChannel.JBI_ENDPOINT, endpoint);
            }
            client.getService().setProperty(JbiChannel.JBI_SECURITY_PROPAGATATION,
                    Boolean.valueOf(propagateSecurityContext));
            XFireProxyFactory xpf = new XFireProxyFactory(xfire);
            proxy = xpf.create(client);
        }
        return proxy;
    }
View Full Code Here

Examples of org.codehaus.xfire.client.XFireProxyFactory

  public Object createProxy(Class api)
  {
    try {
      Service service = new ObjectServiceFactory().create(api);

      return new XFireProxyFactory().create(service, _url);
    }
    catch (Exception e) {
      throw ConfigException.create(e);
    }
  }
View Full Code Here

Examples of org.codehaus.xfire.client.XFireProxyFactory

                client.getService().setProperty(JbiChannel.JBI_SERVICE_NAME, serviceName);
            }
            if (endpoint != null) {
                client.getService().setProperty(JbiChannel.JBI_ENDPOINT, endpoint);
            }
            XFireProxyFactory xpf = new XFireProxyFactory(xfire);
            proxy = xpf.create(client);
        }
        return proxy;
    }
View Full Code Here

Examples of org.codehaus.xfire.client.XFireProxyFactory

            }
            if (endpoint != null) {
                client.getService().setProperty(JbiChannel.JBI_ENDPOINT, endpoint);
            }
            client.getService().setProperty(JbiChannel.JBI_SECURITY_PROPAGATATION, Boolean.valueOf(propagateSecurityContext));
            XFireProxyFactory xpf = new XFireProxyFactory(xfire);
            proxy = xpf.create(client);
        }
        return proxy;
    }
View Full Code Here

Examples of org.codehaus.xfire.client.XFireProxyFactory

        this.factory = factory;
    }

    protected XFireProxyFactory getXFireProxyFactory()
    {
        return new XFireProxyFactory(getXFire());
    }
View Full Code Here

Examples of org.codehaus.xfire.client.XFireProxyFactory

        }

        String serviceUrl = getUrl();
        if (serviceUrl != null)
        {
            return new XFireProxyFactory().create(serviceModel, serviceUrl);
        }
       
        if (_endpointName == null)
        {
            _endpointName = findFirstSoapEndpoint(serviceModel.getEndpoints());
        }
       
        if (_endpointName != null)
        {
            Endpoint ep = serviceModel.getEndpoint(_endpointName);
            if (ep == null)
                throw new IllegalStateException("Could not find endpoint with name " + _endpointName + " on service.");
           
            return new XFireProxyFactory().create(ep);
        }
        else
            throw new IllegalStateException("A WSDL URL or service URL must be supplied.");
    }
View Full Code Here

Examples of org.codehaus.xfire.client.XFireProxyFactory

        {
            throw new IllegalArgumentException("serviceUrl is required");
        }
        if (this.proxyFactory == null)
        {
            this.proxyFactory = new XFireProxyFactory(getXfire());
        }
        this.xFireProxy = createXFireProxy(this.proxyFactory);
    }
View Full Code Here

Examples of org.codehaus.xfire.client.XFireProxyFactory

  public Object createProxy(Class api)
  {
    try {
      Service service = new ObjectServiceFactory().create(api);

      return new XFireProxyFactory().create(service, _url);
    }
    catch (Exception e) {
      throw ConfigException.create(e);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.