/** * Resolve interface and callback interface on a list of abstract contracts. * @param contracts the list of contracts * @param resolver the resolver to use to resolve models * @param context TODO */ protected <C extends AbstractContract> void resolveAbstractContracts(List<C> contracts, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { for (AbstractContract contract : contracts) { // Resolve the interface contract InterfaceContract interfaceContract = contract.getInterfaceContract(); if (interfaceContract != null) { extensionProcessor.resolve(interfaceContract, resolver, context); } } }
String contractName = contract.getName(); error(monitor, "NoWsdlInterface", wsBinding, component.getName(), contract.getName()); return null; if (!ok) { error(monitor, "PortTypeNotFound", wsBinding, portType.getQName().toString(), component.getName(), contract.getName()); if (!ok2) { error(monitor, "PortTypeNotFound", wsBinding, binding.getPortType().getQName().toString(), component.getName(), contract.getName()); component.getName(), contract.getName()); } else { error(monitor, "InvalidPort", wsBinding, serviceQName.toString(), portName, component.getName(), contract.getName()); component.getName(), contract.getName()); component.getName(), contract.getName()); String wsdlServiceName = contract.getName(); if (generatedWsdl) { wsdlServiceName = component.getURI().replace('/','_') + '_' + wsdlServiceName;
String contractName = contract.getName(); error(monitor, "NoWsdlInterface", wsBinding, component.getName(), contract.getName()); return null; if (!ok) { error(monitor, "PortTypeNotFound", wsBinding, portType.getQName().toString(), component.getName(), contract.getName()); if (!ok2) { error(monitor, "PortTypeNotFound", wsBinding, binding.getPortType().getQName().toString(), component.getName(), contract.getName()); component.getName(), contract.getName()); } else { error(monitor, "InvalidPort", wsBinding, serviceQName.toString(), portName, component.getName(), contract.getName()); component.getName(), contract.getName()); component.getName(), contract.getName()); String wsdlServiceName = contract.getName(); if (generatedWsdl) { wsdlServiceName = component.getURI().replace('/','_') + '_' + wsdlServiceName;
/** * Resolve interface and callback interface on a list of abstract contracts. * @param contracts the list of contracts * @param resolver the resolver to use to resolve models * @param context TODO */ protected <C extends AbstractContract> void resolveAbstractContracts(List<C> contracts, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { for (AbstractContract contract : contracts) { // Resolve the interface contract InterfaceContract interfaceContract = contract.getInterfaceContract(); if (interfaceContract != null) { extensionProcessor.resolve(interfaceContract, resolver, context); } } }
/** * Create an AxisService from the Java interface class of the SCA service interface */ public static AxisService createJavaAxisService(String endpointURL, ConfigurationContext configContext, AbstractContract contract) throws AxisFault { AxisService axisService = new AxisService(); String path = URI.create(endpointURL).getPath(); axisService.setName(path); axisService.setServiceDescription("Tuscany configured AxisService for service: " + endpointURL); axisService.setClientSide(false); Parameter classParam = new Parameter(Constants.SERVICE_CLASS, ((JavaInterface)contract.getInterfaceContract().getInterface()).getJavaClass().getName()); axisService.addParameter(classParam); try { Utils.fillAxisService(axisService, configContext.getAxisConfiguration(), null, null); } catch (Exception e) { throw new RuntimeException(e); } return axisService; }