public void marshall(Class parentType, QName elementType, ExtensibilityElement extension, PrintWriter pw, Definition def, ExtensionRegistry extReg) throws WSDLException { HTTPOperation httpOperation = (HTTPOperation)extension; if (httpOperation != null) { String tagName = DOMUtils.getQualifiedValue(HTTPConstants.NS_URI_HTTP, "operation", def); pw.print(" <" + tagName); DOMUtils.printAttribute(Constants.ATTR_LOCATION, httpOperation.getLocationURI(), pw); Boolean required = httpOperation.getRequired(); if (required != null) { DOMUtils.printQualifiedAttribute(Constants.Q_ATTR_REQUIRED, required.toString(), def, pw); } pw.println("/>"); } }
public void marshall(Class parentType, QName elementType, ExtensibilityElement extension, PrintWriter pw, Definition def, ExtensionRegistry extReg) throws WSDLException { HTTPOperation httpOperation = (HTTPOperation)extension; if (httpOperation != null) { String tagName = DOMUtils.getQualifiedValue(HTTPConstants.NS_URI_HTTP, "operation", def); pw.print(" <" + tagName); DOMUtils.printAttribute(Constants.ATTR_LOCATION, httpOperation.getLocationURI(), pw); Boolean required = httpOperation.getRequired(); if (required != null) { DOMUtils.printQualifiedAttribute(Constants.Q_ATTR_REQUIRED, required.toString(), def, pw); } pw.println("/>"); } }