private static QName getPortQName ( ClassInfo classInfo , String namespace , String wsName , String wsPortName , String suffix ) { String portName ; if ( wsPortName != null && ! wsPortName . isEmpty ( ) ) { portName = wsPortName . trim ( ) ; } else { if ( wsName != null && ! wsName . isEmpty ( ) ) { portName = wsName . trim ( ) ; } else { String qualifiedName = classInfo . getQualifiedName ( ) ; int lastDotIndex = qualifiedName . lastIndexOf ( "." ) ; portName = ( lastDotIndex == - 1 ? qualifiedName : qualifiedName . substring ( lastDotIndex + 1 ) ) ; } portName = portName + suffix ; } return new QName ( namespace , portName ) ; }
Get portName . 1 . declared portName in web service annotation 2 . name in web service annotation + Port 3 . service class name + Port .