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("/>"); } }
private String getHTTPLocation(String operationName) { for (Object bindingOperation : httpBinding.getBindingOperations()) { if (((BindingOperation) bindingOperation).getName().equals(operationName)) { List<Object> extElements = ((BindingOperation) bindingOperation).getExtensibilityElements(); if (extElements.size() == 0) { throw new RuntimeException(); } else if (extElements.size() > 1) { throw new RuntimeException(); } else { return ((HTTPOperation) extElements.get(0)).getLocationURI(); } } } throw new NullPointerException("HTTP Operation's location attribute is null."); }
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("/>"); } }
/** * An operation must have a location defined. A HTTP Binding must be specified to use an operation. * * @param element The HTTP operation element. * @param parents The list of parents of the HTTP operation element. * @param validatorcontroller The validator controller in charge of validation. */ protected void validateOperation(Object element, List parents, IWSDL11ValidationInfo valInfo) { HTTPOperation ho = (HTTPOperation)element; String locationURI = ho.getLocationURI(); if (locationURI != null && locationURI.equalsIgnoreCase(EMPTY_STRING)) { valInfo.addError(messagegenerator.getString(_ERROR_INVALID_LOCATION_URI), element); } Binding binding = (Binding)parents.get(1); if (!hasHttpBinding(binding)) { valInfo.addError( messagegenerator.getString(_ERROR_NO_HTTPBINDING_FOR_OPERATION, QUOTE + binding.getQName().getLocalPart() + QUOTE), ho); } }
if (boExtElement instanceof HTTPOperation) { HTTPOperation httpOperation = (HTTPOperation) boExtElement; if (!StringUtils.isBlank(httpOperation.getLocationURI())) { wsdlOperation = new WSDLOperation(); wsdlOperation.setVerb(verb); wsdlOperation.setURI(APIMWSDLUtils.replaceParentheses(httpOperation.getLocationURI())); if (log.isDebugEnabled()) { log.debug("Found HTTP Binding operation; name: " + bindingOperation.getName() + " ["
if (boExtElement instanceof HTTPOperation) { HTTPOperation httpOperation = (HTTPOperation) boExtElement; if (!StringUtils.isBlank(httpOperation.getLocationURI())) { wsdlOperation = new WSDLOperation(); wsdlOperation.setVerb(verb); wsdlOperation.setURI(APIMWSDLUtils.replaceParentheses(httpOperation.getLocationURI())); if (log.isDebugEnabled()) { log.debug("Found HTTP Binding operation; name: " + bindingOperation.getName() + " ["
AxisBindingOperation axisBindingOperation = (AxisBindingOperation) description; String httpLocation = httpOperation.getLocationURI(); if (httpLocation != null) {
AxisBindingOperation axisBindingOperation = (AxisBindingOperation) description; String httpLocation = httpOperation.getLocationURI(); if (httpLocation != null) {