}
model.addServiceClass(name, sclz);
}
private JavaPort processPort(JavaModel model, Port port) throws ToolException {
JavaPort jport = new JavaPort(port.getName());
Binding binding = port.getBinding();
// TODO: extend other bindings
jport.setBindingAdress(getPortAddress(port));
jport.setBindingName(binding.getQName().getLocalPart());
String namespace = binding.getPortType().getQName().getNamespaceURI();
String packageName = ProcessorUtil.parsePackageName(namespace, env.mapPackageName(namespace));
jport.setPackageName(packageName);
String portType = binding.getPortType().getQName().getLocalPart();
jport.setPortType(portType);
jport.setInterfaceClass(ProcessorUtil.mangleNameToClassName(portType));
bindingType = getBindingType(binding);
if (bindingType == null) {
org.objectweb.celtix.common.i18n.Message msg =
new org.objectweb.celtix.common.i18n.Message("BINDING_SPECIFY_ONE_PROTOCOL",
LOG,
binding.getQName());
throw new ToolException(msg);
}
if (isSoapBinding()) {
SOAPBinding spbd = (SOAPBinding)this.bindingObj;
jport.setStyle(getSoapStyle(spbd.getStyle()));
jport.setTransURI(spbd.getTransportURI());
}
/*
* if (bindingType.name().equals("HTTPBinding")) { // TBD }
*/