StringTokenizer st = new StringTokenizer(qns, ",@", true);
while (st.hasMoreTokens()) {
String t = st.nextToken();
if (",".equals(t)) {
if (portName != null) {
throw new ResourceAdapterInternalException(
"portName already set, string is not in expected format:"
+ " [{namespace}]serviceName[,portName][@ wsdl location url]. value:"
+ qns);
}
portName = st.nextToken();
if ("@".equals(portName)) {
throw new ResourceAdapterInternalException(
"Empty portName, string is not in expected format: "
+ "[{namespace}]serviceName[,portName][@ wsdl location url]. value:"
+ qns);
}
}
}
} catch (java.util.NoSuchElementException nsee) {
throw new ResourceAdapterInternalException(
"Incomplete QName, string is not in expected format: "
+ "[{namespace}]serviceName[,portName][@ wsdl location url]. value:"
+ qns, nsee);
}
return portName;