本文整理了Java中javax.wsdl.Input.getName()
方法的一些代码示例,展示了Input.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Input.getName()
方法的具体详情如下:
包路径:javax.wsdl.Input
类名称:Input
方法名:getName
[英]Get the name of this input message.
[中]获取此输入消息的名称。
代码示例来源:origin: pentaho/pentaho-kettle
if ( parameters != null
&& parameters.getOperation() != null && parameters.getOperation().getInput() != null
&& parameters.getOperation().getInput().getName() != null ) {
request = wsdlOperation.getParameters().getOperation().getInput().getName().toString();
代码示例来源:origin: wsdl4j/wsdl4j
String opInputName = input.getName();
代码示例来源: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: wsdl4j/wsdl4j
? (input.getName() != null ? input.getName() : Constants.NONE)
: null);
String outputName = (output != null
if (tempIn.getName() != null)
代码示例来源:origin: stackoverflow.com
@RequestMapping(value="/rest/greetMe", method= RequestMethod.GET)
public @ResponseBody Greeting sayHello(
@RequestParam(value = "name", required = false, defaultValue = "Stranger") String name,
@RequestParam(value = "language", required = false, defaultValue = "en") String language) {
return new Greeting(counter.incrementAndGet(), String.format(getTemplate(language), name));
}
@RequestMapping(value="/rest/greetMe", method= RequestMethod.POST)
public @ResponseBody Greeting sayHello(
@RequestBody(required = true) Input input) {
return new Greeting(counter.incrementAndGet(),
String.format(getTemplate(input.getLanguage()), input.getName()));
}
代码示例来源:origin: org.springframework.ws/spring-ws-core
/**
* Called after the {@link BindingInput} has been created. Subclasses can override this method to define the name,
* or add extensions to it.
*
* <p>Default implementation set the name of the binding input to the name of the input.
*
* @param definition the WSDL4J {@code Definition}
* @param bindingInput the WSDL4J {@code BindingInput}
* @param input the corresponding WSDL4J {@code Input} @throws WSDLException in case of errors
*/
protected void populateBindingInput(Definition definition, BindingInput bindingInput, Input input)
throws WSDLException {
bindingInput.setName(input.getName());
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
protected void configureBindingInput(BindingInput bindingInput, Input input) throws WSDLException {
bindingInput.setName(input.getName());
}
代码示例来源:origin: org.springframework.ws/org.springframework.ws
/**
* Called after the {@link BindingInput} has been created. Subclasses can override this method to define the name,
* or add extensions to it.
* <p/>
* Default implementation set the name of the binding input to the name of the input.
*
* @param definition the WSDL4J <code>Definition</code>
* @param bindingInput the WSDL4J <code>BindingInput</code>
* @param input the corresponding WSDL4J <code>Input</code> @throws WSDLException in case of errors
*/
protected void populateBindingInput(Definition definition, BindingInput bindingInput, Input input)
throws WSDLException {
bindingInput.setName(input.getName());
}
代码示例来源:origin: spring-projects/spring-ws
/**
* Called after the {@link BindingInput} has been created. Subclasses can override this method to define the name,
* or add extensions to it.
*
* <p>Default implementation set the name of the binding input to the name of the input.
*
* @param definition the WSDL4J {@code Definition}
* @param bindingInput the WSDL4J {@code BindingInput}
* @param input the corresponding WSDL4J {@code Input} @throws WSDLException in case of errors
*/
protected void populateBindingInput(Definition definition, BindingInput bindingInput, Input input)
throws WSDLException {
bindingInput.setName(input.getName());
}
代码示例来源:origin: org.n52.amused/amused-core
public static String getAction(Operation op)
{
Input input = op.getInput();
Object attr = input.getExtensionAttribute(WsaConstants.ACTION_QNAME);
if (attr == null)
{
Object[] filler = { op.getName(), input.getName(),
input.getExtensionAttributes().keySet() };
throw new RuntimeException(_MESSAGES.get("NoActionOnInput", filler));
}
return attr instanceof String ? (String)attr : ((QName)attr).getLocalPart();
}
代码示例来源:origin: apache/cxf
private BindingInput getBindingInput(Input input, String operationName) throws ToolException {
BindingInput bi = wsdlDefinition.createBindingInput();
bi.setName(input.getName());
//This ext element in some scenario is optional, but if provided, won't cause error
bi.addExtensibilityElement(getXMLBody(BindingInput.class, operationName));
return bi;
}
代码示例来源:origin: apache/cxf
private static BindingInput getBindingInput(Input input, Definition wsdlDefinition,
ExtensionRegistry extReg) throws Exception {
BindingInput bi = wsdlDefinition.createBindingInput();
bi.setName(input.getName());
bi.addExtensibilityElement(getSoapBody(BindingInput.class, extReg));
return bi;
}
代码示例来源:origin: apache/cxf
private BindingInput getBindingInput(Input input) throws ToolException {
BindingInput bi = wsdlDefinition.createBindingInput();
bi.setName(input.getName());
// As command line won't specify the details of body/header for message
// parts
// All input message's parts will be added into one soap body element
bi.addExtensibilityElement(getSoapBody(BindingInput.class));
return bi;
}
代码示例来源:origin: org.apache.cxf/cxf-rt-core
private static BindingInput getBindingInput(Input input, Definition wsdlDefinition,
ExtensionRegistry extReg) throws Exception {
BindingInput bi = wsdlDefinition.createBindingInput();
bi.setName(input.getName());
bi.addExtensibilityElement(getSoapBody(BindingInput.class, extReg));
return bi;
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
private static BindingInput getBindingInput(Input input, Definition wsdlDefinition,
ExtensionRegistry extReg) throws Exception {
BindingInput bi = wsdlDefinition.createBindingInput();
bi.setName(input.getName());
bi.addExtensibilityElement(getSoapBody(BindingInput.class, extReg));
return bi;
}
代码示例来源:origin: org.objectweb.celtix/celtix-tools
private BindingInput getBindingInput(Input input) throws ToolException {
BindingInput bi = wsdlDefinition.createBindingInput();
bi.setName(input.getName());
// As command line won't specify the details of body/header for message
// parts
// All input message's parts will be added into one soap body element
bi.addExtensibilityElement(getSoapBody(BindingInput.class));
return bi;
}
代码示例来源:origin: org.objectweb.celtix/celtix-tools
private BindingInput getBindingInput(Input input, String operationName) throws ToolException {
BindingInput bi = wsdlDefinition.createBindingInput();
bi.setName(input.getName());
//This ext element in some scenario is optional, but if provided, won't cause error
bi.addExtensibilityElement(getXMLBody(BindingInput.class, operationName));
return bi;
}
代码示例来源:origin: org.apache.cxf/cxf-tools-misctools
private BindingInput getBindingInput(Input input) throws ToolException {
BindingInput bi = wsdlDefinition.createBindingInput();
bi.setName(input.getName());
// As command line won't specify the details of body/header for message
// parts
// All input message's parts will be added into one soap body element
bi.addExtensibilityElement(getSoapBody(BindingInput.class));
return bi;
}
代码示例来源:origin: org.apache.cxf/cxf-tools-misctools
private BindingInput getBindingInput(Input input, String operationName) throws ToolException {
BindingInput bi = wsdlDefinition.createBindingInput();
bi.setName(input.getName());
//This ext element in some scenario is optional, but if provided, won't cause error
bi.addExtensibilityElement(getXMLBody(BindingInput.class, operationName));
return bi;
}
代码示例来源:origin: de.tudarmstadt.ukp.dkpro.core/de.tudarmstadt.ukp.dkpro.core.io.wsdl-asl
public Selector(Resource aFile, Service aService, Port aPort, Operation aOperation, String aId)
{
file = aFile;
service = aService.getQName();
port = aPort.getName();
operation = aOperation.getName();
String inputName = aOperation.getInput().getName();
input = (inputName != null) ? inputName : ":none";
String outputName = aOperation.getOutput().getName();
output = (outputName != null) ? outputName : ":none";
id = aId;
}
}
内容来源于网络,如有侵权,请联系作者删除!