portType.addOperation(op);
op.setInput(input); op.setOutput(output); portType.addOperation(op);
private Operation generateOperation(String name, boolean isDuplicate) { Operation op = definition.createOperation(); if (isDuplicate) { // Replace '.' in the scoping name with '_'. This results in the final // operation name being more readable (otherwise generated code removes // the '.' and merges all of the scoping names together) String prefix = getScope().toString().replace('.', '_'); name = prefix + "_" + name; } op.setName(name); op.setUndefined(false); portType.addOperation(op); return op; }
private String getOperationOnly(List<Operation> operations, Definition definition) { try { Definition tempDefinition = WSDLComparisonUtils.getWSDLDefinition(); PortType portType = tempDefinition.createPortType(); portType.setUndefined(false); portType.setQName(new QName(definition.getTargetNamespace(), "temp")); for (Operation operation : operations) { portType.addOperation(operation); } tempDefinition.addPortType(portType); WSDLComparisonUtils.copyNamespaces(definition, tempDefinition); String content = WSDLComparisonUtils.getWSDLWithoutDeclaration(tempDefinition); content = content.substring(content.indexOf(">") + 2); return content.replace("</wsdl:portType>", ""); } catch (WSDLException e) { log.error(e); } return null; }
private Operation generateOperation(String name, Message inputMsg, Message outputMsg) { Input input = definition.createInput(); input.setName(inputMsg.getQName().getLocalPart()); input.setMessage(inputMsg); Output output = definition.createOutput(); output.setName(outputMsg.getQName().getLocalPart()); output.setMessage(outputMsg); Operation result = definition.createOperation(); result.setName(name); result.setInput(input); result.setOutput(output); result.setUndefined(false); portType.addOperation(result); return result; }
"Adding operation [" + operation.getName() + "] to port type [" + portType.getQName() + "]"); portType.addOperation(operation);
"Adding operation [" + operation.getName() + "] to port type [" + portType.getQName() + "]"); portType.addOperation(operation);
"Adding operation [" + operation.getName() + "] to port type [" + portType.getQName() + "]"); portType.addOperation(operation);
"Adding operation [" + operation.getName() + "] to port type [" + portType.getQName() + "]"); portType.addOperation(operation);
portType.addOperation(wsdlOp);
public void generate() { PortType portType = definition.createPortType(); portType.setQName(new QName(wmodel.getTargetNameSpace(), wmodel.getPortTypeName())); portType.setUndefined(false); for (JavaMethod method : wmodel.getJavaMethods()) { Operation operation = definition.createOperation(); operation.setName(method.getName()); operation.setUndefined(false); Message inputMessage = null; inputMessage = definition.createMessage(); inputMessage.setQName(new QName(wmodel.getTargetNameSpace(), method.getName())); processInputMessage(operation, method, inputMessage); Message outputMessage = null; if (!method.isOneWay()) { outputMessage = definition.createMessage(); outputMessage.setQName(new QName(wmodel.getTargetNameSpace(), method.getName() + "Response")); processOutputMessage(operation, method, outputMessage); } generateFault(method, operation); portType.addOperation(operation); definition.addPortType(portType); } }
portType.addOperation(op);
portType.addOperation(op);
if (op != null) portType.addOperation(op);
flatPort.addOperation(flatOper);
flatPort.addOperation(flatOper);
portType.addOperation(operation);
portType.addOperation(operation);
portType.addOperation(operation);