public void accept(WSDLDocumentVisitor visitor) throws Exception { visitor.preVisit(this); _helper.accept(visitor); for (Iterator iter = _operations.iterator(); iter.hasNext();) { ((Operation) iter.next()).accept(visitor); } visitor.postVisit(this); }
public void validateThis() { if (_name == null) { failValidation("validation.missingRequiredAttribute", "name"); } if (_style == null) { failValidation("validation.missingRequiredProperty", "style"); } // verify operation style if (_style == OperationStyle.ONE_WAY) { if (_input == null) { failValidation("validation.missingRequiredSubEntity", "input"); } if (_output != null) { failValidation("validation.invalidSubEntity", "output"); } if (_faults != null && _faults.size() != 0) { failValidation("validation.invalidSubEntity", "fault"); } } else if (_style == OperationStyle.NOTIFICATION) { if (_parameterOrder != null) { failValidation("validation.invalidAttribute", "parameterOrder"); } } }
if (o.getInput().getAction() != null && !o.getInput().getAction().equals("")) { actionAnn.param("input", o.getInput().getAction()); if (o.getOutput() != null && o.getOutput().getAction() != null && !o.getOutput().getAction().equals("")) { actionAnn.param("output", o.getOutput().getAction()); if (o.getFaults() != null && o.getFaults().size() > 0) { Map<String, JClass> map = o.getFaults(); JAnnotationArrayMember jam = null; for (Fault f : o.faults()) { if (f.getAction() == null) continue;
Operation operation = new Operation(forest.locatorTable.getStartLocation(e)); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); operation.setName(name); String parameterOrderAttr = XmlUtil.getAttributeOrNull(e, Constants.ATTR_PARAMETER_ORDER); operation.setParameterOrder(parameterOrderAttr); if(operation.getDocumentation() == null) operation.setDocumentation(getDocumentationFor(e2)); } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_INPUT)) { if (gotInput) { XmlUtil.getAttributeOrNull(e2, Constants.ATTR_NAME); input.setName(nameAttr); operation.setInput(input); gotInput = true; if (gotOutput) { XmlUtil.getAttributeOrNull(e2, Constants.ATTR_NAME); output.setName(nameAttr); operation.setOutput(output); gotOutput = true; if (gotInput) { XmlUtil.getAttributeOrNull(e2, Constants.ATTR_NAME); fault.setName(nameAttr); operation.addFault(fault); gotFault = true;
info.portTypeOperation.getDocumentation()); if (info.portTypeOperation.getStyle() != OperationStyle.REQUEST_RESPONSE && info.portTypeOperation.getStyle() != OperationStyle.ONE_WAY) { if (options.isExtensionMode()) { warning(info.portTypeOperation, ModelerMessages.WSDLMODELER_WARNING_IGNORING_OPERATION_NOT_SUPPORTED_STYLE(info.portTypeOperation.getName())); return null; } else { error(info.portTypeOperation, ModelerMessages.WSDLMODELER_INVALID_OPERATION_NOT_SUPPORTED_STYLE(info.portTypeOperation.getName(), info.port.resolveBinding(document).resolvePortType(document).getName()));
(com.sun.tools.ws.wsdl.document.Operation) iter.next(); if (operationNames.contains(operation.getName())) { hasOverloadedOperations = true; break; operationNames.add(operation.getName()); (BindingOperation) itr.next(); if (operation .getName() .equals(bindingOperation.getName())) { break; } else if (!itr.hasNext()) { error(bindingOperation, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_NOT_FOUND(operation.getName(), bindingOperation.getName())); .equals(candidateOperation.getInput().getName()) && expectedOutputName.equals( candidateOperation .getOutput() .getName())) { if (found) {
parseMethod(context, jaxwsBinding, e2); if((jaxwsBinding.getMethodName() != null) && (jaxwsBinding.getMethodName().getJavaDoc() != null)){ parent.setDocumentation(new Documentation(jaxwsBinding.getMethodName().getJavaDoc())); parent.addExtension(jaxwsBinding); context.pop();
protected void handleLiteralSOAPFault(Response response, Set duplicateNames) { for (BindingFault bindingFault : info.bindingOperation.faults()) { com.sun.tools.ws.wsdl.document.Fault portTypeFault = null; for (com.sun.tools.ws.wsdl.document.Fault aFault : info.portTypeOperation.faults()) { if (aFault.getName().equals(bindingFault.getName())) { if (portTypeFault != null) { for ( com.sun.tools.ws.wsdl.document.Fault portTypeFault : info.portTypeOperation.faults()) { warning(portTypeFault,ModelerMessages.WSDLMODELER_INVALID_PORT_TYPE_FAULT_NOT_FOUND(portTypeFault.getName(),info.portTypeOperation.getName())); warning(faultPart, ModelerMessages.WSDLMODELER_DUPLICATE_FAULT_SOAP_NAME(portTypeFault.getName(), info.portTypeOperation.getName(), faultPart.getName())); continue;
private Operation createAsyncOperation(Operation syncOperation, StyleAndUse styleAndUse, AsyncOperationType asyncType) { boolean isRequestResponse = info.portTypeOperation.getStyle() == OperationStyle.REQUEST_RESPONSE; if (!isRequestResponse) { return null; info.portTypeOperation.getDocumentation());
protected com.sun.tools.ws.wsdl.document.Message getInputMessage() { return info.portTypeOperation.getInput().resolveMessage(info.document); }
public QName getWSDLElementName() { return getElementName(); }
for( BindingFault bindingFault : info.bindingOperation.faults() ) { com.sun.tools.ws.wsdl.document.Fault portTypeFault = null; for (com.sun.tools.ws.wsdl.document.Fault aFault : info.portTypeOperation.faults()) { if (aFault.getName().equals(bindingFault.getName())) { if (portTypeFault != null) {
Operation operation = new Operation(forest.locatorTable.getStartLocation(e)); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); operation.setName(name); String parameterOrderAttr = XmlUtil.getAttributeOrNull(e, Constants.ATTR_PARAMETER_ORDER); operation.setParameterOrder(parameterOrderAttr); if(operation.getDocumentation() == null) operation.setDocumentation(getDocumentationFor(e2)); } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_INPUT)) { if (gotInput) { XmlUtil.getAttributeOrNull(e2, Constants.ATTR_NAME); input.setName(nameAttr); operation.setInput(input); gotInput = true; if (gotOutput) { XmlUtil.getAttributeOrNull(e2, Constants.ATTR_NAME); output.setName(nameAttr); operation.setOutput(output); gotOutput = true; if (gotInput) { XmlUtil.getAttributeOrNull(e2, Constants.ATTR_NAME); fault.setName(nameAttr); operation.addFault(fault); gotFault = true;
info.portTypeOperation.getDocumentation()); if (info.portTypeOperation.getStyle() != OperationStyle.REQUEST_RESPONSE && info.portTypeOperation.getStyle() != OperationStyle.ONE_WAY) { if (options.isExtensionMode()) { warning(info.portTypeOperation, ModelerMessages.WSDLMODELER_WARNING_IGNORING_OPERATION_NOT_SUPPORTED_STYLE(info.portTypeOperation.getName())); return null; } else { error(info.portTypeOperation, ModelerMessages.WSDLMODELER_INVALID_OPERATION_NOT_SUPPORTED_STYLE(info.portTypeOperation.getName(), info.port.resolveBinding(document).resolvePortType(document).getName()));
(com.sun.tools.ws.wsdl.document.Operation) iter.next(); if (operationNames.contains(operation.getName())) { hasOverloadedOperations = true; break; operationNames.add(operation.getName()); (BindingOperation) itr.next(); if (operation .getName() .equals(bindingOperation.getName())) { break; } else if (!itr.hasNext()) { error(bindingOperation, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_NOT_FOUND(operation.getName(), bindingOperation.getName())); .equals(candidateOperation.getInput().getName()) && expectedOutputName.equals( candidateOperation .getOutput() .getName())) { if (found) {
parseMethod(context, jaxwsBinding, e2); if((jaxwsBinding.getMethodName() != null) && (jaxwsBinding.getMethodName().getJavaDoc() != null)){ parent.setDocumentation(new Documentation(jaxwsBinding.getMethodName().getJavaDoc())); parent.addExtension(jaxwsBinding); context.pop();
protected void handleLiteralSOAPFault(Response response, Set duplicateNames) { for (BindingFault bindingFault : info.bindingOperation.faults()) { com.sun.tools.ws.wsdl.document.Fault portTypeFault = null; for (com.sun.tools.ws.wsdl.document.Fault aFault : info.portTypeOperation.faults()) { if (aFault.getName().equals(bindingFault.getName())) { if (portTypeFault != null) { for ( com.sun.tools.ws.wsdl.document.Fault portTypeFault : info.portTypeOperation.faults()) { warning(portTypeFault,ModelerMessages.WSDLMODELER_INVALID_PORT_TYPE_FAULT_NOT_FOUND(portTypeFault.getName(),info.portTypeOperation.getName())); warning(faultPart, ModelerMessages.WSDLMODELER_DUPLICATE_FAULT_SOAP_NAME(portTypeFault.getName(), info.portTypeOperation.getName(), faultPart.getName())); continue;
private Operation createAsyncOperation(Operation syncOperation, StyleAndUse styleAndUse, AsyncOperationType asyncType) { boolean isRequestResponse = info.portTypeOperation.getStyle() == OperationStyle.REQUEST_RESPONSE; if (!isRequestResponse) { return null; info.portTypeOperation.getDocumentation());
protected com.sun.tools.ws.wsdl.document.Message getInputMessage() { return info.portTypeOperation.getInput().resolveMessage(info.document); }
public QName getWSDLElementName() { return getElementName(); }