当前位置: 首页>>代码示例>>Java>>正文


Java Operation.setUndefined方法代码示例

本文整理汇总了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);
  }
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:22,代码来源:WebServiceServlet.java

示例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;
}
 
开发者ID:jolie,项目名称:jolie,代码行数:19,代码来源:WSDLDocCreator.java

示例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;
}
 
开发者ID:jolie,项目名称:jolie,代码行数:33,代码来源:WSDLDocCreator.java


注:本文中的javax.wsdl.Operation.setUndefined方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。