Skip to content

Commit c425dc8

Browse files
committed
Moved new WSDL design over from sandbox
1 parent 0bfbe2f commit c425dc8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+40
-427
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,19 @@
3333
* conventions in one or more inlined XSD schemas. Delegates to {@link InliningXsdSchemaTypesProvider}, {@link
3434
* DefaultMessagesProvider}, {@link SuffixBasedPortTypesProvider}, {@link SoapProvider} underneath; effectively
3535
* equivalent to using a {@link ProviderBasedWsdl4jDefinition} with all these providers.
36+
* <p/>
37+
* Example configuration:
38+
* <pre>
39+
* &lt;bean id=&quot;airline&quot; class=&quot;org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition&quot;&gt;
40+
* &lt;property name=&quot;schema&quot;&gt;
41+
* &lt;bean class=&quot;org.springframework.xml.xsd.SimpleXsdSchema&quot;&gt;
42+
* &lt;property name=&quot;xsd&quot; value=&quot;/WEB-INF/airline.xsd&quot;/&gt;
43+
* &lt;/bean&gt;
44+
* &lt;/property&gt;
45+
* &lt;property name=&quot;portTypeName&quot; value=&quot;Airline&quot;/&gt;
46+
* &lt;property name=&quot;locationUri&quot; value=&quot;http://localhost:8080/airline/services&quot;/&gt;
47+
* &lt;/bean&gt;
48+
* </pre>
3649
*
3750
* @author Arjen Poutsma
3851
* @since 1.5.0

core/src/main/java/org/springframework/ws/wsdl/wsdl11/builder/AbstractBindingWsdl4jDefinitionBuilder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
*
4242
* @author Arjen Poutsma
4343
* @since 1.0.0
44+
* @deprecated as of Spring Web Services 1.5: superseded by {@link org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition}
45+
* and the {@link org.springframework.ws.wsdl.wsdl11.provider} package
4446
*/
4547
public abstract class AbstractBindingWsdl4jDefinitionBuilder extends AbstractWsdl4jDefinitionBuilder {
4648

core/src/main/java/org/springframework/ws/wsdl/wsdl11/builder/AbstractSoap11Wsdl4jDefinitionBuilder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
* @author Arjen Poutsma
4646
* @see #setLocationUri(String)
4747
* @since 1.0.0
48+
* @deprecated as of Spring Web Services 1.5: superseded by {@link org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition}
49+
* and the {@link org.springframework.ws.wsdl.wsdl11.provider} package
4850
*/
4951
public abstract class AbstractSoap11Wsdl4jDefinitionBuilder extends AbstractBindingWsdl4jDefinitionBuilder {
5052

core/src/main/java/org/springframework/ws/wsdl/wsdl11/builder/AbstractSoap12Wsdl4jDefinitionBuilder.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@
4646
* @author Alex Marshall
4747
* @see #setLocationUri(String)
4848
* @since 1.5.0
49+
* @deprecated as of Spring Web Services 1.5: superseded by {@link org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition}
50+
* and the {@link org.springframework.ws.wsdl.wsdl11.provider} package
4951
*/
5052
public abstract class AbstractSoap12Wsdl4jDefinitionBuilder extends AbstractBindingWsdl4jDefinitionBuilder {
5153

5254
private static final String WSDL_SOAP_NAMESPACE_URI = "http://schemas.xmlsoap.org/wsdl/soap12/";
5355

5456
private static final String WSDL_SOAP_PREFIX = "soap12";
5557

56-
/**
57-
* The default soap12:binding transport attribute value.
58-
*/
58+
/** The default soap12:binding transport attribute value. */
5959
public static final String DEFAULT_TRANSPORT_URI = "http://schemas.xmlsoap.org/soap/http";
6060

6161
private String transportUri = DEFAULT_TRANSPORT_URI;
@@ -72,16 +72,12 @@ public void setTransportUri(String transportUri) {
7272
this.transportUri = transportUri;
7373
}
7474

75-
/**
76-
* Sets the value used for the soap12:address location attribute value.
77-
*/
75+
/** Sets the value used for the soap12:address location attribute value. */
7876
public void setLocationUri(String locationUri) {
7977
this.locationUri = locationUri;
8078
}
8179

82-
/**
83-
* Adds the WSDL SOAP namespace to the definition.
84-
*/
80+
/** Adds the WSDL SOAP namespace to the definition. */
8581
protected void populateDefinition(Definition definition) throws WSDLException {
8682
definition.addNamespace(WSDL_SOAP_PREFIX, WSDL_SOAP_NAMESPACE_URI);
8783
}

core/src/main/java/org/springframework/ws/wsdl/wsdl11/builder/AbstractWsdl4jDefinitionBuilder.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
import org.apache.commons.logging.Log;
2727
import org.apache.commons.logging.LogFactory;
28+
2829
import org.springframework.ws.wsdl.WsdlDefinitionException;
2930
import org.springframework.ws.wsdl.wsdl11.Wsdl11Definition;
3031
import org.springframework.ws.wsdl.wsdl11.Wsdl11DefinitionBuilder;
@@ -37,6 +38,8 @@
3738
*
3839
* @author Arjen Poutsma
3940
* @since 1.0.0
41+
* @deprecated as of Spring Web Services 1.5: superseded by {@link org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition}
42+
* and the {@link org.springframework.ws.wsdl.wsdl11.provider} package
4043
*/
4144
public abstract class AbstractWsdl4jDefinitionBuilder implements Wsdl11DefinitionBuilder {
4245

core/src/main/java/org/springframework/ws/wsdl/wsdl11/builder/XsdBasedSoap11Wsdl4jDefinitionBuilder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@
8282
* @see #setRequestSuffix(String)
8383
* @see #setResponseSuffix(String)
8484
* @since 1.0.0
85+
* @deprecated as of Spring Web Services 1.5: superseded by {@link org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition}
86+
* and the {@link org.springframework.ws.wsdl.wsdl11.provider} package
8587
*/
8688
public class XsdBasedSoap11Wsdl4jDefinitionBuilder extends AbstractSoap11Wsdl4jDefinitionBuilder
8789
implements InitializingBean {

core/src/main/java/org/springframework/ws/wsdl/wsdl11/builder/XsdBasedSoap12Wsdl4jDefinitionBuilder.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@
8383
* @see #setRequestSuffix(String)
8484
* @see #setResponseSuffix(String)
8585
* @since 1.5.0
86+
* @deprecated as of Spring Web Services 1.5: superseded by {@link org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition}
87+
* and the {@link org.springframework.ws.wsdl.wsdl11.provider} package
8688
*/
8789
public class XsdBasedSoap12Wsdl4jDefinitionBuilder extends AbstractSoap12Wsdl4jDefinitionBuilder
8890
implements InitializingBean {
@@ -288,7 +290,7 @@ protected void buildMessages(Definition definition) throws WSDLException {
288290
definition.addNamespace(prefix, elementName.getNamespaceURI());
289291
break;
290292
}
291-
i++;
293+
i++;
292294
}
293295
}
294296
Message message = definition.createMessage();

core/src/main/java/org/springframework/ws/wsdl/wsdl11/builder/XsdSchemaHelper.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,26 @@
2626

2727
import org.apache.commons.logging.Log;
2828
import org.apache.commons.logging.LogFactory;
29-
import org.springframework.core.io.Resource;
30-
import org.springframework.util.Assert;
31-
import org.springframework.util.StringUtils;
32-
import org.springframework.xml.namespace.QNameUtils;
33-
import org.springframework.xml.sax.SaxUtils;
3429
import org.w3c.dom.Document;
3530
import org.w3c.dom.Element;
3631
import org.w3c.dom.Node;
3732
import org.w3c.dom.NodeList;
3833
import org.xml.sax.SAXException;
3934

35+
import org.springframework.core.io.Resource;
36+
import org.springframework.util.Assert;
37+
import org.springframework.util.StringUtils;
38+
import org.springframework.xml.namespace.QNameUtils;
39+
import org.springframework.xml.sax.SaxUtils;
40+
4041
/**
4142
* Helper class for dealing with XSD schemas. Exposes the target namespace, and the list of qualified names declared in
4243
* a schema.
4344
*
4445
* @author Arjen Poutsma
4546
* @since 1.0.2
47+
* @deprecated as of Spring Web Services 1.5: superseded by {@link org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition}
48+
* and the {@link org.springframework.ws.wsdl.wsdl11.provider} package
4649
*/
4750
class XsdSchemaHelper {
4851

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<html>
22
<body>
3-
Provides a strategy for WSDL building. Used by DynamicWsdl11Definition to generate WSDL definitions at runtime.
3+
<strong>Deprecated</strong> as of Spring Web Services 1.5: superseded by the <code>DefaultWsdl11Definition</code>
4+
and <code>org.springframework.ws.wsdl.wsdl11.provider</code> package.
45
</body>
56
</html>

0 commit comments

Comments
 (0)