本文整理汇总了Java中javax.wsdl.Operation.setUndefined方法的典型用法代码示例。如果您正苦于以下问题:Java Operation.setUndefined方法的具体用法?Java Operation.setUndefined怎么用?Java Operation.setUndefined使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.wsdl.Operation
的用法示例。
在下文中一共展示了Operation.setUndefined方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addWsdlPortTypeOperation
import javax.wsdl.Operation; //导入方法依赖的package包/类
private static void addWsdlPortTypeOperation(Definition definition, QName portTypeQName, String operationName, String operationComment, QName inputQName, QName ouptutQName) {
Message inputMessage = definition.createMessage();
inputMessage.setQName(inputQName);
Input input = definition.createInput();
input.setMessage(inputMessage);
Message outpuMessage = definition.createMessage();
outpuMessage.setQName(ouptutQName);
Output output = definition.createOutput();
output.setMessage(outpuMessage);
Operation operation = definition.createOperation();
operation.setName(operationName);
operation.setInput(input);
operation.setOutput(output);
operation.setUndefined(false);
addWsdLDocumentation(definition, operation, operationComment);
PortType portType = definition.getPortType(portTypeQName);
portType.addOperation(operation);
}
示例2: addOWOperation2PT
import javax.wsdl.Operation; //导入方法依赖的package包/类
private Operation addOWOperation2PT(Definition def, PortType pt, OneWayOperationDeclaration op) {
Operation wsdlOp = def.createOperation();
wsdlOp.setName(op.id());
wsdlOp.setStyle(OperationType.ONE_WAY);
wsdlOp.setUndefined(false);
Input in = def.createInput();
Message msg_req = addRequestMessage(localDef, op);
msg_req.setUndefined(false);
in.setMessage(msg_req);
wsdlOp.setInput(in);
wsdlOp.setUndefined(false);
pt.addOperation(wsdlOp);
return wsdlOp;
}
示例3: addRROperation2PT
import javax.wsdl.Operation; //导入方法依赖的package包/类
private Operation addRROperation2PT(Definition def, PortType pt, RequestResponseOperationDeclaration op) {
Operation wsdlOp = def.createOperation();
wsdlOp.setName(op.id());
wsdlOp.setStyle(OperationType.REQUEST_RESPONSE);
wsdlOp.setUndefined(false);
// creating input
Input in = def.createInput();
Message msg_req = addRequestMessage(localDef, op);
in.setMessage(msg_req);
wsdlOp.setInput(in);
// creating output
Output out = def.createOutput();
Message msg_resp = addResponseMessage(localDef, op);
out.setMessage(msg_resp);
wsdlOp.setOutput(out);
// creating faults
for (Entry<String, TypeDefinition> curFault : op.faults().entrySet()) {
Fault fault = localDef.createFault();
fault.setName(curFault.getKey());
Message flt_msg = addFaultMessage(localDef, op, curFault.getValue(), curFault.getKey());
fault.setMessage(flt_msg);
wsdlOp.addFault(fault);
}
pt.addOperation(wsdlOp);
return wsdlOp;
}