cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew <>
Subject Why are Services created reflectively?
Date Wed, 11 Feb 2015 17:48:57 GMT

I'm trying to understand how CXF works. I want to consume a web service
using the JAX-WS front-end. So, I am writing a client to call an existing
web service (Contract First). I've used wsdl2java to generate what I
understand to be the classes that will produce the SOAP message that will go
over the wire. (Is this understanding correct?) 

I've written a small class that successfully calls a web service by invoking
the methods in the classes generated by wsdl2java. (So essentially I've
worked through the CXF wsdl_first sample.)

Here's the thing: both in my implementation and in the wsdl_first sample I'm

Feb 11, 2015 1:00:00 PM
INFO: Creating Service
{}CustomerServiceService from WSDL:

What exactly is being generated by ReflectionServiceFactoryBean, from the
WSDL? Why is it being generated at run time? Did I not generate everything I
needed to when I ran wsdl2java? If not, what is the purpose of the classes
generated by calling wsdl2java, and what is the purpose of whatever is being
generated reflectively at run time?

The web service I am calling uses features like WS-SecurityPolicy and
WS-Addressing, so I don't think it's realistic for me to use a front-end
other than JAX-WS. Given this, can I avoid this reflective generation of
whatever is being generated?

Many thanks,

View this message in context:
Sent from the cxf-user mailing list archive at

View raw message