// Build endpoint meta data
for (WSDLEndpoint wsdlEndpoint : wsdlService.getEndpoints())
{
QName portName = wsdlEndpoint.getName();
QName interfaceQName = wsdlEndpoint.getInterface().getName();
ClientEndpointMetaData epMetaData = new ClientEndpointMetaData(serviceMetaData, portName, interfaceQName, Type.JAXRPC);
epMetaData.setEndpointAddress(wsdlEndpoint.getAddress());
serviceMetaData.addEndpoint(epMetaData);
// config-name, config-file
if (serviceRefMetaData != null)
{
String configName= serviceRefMetaData.getConfigName();
String configFile = serviceRefMetaData.getConfigFile();
if (configName != null || configFile != null)
epMetaData.setConfigName(configName, configFile);
}
// Init the endpoint binding
initEndpointBinding(wsdlEndpoint, epMetaData);
// Init the service encoding style
initEndpointEncodingStyle(epMetaData);
ServiceEndpointInterfaceMapping seiMapping = null;
if (javaWsdlMapping != null)
{
QName portType = wsdlEndpoint.getInterface().getName();
seiMapping = javaWsdlMapping.getServiceEndpointInterfaceMappingByPortType(portType);
if (seiMapping != null)
{
epMetaData.setServiceEndpointInterfaceName(seiMapping.getServiceEndpointInterface());
}
else
{
log.warn("Cannot obtain the SEI mapping for: " + portType);
}