return new ServiceInfo(serviceDesc, handlerInfos, wsdlMap);
}
public static JavaServiceDesc createServiceDesc(PortInfo portInfo, ClassLoader classLoader) throws DeploymentException {
Port port = portInfo.getPort();
Class serviceEndpointInterface = null;
try {
serviceEndpointInterface = classLoader.loadClass(portInfo.getServiceEndpointInterfaceName());
} catch (ClassNotFoundException e) {
throw (DeploymentException) new DeploymentException("Unable to load the service-endpoint interface for port-component " + portInfo.getPortComponentName()).initCause(e);
}
Map exceptionMap = WSDescriptorParser.getExceptionMap(portInfo.getJavaWsdlMapping());
SchemaInfoBuilder schemaInfoBuilder = portInfo.getSchemaInfoBuilder();
Map schemaTypeKeyToSchemaTypeMap = schemaInfoBuilder.getSchemaTypeKeyToSchemaTypeMap();
JavaServiceDesc serviceDesc = new JavaServiceDesc();
String location = getAddressLocation(port);
serviceDesc.setEndpointURL(location);
serviceDesc.setWSDLFile(portInfo.getWsdlLocation());
Binding binding = port.getBinding();
serviceDesc.setStyle(getStyle(binding));
BindingInput bindingInput = ((BindingOperation) binding.getBindingOperations().get(0)).getBindingInput();