org.ow2.easywsdl.wsdl.api.Operation类的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(9.9k)|赞(0)|评价(0)|浏览(137)

本文整理了Java中org.ow2.easywsdl.wsdl.api.Operation类的一些代码示例,展示了Operation类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Operation类的具体详情如下:
包路径:org.ow2.easywsdl.wsdl.api.Operation
类名称:Operation

Operation介绍

[英]This interface represents a WSDL operation. It includes information on input, output and fault messages associated with usage of the operation.
[中]此接口表示WSDL操作。它包括与操作使用相关的输入、输出和故障消息的信息。

代码示例

代码示例来源:origin: org.ow2.easywsdl/wsdl

bindingOperation.setQName(operation.getQName());
if (operation.getOutput() != null) {
  bindingOperation.setMEP(SOAPMEPConstants.REQUEST_RESPONSE);
} else {
  bindingOperation.setMEP(SOAPMEPConstants.ONE_WAY);
bindingOperation.setSoapAction(operation.getQName().getNamespaceURI()
    + (operation.getQName().getNamespaceURI().endsWith(
        "/") ? "" : "/")
    + operation.getQName().getLocalPart().toString());
if (operation.getInput() != null) {
  BindingInput binput = bindingOperation.createInput();
  bindingOperation.setInput(binput);
if (operation.getOutput() != null) {
  BindingOutput boutput = bindingOperation.createOutput();
  bindingOperation.setOutput(boutput);
if (operation.getFaults() != null) {
  for (Fault faultop : operation.getFaults()) {
    BindingFault bfault = bindingOperation.createFault();
    bindingOperation.addFault(bfault);

代码示例来源:origin: org.ow2.petals/petals-message-exchange

if (operation.getQName() != null && operation.getPattern() != null) {
  meps.put(operation.getQName(), operation.getPattern());
} else {
  logger.warning("Invalid data in component description for operation '"
      + operation.getQName() + "' of service '" + serviceName + "', MEP is '"
      + operation.getPattern() + "'");

代码示例来源:origin: com.ebmwebsourcing.easybpel/easybpel.model.bpel.tools.generator

String varName = op.getInput().getMessageName().getLocalPart()+"VarRequest";
bpelDef.createBPELElementVariable(varName,
    op.getInput().getMessageName(),
    BPELElementVariable.VariableType.MESSAGE);
if(op.getOutput() != null){
  String varOutName = op.getOutput().getMessageName().getLocalPart()+"VarResponse";
  bpelDef.createBPELElementVariable(varOutName,
      op.getOutput().getMessageName(),
      BPELElementVariable.VariableType.MESSAGE);
if(op.getFaults() != null){
  Iterator<Fault> itFaults = op.getFaults().iterator();
  while(itFaults.hasNext()){
    Fault f = itFaults.next();

代码示例来源:origin: com.ebmwebsourcing.easybpel/easybpel.model.bpel.impl

&& (op.getInput().getMessageName().getLocalPart().equals((internalMessage.getContent()).getName())||
        ((op.getOutput() != null) && op.getOutput().getMessageName().getLocalPart().equals((internalMessage.getContent()).getName())))) {
  elmt = (org.jdom.Element) ((org.jdom.Element)internalMessage.getContent().getChildren().get(0)).clone();
} else {
if(direction.equals(REQUEST)&&(op.getInput() != null)) {
  if((op.getInput().getParts() != null)&& (op.getInput().getParts().size()>0) && (op.getInput().getParts().get(0).getType() != null)&&(op.getInput().getParts().get(0).getPartQName() != null)) {
    elmt.setName(op.getInput().getParts().get(0).getPartQName().getLocalPart());
if(((op.getInput().getParts() != null)&& (op.getInput().getParts().size() > 0) && (op.getInput().getParts().get(0).getType() != null))) {
  elmt.setNamespace(null);
if(((op.getInput().getParts() != null)&&(op.getInput().getParts().size() > 0)) || op.getInput().getElement() != null) {
  final org.jdom.Document doc = new org.jdom.Document(elmt);
  formattedMessage.setContent(doc.getRootElement());

代码示例来源:origin: com.ebmwebsourcing.easybpel/easybpel.model.bpel.tools.generator

om.setInputVariable(var);
om.setInterface(currentInterface.getQName());
om.setOperation(this.varInputMap.get(var).q.getQName().getLocalPart());
if(this.varInputMap.get(var).q.getOutput() != null){

代码示例来源:origin: org.ow2.petals/petals-bc-soap

final AxisOperation genericOperation = new InOutAxisOperation(operation.getQName());
genericOperation.setMessageReceiver(soapContext.getPetalsReceiver());
final Input input = operation.getInput();
if (input != null) {
  if (desc.getVersion().equals(WSDLVersionConstants.WSDL11)) {
          context.getLogger().warning("More than one part found for input "
              + input.getName()
              + "(operation " + operation.getQName()
              + "). If a received message does not start with the first WSDL declared part and there is no other way than using the SOAP message content to determine the operation (except for matching element name to operation name), then there will be an unsolvable ambiguity.");
        context.getLogger().warning("An element referenced by the input "
            + input.getName()
            + "(operation " + operation.getQName()
            + ") seems to be missing from the types present in the WSDL... skipping this input! If there is no other way than using the SOAP message content to determine the operation (except for matching element name to operation name), then there will be an unsolvable ambiguity.");

代码示例来源:origin: com.ebmwebsourcing.easybpel/easybpel.model.bpel.impl

+ this.invoke.getOperation());
final List<org.ow2.easywsdl.wsdl.api.Fault> faults = op.getFaults();
for (final org.ow2.easywsdl.wsdl.api.Fault faultDef : faults) {
  final QName faultName = new QName(op.getQName()
      .getNamespaceURI(), faultDef.getName());

代码示例来源:origin: com.ebmwebsourcing.easybpel/easybpel.model.bpel.impl

private BPELInternalMessage formatAsRpc(final BPELInternalMessage internalMessage, final BindingOperation bOp, final Operation op, final String direction) throws BPELException {
  final BPELInternalMessage formattedMessage = new BPELInternalMessageImpl();
  if(internalMessage != null) {
    formattedMessage.setEndpoint(internalMessage.getEndpoint());
    formattedMessage.setQName(internalMessage.getQName());
    formattedMessage.setService(internalMessage.getService());
    // change message name by the binding operation name
    final org.jdom.Element elmt = (org.jdom.Element) internalMessage.getContent().clone();
    String operationName = bOp.getQName().getLocalPart();
    if(direction.equals(RESPONSE)) {
      operationName = operationName + "Response";
    } 
    elmt.setName(operationName);
    if(!elmt.getNamespaceURI().equals(bOp.getQName().getNamespaceURI())) {
      elmt.setNamespace(Namespace.getNamespace(bOp.getQName().getNamespaceURI()));
    }
    if(((op.getInput().getParts() != null)&& (op.getInput().getParts().size() > 0)) || op.getInput().getElement() != null) {
      final org.jdom.Document doc = new org.jdom.Document(elmt);
      formattedMessage.setContent(doc.getRootElement());
    }
  } else {
    throw new BPELException("Internal message cannot be null.");
  }
  return formattedMessage;
}

代码示例来源:origin: com.ebmwebsourcing.easybpel/easybpel.model.bpel.impl

if(bOpItem.getQName().getLocalPart().equals(op.getQName().getLocalPart())) {
  bOp = bOpItem;

代码示例来源:origin: com.ebmwebsourcing.wsstar/ws-dm

op.setQName(new QName(itf.getQName().getNamespaceURI(), "GetManageabilityReferences"));
itf.addOperation(op);
final Input input = op.createInput();
input.setName("GetManageabilityReferencesRequest");
input.setMessageName(new QName("http://docs.oasis-open.org/wsdm/mows-2.wsdl", "GetManageabilityReferencesRequest"));
op.setInput(input);
final Output output = op.createOutput();
output.setName("GetManageabilityReferencesResponse");
output.setMessageName(new QName("http://docs.oasis-open.org/wsdm/mows-2.wsdl", "GetManageabilityReferencesResponse"));
op.setOutput(output);

代码示例来源:origin: org.ow2.petals/petals-bc-rest

return wsdlOperation.getPattern();
} catch (final URISyntaxException | WSDL4ComplexWsdlException wsdl4cwe) {
  throw new MessagingException(wsdl4cwe);

代码示例来源:origin: com.ebmwebsourcing.easybpel/easybpel.model.bpel.tools.generator

String varName = op.getInput().getMessageName().getLocalPart()+"VarRequest";
this.bpelDef.createBPELElementVariable(varName,
    op.getInput().getMessageName(),
    BPELElementVariable.VariableType.MESSAGE);
if(op.getOutput() != null){
  String varOutName = op.getOutput().getMessageName().getLocalPart()+"VarResponse";
  this.bpelDef.createBPELElementVariable(varOutName,
      op.getOutput().getMessageName(),
      BPELElementVariable.VariableType.MESSAGE);
if(op.getFaults() != null){
  Iterator<Fault> itFaults = op.getFaults().iterator();
  while(itFaults.hasNext()){
    Fault f = itFaults.next();

代码示例来源:origin: com.ebmwebsourcing.easybpel/easybpel.model.bpel.tools.generator

om.setInputVariable(var);
om.setInterface(currentInterface.getQName());
om.setOperation(this.varInputMap.get(var).getQName().getLocalPart());
if(this.varInputMap.get(var).getOutput() != null){

代码示例来源:origin: com.ebmwebsourcing.easybpel/easybpel.model.bpel.impl

throw new CoreException("Impossible to find " + message.getOperationName() + " in wsdl descriptions");
  message.setQName(op.getInput().getMessageName());
  this.log.finest("Message name setted: " + message.getQName());
} else {

代码示例来源:origin: org.ow2.petals/petals-se-camel

final MEPPatternConstants mep = interfaceType.getOperation(qName).getPattern();

代码示例来源:origin: org.wso2.carbon.governance-extensions/org.wso2.carbon.governance.soap.viewer

String operationName = operation.getQName().getLocalPart();
List<WSDLEndpoint> currentWSDLEndpoints = new ArrayList<>();
int currentOperationIndex;
  currentOperationIndex = operationIndex;
Input input = operation.getInput();
  inputMessage = new InputMessage(messageParts);
Output output = operation.getOutput();
OutputMessage outputMessage;
if ((operation.getFaults() == null) || operation.getFaults().isEmpty()) {
  List<MessagePart> messageParts = new ArrayList<>();
  faultMessage = new FaultMessage(messageParts);
} else {
  Fault fault = operation.getFaults().get(0);
  faultMessage = new FaultMessage(getMessageParts(fault.getMessageName().toString()));

代码示例来源:origin: org.ow2.easywsdl/wsdl

bindingOperation.setQName(operation.getQName());
    .setSoapAction(operation.getQName().getNamespaceURI()
        + (operation.getQName().getNamespaceURI().endsWith(
            "/") ? "" : "/")
        + operation.getQName().getLocalPart().toString());
if (operation.getInput() != null) {
  BindingInput binput = bindingOperation.createInput();
  bindingOperation.setInput(binput);
if (operation.getOutput() != null) {
  BindingOutput boutput = bindingOperation.createOutput();
  bindingOperation.setOutput(boutput);
if (operation.getFaults() != null) {
  for (Fault faultop : operation.getFaults()) {
    BindingFault bfault = bindingOperation.createFault();
    try {

相关文章