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

x33g5p2x  于2022-01-21 转载在 其他  
字(7.8k)|赞(0)|评价(0)|浏览(123)

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

Input.getMessage介绍

暂无

代码示例

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

Message in = input.getMessage();
List<Object> paramOrdering = op.getParameterOrdering();
List<Part> inParts = in.getOrderedParts( paramOrdering );

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

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

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

public List<Part> getInMessageParts(Operation operation) {
  Input input = operation.getInput();
  List<Part> partsList = new ArrayList<Part>();
  if (input != null && input.getMessage() != null) {
    Iterator ite = input.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 processInput(JCasBuilder casBuilder, Input input)
{
  if (input == null) {
    return;
  }
  processMessage(casBuilder, input.getMessage(), PREFIX_INPUT);
}

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

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

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

public List<Part> getInMessageParts(Operation operation) {
  Input input = operation.getInput();
  List<Part> partsList = new ArrayList<Part>();
  if (input != null) {
    Iterator ite = input.getMessage().getParts().values().iterator();
    while (ite.hasNext()) {
      partsList.add((Part)ite.next());
    }
  }
  return partsList;
}

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

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

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

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

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

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

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

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

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

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

代码示例来源:origin: apache/servicemix-bundles

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

代码示例来源: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.ws.native/jbossws-native-core

public QName getXmlType(String partName)
{
 return srcBindingOperation.getOperation().getInput().getMessage().getPart(partName).getTypeName();
}

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

private Message getMessage(boolean isInput) {
  Operation operation = bindingOp.getOperation();
  if (operation == null) {
    return null;
  }
  if (isInput) {
    final Input input = operation.getInput();
    return input == null ? null : input.getMessage();
  }
  final Output output = operation.getOutput();
  return output == null ? null : output.getMessage();
}
private SOAPBody getSOAPBody(boolean input) {

代码示例来源: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.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.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;
}

代码示例来源:origin: org.wso2.carbon.business-process/org.wso2.carbon.bpel

private Message createInputMessageToODE(
    final BPELMessageContext bpelMessageContext,
    final MyRoleMessageExchange messageExchange) throws AxisFault {
  // Preparing message to send to ODE
  Message odeRequest = messageExchange.createMessage(
      messageExchange.getOperation().getInput().getMessage().getQName());
  fillODEMessage(odeRequest, bpelMessageContext.getRequestMessage());
  return odeRequest;
}

相关文章