* @param parents A list of parents of the SOAP binding element.
* @param valInfo The validation info for this validation.
*/
protected void validateBinding(Object element, List parents, IWSDL11ValidationInfo valInfo)
{
SOAPBindingImpl sb = (SOAPBindingImpl)element;
String style = sb.getStyle();
String uri = sb.getTransportURI();
if (style != null && !style.equalsIgnoreCase(RPC) && !style.equalsIgnoreCase(DOCUMENT))
{
valInfo.addError(
messagegenerator.getString(_ERROR_INVALID_BINDING_STYLE, QUOTE + sb.getStyle() + QUOTE), element);
}
if (uri.equalsIgnoreCase(EMPTY_STRING))
{
valInfo.addError(messagegenerator.getString(_ERROR_INVALID_BINDING_URI), element);
}