jboss7.x - Can org.apache.cxf.service.factory.ReflectionServiceFactoryBean be configured to cache WSDLs? -


i using jboss 7.1.1 everytime ear makes soap request, takes 2 minutes while jboss creates each service required:

14:30:14,822 info  [org.apache.cxf.service.factory.reflectionservicefactorybean] (http--0.0.0.0-8081-3) creating service {http://services.discretewireless.com/v2009_1/}authenticationmanagerv1port wsdl: http://services.discretewireless.com/v2009_1/authenticationmanagerv1.wsdl 

instead of creating services @ runtime, once each time used, can configure somewhere doesn't have download wsdls , ...creating service...from wsdl:... each time 1 of beans makes soap request?

you can download wsdl before running client , make available in 2 different ways: first, cxf's wsdl2java generator lets fix location of wsdl (wsdllocation) on classpath, , wsdl can archived in same jar stubs. or, second, can instead pass url (referencing local file) service's constructor, url 'file://path...'


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -