if (serviceMetaData == null)
throw new WebServiceException("Service meta data not available");
// com/sun/ts/tests/jaxws/api/javax_xml_ws/Service#GetPort1NegTest1WithWsdl
EndpointMetaData epMetaData = serviceMetaData.getEndpoint(portName);
if (serviceMetaData.getEndpoints().size() > 0 && epMetaData == null)
throw new WebServiceException("Cannot get port meta data for: " + portName);
// This is the case when the service could not be created from wsdl
if (serviceMetaData.getEndpoints().size() == 0)
{
log.warn("Cannot get port meta data for: " + portName);
QName portType = getPortTypeName(seiClass);
epMetaData = new ClientEndpointMetaData(serviceMetaData, portName, portType, Type.JAXWS);
}
String seiClassName = seiClass.getName();
epMetaData.setServiceEndpointInterfaceName(seiClassName);
return getPortInternal(epMetaData, seiClass);
}