>From the source code it seems that you're prividing service name, port name
or binding which does not exists in WSDL. 

javax.wsdl.Service wsdlService = definition.getService(serviceName);
            if (wsdlService == null) {
                if ((!PartialWSDLProcessor.isServiceExisted(definition,
serviceName))
                    && (!PartialWSDLProcessor.isBindingExisted(definition,
serviceName))
                    && (PartialWSDLProcessor.isPortTypeExisted(definition,
serviceName))) {
                    try {
                        Map<QName, PortType> portTypes =
CastUtils.cast(definition.getPortTypes());
                        String existPortName = null;
                        PortType portType = null;
                        for (QName existPortQName : portTypes.keySet()) {
                            existPortName = existPortQName.getLocalPart();
                            if
(serviceName.getLocalPart().contains(existPortName)) {
                                portType = portTypes.get(existPortQName);
                                break;
                            }
                        }
                        WSDLFactory factory = WSDLFactory.newInstance();
                        ExtensionRegistry extReg =
factory.newPopulatedExtensionRegistry();
                        Binding binding =
PartialWSDLProcessor.doAppendBinding(definition, 
                                                                              
existPortName, portType, extReg);
                        definition.addBinding(binding);
                        wsdlService =
PartialWSDLProcessor.doAppendService(definition, 
                                                                          
existPortName, extReg, binding);
                        definition.addService(wsdlService);
                    } catch (Exception e) {
                        throw new ServiceConstructionException(new
Message("NO_SUCH_SERVICE_EXC", LOG, serviceName));
                    }
                } else {
                    throw new ServiceConstructionException(new
Message("NO_SUCH_SERVICE_EXC", LOG, serviceName));
                }
            }

Key for messaeg NO_SUCH_SERVICE_EXC is NO_SUCH_SERVICE_EXC = Could not find
definition for service {0}. - which is exactly what you're receiving. 

My recommendation is to debug if possible and/or check the names. 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Problem-configuring-route-tp5758581p5758586.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to