本文整理了Java中javax.wsdl.Binding.getQName()
方法的一些代码示例,展示了Binding.getQName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Binding.getQName()
方法的具体详情如下:
包路径:javax.wsdl.Binding
类名称:Binding
方法名:getQName
[英]Get the name of this binding.
[中]获取此绑定的名称。
代码示例来源:origin: wsdl4j/wsdl4j
/**
* Add a binding to this WSDL description.
*
* @param binding the binding to be added
*/
public void addBinding(Binding binding)
{
bindings.put(binding.getQName(), binding);
}
代码示例来源:origin: wsdl4j/wsdl4j
binding.getQName(),
def,
pw);
代码示例来源:origin: wsdl4j/wsdl4j
QName name = binding.getQName();
代码示例来源:origin: org.wso2.wsdl4j/wsdl4j
/**
* Add a binding to this WSDL description.
*
* @param binding the binding to be added
*/
public void addBinding(Binding binding)
{
bindings.put(binding.getQName(), binding);
}
代码示例来源:origin: apache/cxf
private BindingType findCorbaBinding(Binding binding) {
List<?> list = binding.getExtensibilityElements();
for (int i = 0; i < list.size(); i++) {
if (list.get(i) instanceof BindingType) {
return (BindingType) list.get(i);
}
}
throw new RuntimeException("[InterfaceVisitor] Couldn't find Corba binding in Binding "
+ binding.getQName());
}
}
代码示例来源:origin: apache/cxf
private boolean queryBinding(QName bqname) {
Collection<Binding> bindings = CastUtils.cast(definition.getBindings().values());
for (Binding binding : bindings) {
if (binding.getQName().getLocalPart().equals(bqname.getLocalPart())) {
return true;
}
}
return false;
}
代码示例来源:origin: apache/cxf
protected static boolean queryBinding(Definition definition, QName bqname) {
Collection<Binding> bindings = CastUtils.cast(definition.getBindings().values());
for (Binding binding : bindings) {
if (binding.getQName().getLocalPart().equals(bqname.getLocalPart())) {
return true;
}
}
return false;
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.axis.consumption.ui
public static String getPackageNameForBindingImpl(Port port)
{
if (port != null)
{
Binding binding = port.getBinding();
// PortType portType = binding.getPortType();
QName bndQName = binding.getQName();
String namespace = bndQName.getNamespaceURI();
return namespaceURI2PackageName(namespace);
}
return "";
}
代码示例来源:origin: apache/cxf
private XNode getXNode(Binding binding) {
XDef xdef = new XDef();
xdef.setTargetNamespace(binding.getQName().getNamespaceURI());
XBinding bNode = new XBinding();
bNode.setName(binding.getQName().getLocalPart());
bNode.setParentNode(xdef);
return bNode;
}
代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator
public void visit(Port port, Object parent, WSDLTraversalContext ctx)
{
if (port != null)
{
Binding binding = port.getBinding();
if (binding != null)
{
checkNamespace(binding.getQName(), ctx);
}
}
}
代码示例来源:origin: org.apache.cxf/cxf-tools-validator
private XNode getXNode(Binding binding) {
XDef xdef = new XDef();
xdef.setTargetNamespace(binding.getQName().getNamespaceURI());
XBinding bNode = new XBinding();
bNode.setName(binding.getQName().getLocalPart());
bNode.setParentNode(xdef);
return bNode;
}
代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator
private void check(String use, String namespace, WSDLTraversalContext ctx)
{
if (WSIConstants.ATTRVAL_SOAP_BODY_USE_LIT.equals(use)
&& namespace != null)
{
errors.add(ctx.getBinding().getQName());
// suppresses subsequent processing, because error list contains only failed binding
ctx.cancelProcessing();
}
}
代码示例来源:origin: org.objectweb.jonas/jonas-generators-wsgen
/**
* Use the JOnASServiceWriter instead of default JavaServiceWriter
* @param binding wsdl:binding
* @param symbolTable symbol Table
* @return Returns the JOnASJ2eeBindingWriter
*/
public Generator getGenerator(Binding binding, SymbolTable symbolTable) {
Generator writer = new JOnASEWSBindingWriter(emitter, binding, symbolTable);
BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName());
bindingWriters.addStuff(writer, bEntry, symbolTable);
return bindingWriters;
}
代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator
public void visit(Binding binding, Object parent, WSDLTraversalContext ctx)
{
if (binding != null
&& !containsLegalClaim(binding.getDocumentationElement()))
errors.add(WSDL_BINDING, binding.getQName());
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.wsi
public void visit(Binding binding, Object parent, WSDLTraversalContext ctx)
{
if (binding != null
&& !containsLegalClaim(binding.getDocumentationElement()))
errors.add(WSDL_BINDING, binding.getQName());
}
代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator
private void checkPart(Part p, Binding b)
{
if (p != null && p.getElementName() == null)
errors.add(b.getQName(), p.getName());
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-webservices
protected void visit(Binding binding) {
SOAPBinding soapBinding = getSOAPBinding(binding);
if (soapBinding == null || soapBinding.getStyle() == null || !soapBinding.getStyle().equals("rpc")) {
context.addFailure(new ValidationFailure("The messaging style of the binding must be rpc: " + binding.getQName()));
}
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-webservices
protected void visit(Binding binding) {
SOAPBinding soapBinding = getSOAPBinding(binding);
if (soapBinding == null || soapBinding.getStyle() == null || !soapBinding.getStyle().equals("rpc")) {
context.addFailure(new ValidationFailure("The messaging style of the binding must be rpc: " + binding.getQName()));
}
}
代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator
public void visit(Operation op, Object parent, WSDLTraversalContext ctx)
{
// assert parent instanceof BindingOperation
if (op == null)
{
errors.add(ctx.getBinding().getQName());
// suppresses subsequent processing, because error list contains only failed binding
ctx.cancelBindingProcessing();
ctx.cancelBindingOperationProcessing();
}
}
代码示例来源:origin: org.codehaus.xfire/xfire-core
protected void visit(Binding wbinding)
{
SOAPBinding sbind = DefinitionsHelper.getSOAPBinding(wbinding);
soapBinding = new Soap11Binding(wbinding.getQName(), sbind.getTransportURI(), getService());
getService().addBinding(soapBinding);
soapBinding.setStyle(null);
setStyle(sbind.getStyle());
}
内容来源于网络,如有侵权,请联系作者删除!