Example usage for org.springframework.remoting.jaxws JaxWsPortProxyFactoryBean setServiceInterface

List of usage examples for org.springframework.remoting.jaxws JaxWsPortProxyFactoryBean setServiceInterface

Introduction

In this page you can find the example usage for org.springframework.remoting.jaxws JaxWsPortProxyFactoryBean setServiceInterface.

Prototype

public void setServiceInterface(@Nullable Class<?> serviceInterface) 

Source Link

Document

Set the interface of the service that this factory should create a proxy for.

Usage

From source file:com.sybase365.mobiliser.custom.project.client.WeatherTargetSource.java

@Override
protected WeatherSoap instantiate() {

    final ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();

    try {//  w w w. j a  va 2  s .c o  m
        Thread.currentThread().setContextClassLoader(this.classLoader);

        final JaxWsPortProxyFactoryBean jaxWsProxyFactory = new JaxWsPortProxyFactoryBean();
        jaxWsProxyFactory.setBeanClassLoader(this.classLoader);
        jaxWsProxyFactory.setServiceInterface(WeatherSoap.class);
        jaxWsProxyFactory.setServiceName("WeatherSoap");
        jaxWsProxyFactory.setEndpointAddress(
                this.node.get("service.url", "http://wsf.cdyne.com/WeatherWS/Weather.asmx"));
        jaxWsProxyFactory.afterPropertiesSet();

        return (WeatherSoap) jaxWsProxyFactory.getObject();
    } finally {
        Thread.currentThread().setContextClassLoader(contextClassLoader);
    }

}

From source file:ph.com.fsoft.temp.service.red.ServiceClientConfiguration.java

@Bean
public JaxWsPortProxyFactoryBean jaxWsPortProxyFactoryBean() throws MalformedURLException {
    JaxWsPortProxyFactoryBean jaxWsPortProxyFactoryBean;
    jaxWsPortProxyFactoryBean = new JaxWsPortProxyFactoryBean();
    jaxWsPortProxyFactoryBean.setWsdlDocumentUrl(new URL("http://localhost:8082/blue/api/soap/person?wsdl"));
    jaxWsPortProxyFactoryBean.setServiceName("PersonServiceSoapEndpointService");
    jaxWsPortProxyFactoryBean.setPortName("PersonServiceSoapEndpointPort");
    jaxWsPortProxyFactoryBean.setNamespaceUri("http://soap.endpoint.blue.service.temp.fsoft.com.ph/");
    jaxWsPortProxyFactoryBean.setServiceInterface(PersonService.class);
    return jaxWsPortProxyFactoryBean;
}