public VasSubscriberService createVasSubscriberService ( String deliveryAddress ) { JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean ( ) ; factory . setServiceClass ( VasSubscriberService . class ) ; factory . setAddress ( deliveryAddress ) ; SoapBindingConfiguration conf = new SoapBindingConfiguration ( ) ; conf . setVersion ( Soap12 . getInstance ( ) ) ; factory . setBindingConfig ( conf ) ; factory . getFeatures ( ) . add ( new WSAddressingFeature ( ) ) ; VasSubscriberService vasSubscriberService = ( VasSubscriberService ) factory . create ( ) ; //Force the use of the Async transport, even for synchronous calls ( ( BindingProvider ) vasSubscriberService ) . getRequestContext ( ) . put ( "use.async.http.conduit" , Boolean . TRUE ) ; return vasSubscriberService ; }
Creates a vas subscriber web service proxy based on the delivery address .