本文整理了Java中javax.wsdl.Binding.getBindingOperations()
方法的一些代码示例,展示了Binding.getBindingOperations()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Binding.getBindingOperations()
方法的具体详情如下:
包路径:javax.wsdl.Binding
类名称:Binding
方法名:getBindingOperations
[英]Get all the operation bindings defined here.
[中]
代码示例来源:origin: wsdl4j/wsdl4j
printBindingOperations(binding.getBindingOperations(), def, pw);
代码示例来源:origin: org.jboss.ws.native/jbossws-native-core
private void processBindingOperations(Definition srcWsdl, WSDLBinding destBinding, Binding srcBinding, String bindingStyle) throws WSDLException
{
Iterator it = srcBinding.getBindingOperations().iterator();
while (it.hasNext())
{
BindingOperation srcBindingOperation = (BindingOperation)it.next();
processBindingOperation(srcWsdl, destBinding, bindingStyle, srcBindingOperation);
}
}
代码示例来源:origin: org.objectweb.celtix/celtix-common
public BindingOperation getBindingOperation(Binding binding, String operationName) {
if (operationName == null) {
return null;
}
List bindingOperations = binding.getBindingOperations();
for (Iterator iter = bindingOperations.iterator(); iter.hasNext();) {
BindingOperation bindingOperation = (BindingOperation)iter.next();
if (operationName.equals(bindingOperation.getName())) {
return bindingOperation;
}
}
return null;
}
代码示例来源:origin: org.apache.cxf/cxf-common-utilities
public BindingOperation getBindingOperation(Binding binding, String operationName) {
if (operationName == null) {
return null;
}
List bindingOperations = binding.getBindingOperations();
for (Iterator iter = bindingOperations.iterator(); iter.hasNext();) {
BindingOperation bindingOperation = (BindingOperation)iter.next();
if (operationName.equals(bindingOperation.getName())) {
return bindingOperation;
}
}
return null;
}
代码示例来源:origin: org.objectweb.celtix/celtix-common
public Binding getBinding(BindingOperation bop, Definition def) {
Iterator ite = def.getBindings().values().iterator();
while (ite.hasNext()) {
Binding binding = (Binding)ite.next();
for (Iterator ite2 = binding.getBindingOperations().iterator(); ite2.hasNext();) {
BindingOperation bindingOperation = (BindingOperation)ite2.next();
if (bindingOperation.getName().equals(bop)) {
return binding;
}
}
}
return null;
}
代码示例来源:origin: apache/cxf
private void collectIdlDefns(Binding binding) throws Exception {
boolean isOneway = false;
Iterator<?> iterator = binding.getBindingOperations().iterator();
while (iterator.hasNext()) {
BindingOperation bindingOperation = (BindingOperation)iterator.next();
if (bindingOperation.getBindingOutput() == null) {
isOneway = true;
}
addOperation(bindingOperation, isOneway);
}
}
代码示例来源:origin: org.apache.cxf/cxf-common-utilities
public Binding getBinding(BindingOperation bop, Definition def) {
Iterator ite = def.getBindings().values().iterator();
while (ite.hasNext()) {
Binding binding = (Binding)ite.next();
for (Iterator ite2 = binding.getBindingOperations().iterator(); ite2.hasNext();) {
BindingOperation bindingOperation = (BindingOperation)ite2.next();
if (bindingOperation.getName().equals(bop.getName())) {
return binding;
}
}
}
return null;
}
代码示例来源:origin: apache/cxf
public BindingOperation getBindingOperation(Binding binding, String operationName) {
if (operationName == null) {
return null;
}
List<BindingOperation> bindingOperations = CastUtils.cast(binding.getBindingOperations());
for (BindingOperation bindingOperation : bindingOperations) {
if (operationName.equals(bindingOperation.getName())) {
return bindingOperation;
}
}
return null;
}
代码示例来源:origin: org.apache.cxf/cxf-api
public BindingOperation getBindingOperation(Binding binding, String operationName) {
if (operationName == null) {
return null;
}
List<BindingOperation> bindingOperations = CastUtils.cast(binding.getBindingOperations());
for (BindingOperation bindingOperation : bindingOperations) {
if (operationName.equals(bindingOperation.getName())) {
return bindingOperation;
}
}
return null;
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
public BindingOperation getBindingOperation(Binding binding, String operationName) {
if (operationName == null) {
return null;
}
List<BindingOperation> bindingOperations = CastUtils.cast(binding.getBindingOperations());
for (BindingOperation bindingOperation : bindingOperations) {
if (operationName.equals(bindingOperation.getName())) {
return bindingOperation;
}
}
return null;
}
代码示例来源:origin: apache/cxf
public Binding getBinding(BindingOperation bop, Definition def) {
Collection<Binding> ite = CastUtils.cast(def.getBindings().values());
for (Binding binding : ite) {
List<BindingOperation> bos = CastUtils.cast(binding.getBindingOperations());
for (BindingOperation bindingOperation : bos) {
if (bindingOperation.getName().equals(bop.getName())) {
return binding;
}
}
}
return null;
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
public Binding getBinding(BindingOperation bop, Definition def) {
Collection<Binding> ite = CastUtils.cast(def.getBindings().values());
for (Binding binding : ite) {
List<BindingOperation> bos = CastUtils.cast(binding.getBindingOperations());
for (BindingOperation bindingOperation : bos) {
if (bindingOperation.getName().equals(bop.getName())) {
return binding;
}
}
}
return null;
}
代码示例来源:origin: org.apache.cxf/cxf-api
public Binding getBinding(BindingOperation bop, Definition def) {
Collection<Binding> ite = CastUtils.cast(def.getBindings().values());
for (Binding binding : ite) {
List<BindingOperation> bos = CastUtils.cast(binding.getBindingOperations());
for (BindingOperation bindingOperation : bos) {
if (bindingOperation.getName().equals(bop.getName())) {
return binding;
}
}
}
return null;
}
代码示例来源:origin: org.apache.axis2/axis2-metadata
public String getOperationName(QName serviceQname, QName portQname) {
Port port = getPort(serviceQname, portQname);
Binding binding = port.getBinding();
if (binding == null) {
return null;
}
List operations = binding.getBindingOperations();
for (Object opObj : operations) {
BindingOperation operation = (BindingOperation)opObj;
return operation.getName();
}
return null;
}
代码示例来源:origin: apache/axis2-java
public String getOperationName(QName serviceQname, QName portQname) {
Port port = getPort(serviceQname, portQname);
Binding binding = port.getBinding();
if (binding == null) {
return null;
}
List operations = binding.getBindingOperations();
for (Object opObj : operations) {
BindingOperation operation = (BindingOperation)opObj;
return operation.getName();
}
return null;
}
代码示例来源:origin: apache/cxf
public static String getCanonicalBindingStyle(Binding binding) {
String bindingStyle = getBindingStyle(binding);
if (!StringUtils.isEmpty(bindingStyle)) {
return bindingStyle;
}
for (Object bobj : binding.getBindingOperations()) {
BindingOperation bindingOp = (BindingOperation)bobj;
String bopStyle = getSOAPOperationStyle(bindingOp);
if (!StringUtils.isEmpty(bopStyle)) {
return bopStyle;
}
}
return "";
}
代码示例来源:origin: apache/cxf
public static String getCanonicalBindingStyle(Binding binding) {
String bindingStyle = getBindingStyle(binding);
if (!StringUtils.isEmpty(bindingStyle)) {
return bindingStyle;
}
for (Object bobj : binding.getBindingOperations()) {
BindingOperation bindingOp = (BindingOperation)bobj;
String bopStyle = getSOAPOperationStyle(bindingOp);
if (!StringUtils.isEmpty(bopStyle)) {
return bopStyle;
}
}
return "";
}
代码示例来源:origin: org.apache.cxf/cxf-rt-core
public static String getCanonicalBindingStyle(Binding binding) {
String bindingStyle = getBindingStyle(binding);
if (!StringUtils.isEmpty(bindingStyle)) {
return bindingStyle;
}
for (Object bobj : binding.getBindingOperations()) {
BindingOperation bindingOp = (BindingOperation)bobj;
String bopStyle = getSOAPOperationStyle(bindingOp);
if (!StringUtils.isEmpty(bopStyle)) {
return bopStyle;
}
}
return "";
}
代码示例来源:origin: org.apache.cxf/cxf-rt-bindings-soap
public static String getCanonicalBindingStyle(Binding binding) {
String bindingStyle = getBindingStyle(binding);
if (!StringUtils.isEmpty(bindingStyle)) {
return bindingStyle;
}
for (Object bobj : binding.getBindingOperations()) {
BindingOperation bindingOp = (BindingOperation)bobj;
String bopStyle = getSOAPOperationStyle(bindingOp);
if (!StringUtils.isEmpty(bopStyle)) {
return bopStyle;
}
}
return "";
}
代码示例来源:origin: org.apache.openejb/openejb-axis
private BindingStyle getStyle(final Binding binding) throws OpenEJBException {
final SOAPBinding soapBinding = getExtensibilityElement(SOAPBinding.class, binding.getExtensibilityElements());
final String styleString = soapBinding.getStyle();
final BindingInput bindingInput = ((BindingOperation) binding.getBindingOperations().get(0)).getBindingInput();
final SOAPBody soapBody = getExtensibilityElement(SOAPBody.class, bindingInput.getExtensibilityElements());
final String useString = soapBody.getUse();
final BindingStyle bindingStyle = BindingStyle.getBindingStyle(styleString, useString);
return bindingStyle;
}
内容来源于网络,如有侵权,请联系作者删除!