Author: thomas.diesler(a)jboss.com
Date: 2007-10-11 06:19:45 -0400 (Thu, 11 Oct 2007)
New Revision: 4736
Modified:
stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java
Log:
[JBWS-1807] HTTP bindings for Provider
Modified: stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java 2007-10-11
09:53:06 UTC (rev 4735)
+++ stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java 2007-10-11
10:19:45 UTC (rev 4736)
@@ -468,7 +468,13 @@
if (wsdlStyle.equals(Constants.DOCUMENT_LITERAL))
style = "document";
appendUnknownExtensibilityElements(buffer, binding);
- buffer.append("<" + soapPrefix + ":binding
transport='" + binding.getType() + "' style='" + style +
"'/>");
+
+ // The value of the REQUIRED transport attribute (of type xs:anyURI) indicates
which transport of SOAP this binding corresponds to.
+ // The URI value "http://schemas.xmlsoap.org/soap/http" corresponds to
the HTTP binding.
+ // Other URIs may be used here to indicate other transports (such as SMTP, FTP,
etc.).
+ String soapHTTPTransport = "http://schemas.xmlsoap.org/soap/http";
+
+ buffer.append("<" + soapPrefix + ":binding
transport='" + soapHTTPTransport + "' style='" + style +
"'/>");
appendBindingOperations(buffer, binding);
buffer.append("</binding>");
}