Author: thomas.diesler(a)jboss.com
Date: 2007-10-11 05:46:44 -0400 (Thu, 11 Oct 2007)
New Revision: 4734
Removed:
stack/native/trunk/.settings/
Modified:
stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java
Log:
[JBWS-1807] HTTP bindings for Provider
Modified: stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java 2007-10-11
03:30:58 UTC (rev 4733)
+++ stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java 2007-10-11
09:46:44 UTC (rev 4734)
@@ -992,9 +992,8 @@
QName srcBindingQName = srcBinding.getQName();
log.trace("processBinding: " + srcBindingQName);
- boolean bindingProcessed = false;
-
- if (destWsdl.getBinding(srcBindingQName) == null)
+ WSDLBinding destBinding = destWsdl.getBinding(srcBindingQName);
+ if (destBinding == null)
{
PortType srcPortType = getDefinedPortType(srcBinding);
@@ -1029,7 +1028,7 @@
// Ignore unknown bindings
if (Constants.NS_SOAP11.equals(bindingType) ||
Constants.NS_SOAP12.equals(bindingType) || Constants.NS_HTTP.equals(bindingType))
{
- WSDLBinding destBinding = new WSDLBinding(destWsdl, srcBindingQName);
+ destBinding = new WSDLBinding(destWsdl, srcBindingQName);
destBinding.setInterfaceName(srcPortType.getQName());
destBinding.setType(bindingType);
processUnknownExtensibilityElements(srcBinding, destBinding);
@@ -1043,7 +1042,6 @@
String bindingStyle = Style.getDefaultStyle().toString();
for (ExtensibilityElement extElement : extList)
{
- QName elementType = extElement.getElementType();
if (extElement instanceof SOAPBinding)
{
SOAPBinding soapBinding = (SOAPBinding)extElement;
@@ -1057,11 +1055,10 @@
}
processBindingOperations(srcWsdl, destBinding, srcBinding, bindingStyle);
- bindingProcessed = true;
}
}
- return bindingProcessed;
+ return destBinding != null;
}
/** The port might reference a binding which is defined in another wsdl
Show replies by date