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

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

Introduction

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

Prototype

@Override
    @Nullable
    public Object getObject() 

Source Link

Usage

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

@Bean
public PersonService personService(JaxWsPortProxyFactoryBean jaxWsPortProxyFactoryBean) {
    return (PersonService) jaxWsPortProxyFactoryBean.getObject();
}

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  .ja  v  a 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);
    }

}