java - Generating a SOAP client with Apache CXF 3.1.1 -


to generate client code, used follow command:

wsdl2java -client helloworld.wsdl 

this generated java files , it's working without errors but, unfortunately, slowly, 2 seconds each call.

in soap ui, same web service method called in 200ms.

i noticed on logs org.apache.cxf.service.factory.reflectionservicefactorybean buildservicefromwsdl being called each time call service. seems software recreating client wsdl each time. happens when keep service objects created.

how can stop this? did wrong?

i discovered problem.

each time call myservice.getport(), wsdl parsed. so, create port once , reuse through application.

now client fast!


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -