camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "artur.chyzy" <artur.ch...@gmail.com>
Subject Re: Problem configuring route
Date Thu, 06 Nov 2014 09:27:50 GMT
>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.

Mime
View raw message