javax.wsdl.Output.getMessage()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(7.6k)|赞(0)|评价(0)|浏览(119)

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

Output.getMessage介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

Message out = output.getMessage();
List<Part> outParts = out.getOrderedParts( null );

代码示例来源:origin: wsdl4j/wsdl4j

protected void printOutput(Output output,
              Definition def,
              PrintWriter pw)
               throws WSDLException
{
 if (output != null)
 {
  String tagName =
   DOMUtils.getQualifiedValue(Constants.NS_URI_WSDL,
                 Constants.ELEM_OUTPUT,
                 def);
  pw.print("      <" + tagName);
  DOMUtils.printAttribute(Constants.ATTR_NAME, output.getName(), pw);
  Message message = output.getMessage();
  if (message != null)
  {
   DOMUtils.printQualifiedAttribute(Constants.ATTR_MESSAGE,
                    message.getQName(),
                    def,
                    pw);
  }
  printExtensibilityAttributes(Output.class, output, def, pw);
  pw.println('>');
  printDocumentation(output.getDocumentationElement(), def, pw);
  List extElements = output.getExtensibilityElements();
  printExtensibilityElements(Output.class, extElements, def, pw);
  pw.println("    </" + tagName + '>');
 }
}

代码示例来源:origin: org.apache.cxf/cxf-common-utilities

public List<Part> getOutMessageParts(Operation operation) {
  Output output = operation.getOutput();
  List<Part> partsList = new ArrayList<Part>();
  if (output != null && output.getMessage() != null) {
    Iterator ite = output.getMessage().getParts().values().iterator();
    while (ite.hasNext()) {
      partsList.add((Part)ite.next());
    }
  }
  return partsList;
}

代码示例来源:origin: de.tudarmstadt.ukp.dkpro.core/de.tudarmstadt.ukp.dkpro.core.io.wsdl-asl

private void processOutput(JCasBuilder casBuilder, Output output)
{
  if (output == null) {
    return;
  }
  processMessage(casBuilder, output.getMessage(), PREFIX_OUTPUT);
}

代码示例来源:origin: apache/cxf

public List<Part> getOutMessageParts(Operation operation) {
  Output output = operation.getOutput();
  List<Part> partsList = new ArrayList<>();
  if (output != null && output.getMessage() != null) {
    Collection<Part> parts = CastUtils.cast(output.getMessage().getParts().values());
    for (Part p : parts) {
      partsList.add(p);
    }
  }
  return partsList;
}

代码示例来源:origin: org.apache.cxf/cxf-api

public List<Part> getOutMessageParts(Operation operation) {
  Output output = operation.getOutput();
  List<Part> partsList = new ArrayList<Part>();
  if (output != null && output.getMessage() != null) {
    Collection<Part> parts = CastUtils.cast(output.getMessage().getParts().values());
    for (Part p : parts) {
      partsList.add(p);
    }
  }
  return partsList;
}

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

public List<Part> getOutMessageParts(Operation operation) {
  Output output = operation.getOutput();
  List<Part> partsList = new ArrayList<Part>();
  if (output != null && output.getMessage() != null) {
    Collection<Part> parts = CastUtils.cast(output.getMessage().getParts().values());
    for (Part p : parts) {
      partsList.add(p);
    }
  }
  return partsList;
}

代码示例来源:origin: org.springframework.ws/spring-ws-core

/**
 * Called after the {@link javax.wsdl.Output} has been created, but it's added to the operation. Subclasses can
 * override this method to define the output name.
 *
 * <p>Default implementation sets the output name to the message name.
 *
 * @param definition the WSDL4J {@code Definition}
 * @param output     the WSDL4J {@code Output}
 */
protected void populateOutput(Definition definition, Output output) {
  output.setName(output.getMessage().getQName().getLocalPart());
}

代码示例来源:origin: org.ow2.orchestra/orchestra-axis

private static List<Part> getOutputParts(final Operation operation) {
 final Output output = operation.getOutput();
 if (output != null) {
  return AxisWSImpl.getMessageParts(output.getMessage());
 }
 return new ArrayList<Part>();
}

代码示例来源:origin: org.springframework.ws/org.springframework.ws

/**
 * Called after the {@link javax.wsdl.Output} has been created, but it's added to the operation. Subclasses can
 * override this method to define the output name.
 * <p/>
 * Default implementation sets the output name to the message name.
 *
 * @param definition the WSDL4J <code>Definition</code>
 * @param output     the WSDL4J <code>Output</code>
 */
protected void populateOutput(Definition definition, Output output) {
  output.setName(output.getMessage().getQName().getLocalPart());
}

代码示例来源:origin: spring-projects/spring-ws

/**
 * Called after the {@link javax.wsdl.Output} has been created, but it's added to the operation. Subclasses can
 * override this method to define the output name.
 *
 * <p>Default implementation sets the output name to the message name.
 *
 * @param definition the WSDL4J {@code Definition}
 * @param output     the WSDL4J {@code Output}
 */
protected void populateOutput(Definition definition, Output output) {
  output.setName(output.getMessage().getQName().getLocalPart());
}

代码示例来源:origin: org.apache.tomee/openejb-webservices

protected void visit(Output output) {
  Map outputParts = output.getMessage().getParts();
  if (outputParts.size() != 0 && outputParts.size() != 1) {
    context.addFailure(new ValidationFailure("The output message must contain zero or one parts: " + output.getName()));
  }
}

代码示例来源:origin: org.apache.openejb/openejb-webservices

protected void visit(final Output output) {
  final Map outputParts = output.getMessage().getParts();
  if (outputParts.size() != 0 && outputParts.size() != 1) {
    context.addFailure(new ValidationFailure("The output message must contain zero or one parts: " + output.getName()));
  }
}

代码示例来源:origin: org.apache.geronimo.modules/geronimo-webservices

protected void visit(Output output) {
  Map outputParts = output.getMessage().getParts();
  if (outputParts.size() != 0 && outputParts.size() != 1) {
    context.addFailure(new ValidationFailure("The output message must contain zero or one parts: " + output.getName()));
  }
}

代码示例来源:origin: org.codehaus.service-conduit/sca4j-interface-wsdl

private DataType getOutputType(Output output, XmlSchemaCollection xmlSchema) {
  
  if(output == null) return new XSDElement(null, null);
  
  Message message = output.getMessage();
  Part part = (Part) message.getOrderedParts(null).get(0);
  
  return getDataType(part.getElementName(), xmlSchema);
  
}

代码示例来源:origin: org.apache.cxf/cxf-common-utilities

public Map getParts(Operation operation, boolean out) {
  Message message = null;
  if (out) {
    Output output = operation.getOutput();
    message = output.getMessage();
  } else {
    Input input = operation.getInput();
    message = input.getMessage();
  }
  return message.getParts() == null ? new HashMap() : message.getParts();
}

代码示例来源:origin: org.objectweb.celtix/celtix-common

public Map getParts(Operation operation, boolean out) {
  Message message = null;
  if (out) {
    Output output = operation.getOutput();
    message = output.getMessage();
  } else {
    Input input = operation.getInput();
    message = input.getMessage();
  }
  return message.getParts() == null ? new HashMap() : message.getParts();
}

代码示例来源:origin: org.jboss.soa.bpel/riftsaw-bpel-compiler

public boolean isMember(Operation o) {
    // Again, guard against WSDL4J's "help"
    if ((o.getInput() == null || o.getInput().getMessage() == null)
        && (o.getOutput() == null || o.getOutput().getMessage() == null))
      return false;
    return o.getName().equals(operationName);
  }
});

代码示例来源:origin: org.jboss.soa.bpel/riftsaw-bpel-compiler

public boolean isMember(Operation o) {
    // Guard against WSDL4j funny business.
    if ((o.getInput() == null || o.getInput().getMessage() == null)
        && (o.getOutput() == null || o.getOutput().getMessage() == null)) {
      return false;
    }
    return o.getName().equals(operationName);
  }
});

代码示例来源:origin: org.apache.openejb/openejb-axis

public LightweightOperationInfoBuilder(final BindingOperation bindingOperation, final Method method) throws OpenEJBException {
  if (bindingOperation == null) {
    throw new OpenEJBException("No BindingOperation supplied for method " + method.getName());
  }
  final Operation operation = bindingOperation.getOperation();
  this.operationName = operation.getName();
  this.inputMessage = operation.getInput().getMessage();
  this.outputMessage = operation.getOutput() == null ? null : operation.getOutput().getMessage();
  this.method = method;
}

相关文章