(2.2.10) I'm using the code at the end to make a client endpoint, and
I get a load of the following:

0    [107049...@qtp-1033107170-0] ERROR
org.apache.cxf.service.factory.ReflectionServiceFactoryBean  - Schema
element {urn:basistech.com:jester}rniQueryResponse references
undefined type {urn:basistech.com:jester}rniQueryResponse for service
{urn:basistech.com:jester}JesterService.

There is a possible class loader problem here -- at least at the
moment, all this code is available in the system class path as well as
the webapp class path.


            Service service = Service.create(JESTER_WS_SERVICE_NAME);
            service.addPort(JESTER_WS_PORT_NAME,
SOAPBinding.SOAP11HTTP_BINDING, url);
            jesterClientWsProxy = service.getPort(Jester.class);
            if (System.getProperty("jester.log.wsclient") != null) {
                org.apache.cxf.endpoint.Client client =

org.apache.cxf.frontend.ClientProxy.getClient(jesterClientWsProxy);
                client.getInInterceptors().add(new LoggingInInterceptor());
                client.getOutInterceptors().add(new LoggingOutInterceptor());
            }
            BindingProvider bp = (BindingProvider)jesterClientWsProxy;
            bp.getRequestContext().put("thread.local.request.context", "true");
            SOAPBinding binding = (SOAPBinding)bp.getBinding();
            binding.setMTOMEnabled(true);

Reply via email to