Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 252257 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/wst/wsdl/validation/tests/internal/WSDLTest.java (-1 / +53 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2001, 2006 IBM Corporation and others.
2
 * Copyright (c) 2001, 2008 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 625-628 Link Here
625
    
625
    
626
    runTest(testfile, loglocation, idealloglocation);
626
    runTest(testfile, loglocation, idealloglocation);
627
  }
627
  }
628
  
629
  /**
630
   * Test /WSDL/ExtensibleElements/BadExtensibleElements.wsdl
631
   */
632
  public void testBadExtensibleElements()
633
  {
634
    String testname = "BadExtensibleElements";
635
    String testfile = FILE_PROTOCOL + PLUGIN_ABSOLUTE_PATH + SAMPLES_DIR + WSDL_DIR + "ExtensibleElements/" + testname + ".wsdl";
636
    String loglocation = PLUGIN_ABSOLUTE_PATH + GENERATED_RESULTS_DIR + WSDL_DIR + "ExtensibleElements/" + testname + ".wsdl-log";
637
    String idealloglocation = PLUGIN_ABSOLUTE_PATH + IDEAL_RESULTS_DIR + WSDL_DIR + "ExtensibleElements/" + testname + ".wsdl-log";
638
    
639
    runTest(testfile, loglocation, idealloglocation);
640
  }
641
  
642
  /**
643
   * Test /WSDL/ExtensibleElements/ExtensibleBinding.wsdl
644
   */
645
  public void testExtensibleBinding()
646
  {
647
    String testname = "ExtensibleBinding";
648
    String testfile = FILE_PROTOCOL + PLUGIN_ABSOLUTE_PATH + SAMPLES_DIR + WSDL_DIR + "ExtensibleElements/" + testname + ".wsdl";
649
    String loglocation = PLUGIN_ABSOLUTE_PATH + GENERATED_RESULTS_DIR + WSDL_DIR + "ExtensibleElements/" + testname + ".wsdl-log";
650
    String idealloglocation = PLUGIN_ABSOLUTE_PATH + IDEAL_RESULTS_DIR + WSDL_DIR + "ExtensibleElements/" + testname + ".wsdl-log";
651
    
652
    runTest(testfile, loglocation, idealloglocation);
653
  }
654
  
655
  /**
656
   * Test /WSDL/ExtensibleElements/ExtensiblePortType.wsdl
657
   */
658
  public void testExtensiblePortType()
659
  {
660
    String testname = "ExtensiblePortType";
661
    String testfile = FILE_PROTOCOL + PLUGIN_ABSOLUTE_PATH + SAMPLES_DIR + WSDL_DIR + "ExtensibleElements/" + testname + ".wsdl";
662
    String loglocation = PLUGIN_ABSOLUTE_PATH + GENERATED_RESULTS_DIR + WSDL_DIR + "ExtensibleElements/" + testname + ".wsdl-log";
663
    String idealloglocation = PLUGIN_ABSOLUTE_PATH + IDEAL_RESULTS_DIR + WSDL_DIR + "ExtensibleElements/" + testname + ".wsdl-log";
664
    
665
    runTest(testfile, loglocation, idealloglocation);
666
  }
667
  
668
  /**
669
   * Test /WSDL/ExtensibleElements/ExtensibleServicePort.wsdl
670
   */
671
  public void testExtensibleServicePort()
672
  {
673
    String testname = "ExtensibleServicePort";
674
    String testfile = FILE_PROTOCOL + PLUGIN_ABSOLUTE_PATH + SAMPLES_DIR + WSDL_DIR + "ExtensibleElements/" + testname + ".wsdl";
675
    String loglocation = PLUGIN_ABSOLUTE_PATH + GENERATED_RESULTS_DIR + WSDL_DIR + "ExtensibleElements/" + testname + ".wsdl-log";
676
    String idealloglocation = PLUGIN_ABSOLUTE_PATH + IDEAL_RESULTS_DIR + WSDL_DIR + "ExtensibleElements/" + testname + ".wsdl-log";
677
    
678
    runTest(testfile, loglocation, idealloglocation);
679
  }
628
}
680
}
(-)src/org/eclipse/wst/wsdl/validation/internal/wsdl11/xsd/InlineSchemaGeneratorTest.java (-23 / +24 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2001, 2005 IBM Corporation and others.
2
 * Copyright (c) 2001, 2008 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 23-28 Link Here
23
import org.w3c.dom.Element;
23
import org.w3c.dom.Element;
24
24
25
import com.ibm.wsdl.Constants;
25
import com.ibm.wsdl.Constants;
26
import com.ibm.wsdl.extensions.schema.SchemaConstants;
26
27
27
/**
28
/**
28
 * Tests for org.eclipse.wst.wsdl.validation.internal.wsdl11.xsd.InlineSchemaGenerator.
29
 * Tests for org.eclipse.wst.wsdl.validation.internal.wsdl11.xsd.InlineSchemaGenerator.
Lines 92-108 Link Here
92
  public void testGetNSResolver() 
93
  public void testGetNSResolver() 
93
  {
94
  {
94
    Document doc = new DocumentImpl();
95
    Document doc = new DocumentImpl();
95
	Element rootElem = doc.createElementNS(Constants.NS_URI_XSD_2001, "schema");
96
	Element rootElem = doc.createElementNS(SchemaConstants.NS_URI_XSD_2001, "schema");
96
97
97
	// Check that the resolver is empty.
98
	// Check that the resolver is empty.
98
	Hashtable resolver = generator.getNSResolver(rootElem);
99
	Hashtable resolver = generator.getNSResolver(rootElem);
99
	assertTrue("The resolver is not empty.", resolver.isEmpty());
100
	assertTrue("The resolver is not empty.", resolver.isEmpty());
100
	
101
	
101
	// Check the resolver contains one value.
102
	// Check the resolver contains one value.
102
	rootElem.setAttribute("xmlns", Constants.NS_URI_XSD_2001);
103
	rootElem.setAttribute("xmlns", SchemaConstants.NS_URI_XSD_2001);
103
	resolver = generator.getNSResolver(rootElem);
104
	resolver = generator.getNSResolver(rootElem);
104
	assertTrue("The resolver does not contain the empty namespace.", resolver.containsKey(""));
105
	assertTrue("The resolver does not contain the empty namespace.", resolver.containsKey(""));
105
	assertEquals("The resolver does not contain the correct value for the empty namespace.", Constants.NS_URI_XSD_2001, resolver.get(""));
106
	assertEquals("The resolver does not contain the correct value for the empty namespace.", SchemaConstants.NS_URI_XSD_2001, resolver.get(""));
106
	
107
	
107
	// Check the resolver contains two values.
108
	// Check the resolver contains two values.
108
	rootElem.setAttribute("xmlns:other", "http://othernamespace");
109
	rootElem.setAttribute("xmlns:other", "http://othernamespace");
Lines 112-118 Link Here
112
	
113
	
113
	// Check the resolver still contains the empty namespace.
114
	// Check the resolver still contains the empty namespace.
114
	assertTrue("The resolver does not contain the empty namespace after adding a second namespace.", resolver.containsKey(""));
115
	assertTrue("The resolver does not contain the empty namespace after adding a second namespace.", resolver.containsKey(""));
115
	assertEquals("The resolver does not contain the correct value for the empty namespace after adding a second namespace.", Constants.NS_URI_XSD_2001, resolver.get(""));
116
	assertEquals("The resolver does not contain the correct value for the empty namespace after adding a second namespace.", SchemaConstants.NS_URI_XSD_2001, resolver.get(""));
116
	
117
	
117
	// Check the resolver doesn't contain non-xmlns attribute value.
118
	// Check the resolver doesn't contain non-xmlns attribute value.
118
	rootElem.setAttribute("type:other2", "other2:type");
119
	rootElem.setAttribute("type:other2", "other2:type");
Lines 127-134 Link Here
127
  {
128
  {
128
	// Check document that contains no required namespaces and no prefix.
129
	// Check document that contains no required namespaces and no prefix.
129
	Document doc = new DocumentImpl();
130
	Document doc = new DocumentImpl();
130
	Element rootElem = doc.createElementNS(Constants.NS_URI_XSD_2001, "schema");
131
	Element rootElem = doc.createElementNS(SchemaConstants.NS_URI_XSD_2001, "schema");
131
	rootElem.setAttribute("xmlns",Constants.NS_URI_XSD_2001);
132
	rootElem.setAttribute("xmlns",SchemaConstants.NS_URI_XSD_2001);
132
	//doc.appendChild(rootElem);
133
	//doc.appendChild(rootElem);
133
	
134
	
134
	List reqNSs = generator.getNamespacePrefixes(rootElem);
135
	List reqNSs = generator.getNamespacePrefixes(rootElem);
Lines 136-159 Link Here
136
	assertEquals("The required namespace list does not contain one empty string.", "", reqNSs.get(0));
137
	assertEquals("The required namespace list does not contain one empty string.", "", reqNSs.get(0));
137
	
138
	
138
	// Check document that contains no required namespaces and the xsd prefix.
139
	// Check document that contains no required namespaces and the xsd prefix.
139
	Element rootElem2 = doc.createElementNS(Constants.NS_URI_XSD_2001, "xsd:schema");
140
	Element rootElem2 = doc.createElementNS(SchemaConstants.NS_URI_XSD_2001, "xsd:schema");
140
	rootElem2.setAttribute("xmlns:xsd",Constants.NS_URI_XSD_2001);
141
	rootElem2.setAttribute("xmlns:xsd",SchemaConstants.NS_URI_XSD_2001);
141
	List reqNSs2 = generator.getNamespacePrefixes(rootElem2);
142
	List reqNSs2 = generator.getNamespacePrefixes(rootElem2);
142
	assertEquals("The required namespace list does not contain the one string 'xsd'.", 1, reqNSs2.size());
143
	assertEquals("The required namespace list does not contain the one string 'xsd'.", 1, reqNSs2.size());
143
	assertEquals("The required namespace list does not contain the one string 'xsd'.", "xsd", reqNSs2.get(0));
144
	assertEquals("The required namespace list does not contain the one string 'xsd'.", "xsd", reqNSs2.get(0));
144
	
145
	
145
	// Check document that contains an element with a required namespace.
146
	// Check document that contains an element with a required namespace.
146
	Element rootElem4 = doc.createElementNS(Constants.NS_URI_XSD_2001, "xsd:schema");
147
	Element rootElem4 = doc.createElementNS(SchemaConstants.NS_URI_XSD_2001, "xsd:schema");
147
	rootElem2.setAttribute("xmlns:xsd",Constants.NS_URI_XSD_2001);
148
	rootElem2.setAttribute("xmlns:xsd",SchemaConstants.NS_URI_XSD_2001);
148
	Element diffNSElem = doc.createElementNS("http://othernamespace", "other:element");
149
	Element diffNSElem = doc.createElementNS("http://othernamespace", "other:element");
149
	rootElem4.appendChild(diffNSElem);
150
	rootElem4.appendChild(diffNSElem);
150
	List reqNSs4 = generator.getNamespacePrefixes(rootElem4);
151
	List reqNSs4 = generator.getNamespacePrefixes(rootElem4);
151
	assertTrue("The required namespace list does not contain the prefix 'other' when the namespace is specified for an element.", reqNSs4.contains("other"));
152
	assertTrue("The required namespace list does not contain the prefix 'other' when the namespace is specified for an element.", reqNSs4.contains("other"));
152
	
153
	
153
	// Check document that contains a type with a required namespace.
154
	// Check document that contains a type with a required namespace.
154
	Element rootElem5 = doc.createElementNS(Constants.NS_URI_XSD_2001, "xsd:schema");
155
	Element rootElem5 = doc.createElementNS(SchemaConstants.NS_URI_XSD_2001, "xsd:schema");
155
	rootElem5.setAttribute("xmlns:xsd",Constants.NS_URI_XSD_2001);
156
	rootElem5.setAttribute("xmlns:xsd",SchemaConstants.NS_URI_XSD_2001);
156
	Element otherElem = doc.createElementNS(Constants.NS_URI_XSD_2001, "xsd:element");
157
	Element otherElem = doc.createElementNS(SchemaConstants.NS_URI_XSD_2001, "xsd:element");
157
	otherElem.setAttribute("type", "other:type");
158
	otherElem.setAttribute("type", "other:type");
158
	rootElem5.appendChild(otherElem);
159
	rootElem5.appendChild(otherElem);
159
	List reqNSs5 = generator.getNamespacePrefixes(rootElem5);
160
	List reqNSs5 = generator.getNamespacePrefixes(rootElem5);
Lines 161-169 Link Here
161
	
162
	
162
	// Check document that contains an import. Import elements should be ignored.
163
	// Check document that contains an import. Import elements should be ignored.
163
	// This is a contrived example as it contains a type attribute for the import element.
164
	// This is a contrived example as it contains a type attribute for the import element.
164
	Element rootElem6 = doc.createElementNS(Constants.NS_URI_XSD_2001, "xsd:schema");
165
	Element rootElem6 = doc.createElementNS(SchemaConstants.NS_URI_XSD_2001, "xsd:schema");
165
	rootElem6.setAttribute("xmlns:xsd",Constants.NS_URI_XSD_2001);
166
	rootElem6.setAttribute("xmlns:xsd",SchemaConstants.NS_URI_XSD_2001);
166
	Element importElem = doc.createElementNS(Constants.NS_URI_XSD_2001, "xsd:import");
167
	Element importElem = doc.createElementNS(SchemaConstants.NS_URI_XSD_2001, "xsd:import");
167
	importElem.setAttribute("type", "other:type");
168
	importElem.setAttribute("type", "other:type");
168
	rootElem6.appendChild(importElem);
169
	rootElem6.appendChild(importElem);
169
	List reqNSs6 = generator.getNamespacePrefixes(rootElem6);
170
	List reqNSs6 = generator.getNamespacePrefixes(rootElem6);
Lines 172-180 Link Here
172
	
173
	
173
    // Check document that contains an include. Include elements should be ignored.
174
    // Check document that contains an include. Include elements should be ignored.
174
    // This is a contrived example as it contains a type attribute for the include element.
175
    // This is a contrived example as it contains a type attribute for the include element.
175
	Element rootElem7 = doc.createElementNS(Constants.NS_URI_XSD_2001, "xsd:schema");
176
	Element rootElem7 = doc.createElementNS(SchemaConstants.NS_URI_XSD_2001, "xsd:schema");
176
	rootElem7.setAttribute("xmlns:xsd",Constants.NS_URI_XSD_2001);
177
	rootElem7.setAttribute("xmlns:xsd",SchemaConstants.NS_URI_XSD_2001);
177
	Element includeElem = doc.createElementNS(Constants.NS_URI_XSD_2001, "xsd:include");
178
	Element includeElem = doc.createElementNS(SchemaConstants.NS_URI_XSD_2001, "xsd:include");
178
	includeElem.setAttribute("type", "other:type");
179
	includeElem.setAttribute("type", "other:type");
179
	rootElem7.appendChild(includeElem);
180
	rootElem7.appendChild(includeElem);
180
	List reqNSs7 = generator.getNamespacePrefixes(rootElem6);
181
	List reqNSs7 = generator.getNamespacePrefixes(rootElem6);
Lines 182-190 Link Here
182
	assertEquals("The required namespace list does not contain the one string 'xsd' when an import element is used.", "xsd", reqNSs7.get(0));
183
	assertEquals("The required namespace list does not contain the one string 'xsd' when an import element is used.", "xsd", reqNSs7.get(0));
183
	
184
	
184
	// Check document that contains attribute with a required namespace.
185
	// Check document that contains attribute with a required namespace.
185
	Element rootElem3 = doc.createElementNS(Constants.NS_URI_XSD_2001, "xsd:schema");
186
	Element rootElem3 = doc.createElementNS(SchemaConstants.NS_URI_XSD_2001, "xsd:schema");
186
	rootElem3.setAttribute("xmlns:xsd",Constants.NS_URI_XSD_2001);
187
	rootElem3.setAttribute("xmlns:xsd",SchemaConstants.NS_URI_XSD_2001);
187
	Element wsdlAttElem = doc.createElementNS(Constants.NS_URI_XSD_2001, "xsd:element");
188
	Element wsdlAttElem = doc.createElementNS(SchemaConstants.NS_URI_XSD_2001, "xsd:element");
188
	wsdlAttElem.setAttributeNS(Constants.NS_URI_WSDL, "wsdl:arrayType", "sometype[]");
189
	wsdlAttElem.setAttributeNS(Constants.NS_URI_WSDL, "wsdl:arrayType", "sometype[]");
189
	rootElem3.appendChild(wsdlAttElem);
190
	rootElem3.appendChild(wsdlAttElem);
190
	List reqNSs3 = generator.getNamespacePrefixes(rootElem3);
191
	List reqNSs3 = generator.getNamespacePrefixes(rootElem3);
(-)META-INF/MANIFEST.MF (-1 / +1 lines)
Lines 16-22 Link Here
16
 org.eclipse.wst.command.env.core,
16
 org.eclipse.wst.command.env.core,
17
 org.eclipse.wst.command.env,
17
 org.eclipse.wst.command.env,
18
 org.apache.ant,
18
 org.apache.ant,
19
 javax.wsdl;bundle-version="[1.4.0,1.5.0)",
19
 javax.wsdl;bundle-version="[1.5.0,1.6.0)",
20
 org.apache.xerces,
20
 org.apache.xerces,
21
 org.eclipse.wst.validation,
21
 org.eclipse.wst.validation,
22
 org.eclipse.wst.xml.core,
22
 org.eclipse.wst.xml.core,
(-)testresources/idealResults/WSDL/ExtensibleElements/ExtensibleServicePort.wsdl-log (+8 lines)
Added Link Here
1
number of errors      : 0
2
number of warnings    : 0
3
4
------------error list-------------------------------------------
5
(none)
6
------------warning list-----------------------------------------
7
(none)
8
-----------------------------------------------------------------
(-)testresources/idealResults/WSDL/ExtensibleElements/ExtensibleBinding.wsdl-log (+8 lines)
Added Link Here
1
number of errors      : 0
2
number of warnings    : 0
3
4
------------error list-------------------------------------------
5
(none)
6
------------warning list-----------------------------------------
7
(none)
8
-----------------------------------------------------------------
(-)testresources/idealResults/WSDL/ExtensibleElements/BadExtensibleElements.wsdl-log (+8 lines)
Added Link Here
1
number of errors      : 1
2
number of warnings    : 0
3
4
------------error list-------------------------------------------
5
The 'BadExtensibleElements' port type specified for the 'BadExtensibleElementsSOAP' binding is undefined. Check the 'BadExtensibleElements' port type name and ensure it is defined. [40, 82]
6
------------warning list-----------------------------------------
7
(none)
8
-----------------------------------------------------------------
(-)testresources/samples/WSDL/ExtensibleElements/ExtensiblePortType.wsdl (+57 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<wsdl:definitions name="ExtensiblePortType"
3
	targetNamespace="http://www.example.org/ExtensiblePortType/"
4
	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.example.org/ExtensiblePortType/"
5
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
6
	<wsdl:types>
7
		<xsd:schema targetNamespace="http://www.example.org/ExtensiblePortType/">
8
			<xsd:element name="NewOperation">
9
				<xsd:complexType>
10
					<xsd:sequence>
11
						<xsd:element name="in" type="xsd:string" />
12
					</xsd:sequence>
13
				</xsd:complexType>
14
			</xsd:element>
15
			<xsd:element name="NewOperationResponse">
16
				<xsd:complexType>
17
					<xsd:sequence>
18
						<xsd:element name="out" type="xsd:string" />
19
					</xsd:sequence>
20
				</xsd:complexType>
21
			</xsd:element>
22
		</xsd:schema>
23
	</wsdl:types>
24
	<wsdl:message name="NewOperationRequest">
25
		<wsdl:part element="tns:NewOperation" name="parameters" />
26
	</wsdl:message>
27
	<wsdl:message name="NewOperationResponse">
28
		<xsd:annotation></xsd:annotation>
29
		<wsdl:part element="tns:NewOperationResponse" name="parameters" />
30
	</wsdl:message>
31
	<wsdl:portType name="ExtensiblePortType">
32
		<wsdl:operation name="NewOperation">
33
			<xsd:annotation></xsd:annotation>
34
			<wsdl:input message="tns:NewOperationRequest"/>
35
			<wsdl:output message="tns:NewOperationResponse"/>
36
		</wsdl:operation>
37
	</wsdl:portType>
38
	<wsdl:binding name="ExtensiblePortTypeSOAP" type="tns:ExtensiblePortType">
39
		<soap:binding style="document"
40
			transport="http://schemas.xmlsoap.org/soap/http" />
41
		<wsdl:operation name="NewOperation">
42
			<soap:operation
43
				soapAction="http://www.example.org/ExtensiblePortType/NewOperation" />
44
			<wsdl:input>
45
				<soap:body use="literal" />
46
			</wsdl:input>
47
			<wsdl:output>
48
				<soap:body use="literal" />
49
			</wsdl:output>
50
		</wsdl:operation>
51
	</wsdl:binding>
52
	<wsdl:service name="ExtensiblePortType">
53
		<wsdl:port binding="tns:ExtensiblePortTypeSOAP" name="ExtensiblePortTypeSOAP">
54
			<soap:address location="http://www.example.org/" />
55
		</wsdl:port>
56
	</wsdl:service>
57
</wsdl:definitions>
(-)testresources/samples/WSDL/ExtensibleElements/ExtensibleServicePort.wsdl (+57 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<wsdl:definitions name="ExtensibleServicePort"
3
	targetNamespace="http://www.example.org/ExtensibleServicePort/"
4
	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.example.org/ExtensibleServicePort/"
5
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
6
	<wsdl:types>
7
		<xsd:schema targetNamespace="http://www.example.org/ExtensibleServicePort/">
8
			<xsd:element name="NewOperation">
9
				<xsd:complexType>
10
					<xsd:sequence>
11
						<xsd:element name="in" type="xsd:string" />
12
					</xsd:sequence>
13
				</xsd:complexType>
14
			</xsd:element>
15
			<xsd:element name="NewOperationResponse">
16
				<xsd:complexType>
17
					<xsd:sequence>
18
						<xsd:element name="out" type="xsd:string" />
19
					</xsd:sequence>
20
				</xsd:complexType>
21
			</xsd:element>
22
		</xsd:schema>
23
	</wsdl:types>
24
	<wsdl:message name="NewOperationRequest">
25
		<wsdl:part element="tns:NewOperation" name="parameters" />
26
	</wsdl:message>
27
	<wsdl:message name="NewOperationResponse">
28
		<wsdl:part element="tns:NewOperationResponse" name="parameters" />
29
	</wsdl:message>
30
	<wsdl:portType name="ExtensibleServicePort">
31
		<wsdl:operation name="NewOperation">
32
			<wsdl:input message="tns:NewOperationRequest" />
33
			<wsdl:output message="tns:NewOperationResponse" />
34
		</wsdl:operation>
35
	</wsdl:portType>
36
	<wsdl:binding name="ExtensibleServicePortSOAP" type="tns:ExtensibleServicePort">
37
		<soap:binding style="document"
38
			transport="http://schemas.xmlsoap.org/soap/http" />
39
		<wsdl:operation name="NewOperation">
40
			<soap:operation
41
				soapAction="http://www.example.org/ExtensibleServicePort/NewOperation" />
42
			<wsdl:input>
43
				<soap:body use="literal" />
44
			</wsdl:input>
45
			<wsdl:output>
46
				<soap:body use="literal" />
47
			</wsdl:output>
48
		</wsdl:operation>
49
	</wsdl:binding>
50
	<wsdl:service name="ExtensibleServicePort">
51
		<xsd:annotation></xsd:annotation>
52
		<wsdl:port binding="tns:ExtensibleServicePortSOAP" name="ExtensibleServicePortSOAP">
53
			<xsd:annotation></xsd:annotation>
54
			<soap:address location="http://www.example.org/" />
55
		</wsdl:port>
56
	</wsdl:service>
57
</wsdl:definitions>
(-)testresources/samples/WSDL/ExtensibleElements/ExtensibleBinding.wsdl (+77 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<wsdl:definitions name="ExtensibleBinding"
3
	targetNamespace="http://www.example.org/ExtensibleBinding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
4
	xmlns:tns="http://www.example.org/ExtensibleBinding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
5
	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
6
	<wsdl:types>
7
		<xsd:schema targetNamespace="http://www.example.org/ExtensibleBinding/">
8
			<xsd:element name="NewOperation">
9
				<xsd:complexType>
10
					<xsd:sequence>
11
						<xsd:element name="in" type="xsd:string" />
12
					</xsd:sequence>
13
				</xsd:complexType>
14
			</xsd:element>
15
			<xsd:element name="NewOperationResponse">
16
				<xsd:complexType>
17
					<xsd:sequence>
18
						<xsd:element name="out" type="xsd:string" />
19
					</xsd:sequence>
20
				</xsd:complexType>
21
			</xsd:element>
22
			<xsd:element name="NewOperationResponse1">
23
				<xsd:complexType>
24
					<xsd:sequence>
25
26
						<xsd:element name="out" type="xsd:string"></xsd:element>
27
					</xsd:sequence>
28
				</xsd:complexType>
29
			</xsd:element>
30
		</xsd:schema>
31
	</wsdl:types>
32
	<wsdl:message name="NewOperationRequest">
33
		<wsdl:part element="tns:NewOperation" name="parameters" />
34
	</wsdl:message>
35
	<wsdl:message name="NewOperationResponse">
36
		<wsdl:part element="tns:NewOperationResponse" name="parameters" />
37
	</wsdl:message>
38
	<wsdl:message name="NewOperationResponse1">
39
		<wsdl:part name="parameters" element="tns:NewOperationResponse1"></wsdl:part>
40
	</wsdl:message>
41
	<wsdl:portType name="ExtensibleBinding">
42
		<wsdl:operation name="NewOperation">
43
			<wsdl:input message="tns:NewOperationRequest" />
44
			<wsdl:output message="tns:NewOperationResponse" />
45
		</wsdl:operation>
46
	</wsdl:portType>
47
48
	<wsdl:binding name="ExtensibleBindingSOAP"
49
		type="tns:ExtensibleBinding">
50
		<xsd:annotation></xsd:annotation>
51
		<soap:binding style="document"
52
			transport="http://schemas.xmlsoap.org/soap/http" />
53
		<wsdl:operation name="NewOperation">
54
			<soap:operation
55
				soapAction="http://www.example.org/ExtensibleBinding/NewOperation" />
56
			<xsd:annotation></xsd:annotation>
57
			<wsdl:input>
58
				<xsd:annotation></xsd:annotation>
59
				<soap:body use="literal" />
60
			</wsdl:input>
61
			<wsdl:output>
62
				<xsd:annotation></xsd:annotation>
63
				<soap:body use="literal" />
64
			</wsdl:output>
65
			<wsdl:fault name="myfault">
66
				<xsd:annotation></xsd:annotation>
67
			</wsdl:fault>
68
		</wsdl:operation>
69
	</wsdl:binding>
70
	
71
	<wsdl:service name="ExtensibleBinding">
72
		<wsdl:port binding="tns:ExtensibleBindingSOAP" name="ExtensibleBindingSOAP">
73
			<soap:address location="http://www.example.org/" />
74
		</wsdl:port>
75
	</wsdl:service>
76
77
</wsdl:definitions>
(-)testresources/samples/WSDL/ExtensibleElements/BadExtensibleElements.wsdl (+59 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<wsdl:definitions name="BadExtensibleElements"
3
	targetNamespace="http://www.example.org/BadExtensibleElements/"
4
	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.example.org/BadExtensibleElements/"
5
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
6
	<wsdl:types>
7
		<xsd:schema targetNamespace="http://www.example.org/BadExtensibleElements/">
8
			<xsd:element name="NewOperation">
9
				<xsd:complexType>
10
					<xsd:sequence>
11
						<xsd:element name="in" type="xsd:string" />
12
					</xsd:sequence>
13
				</xsd:complexType>
14
			</xsd:element>
15
			<xsd:element name="NewOperationResponse">
16
				<xsd:complexType>
17
					<xsd:sequence>
18
						<xsd:element name="out" type="xsd:string" />
19
					</xsd:sequence>
20
				</xsd:complexType>
21
			</xsd:element>
22
		</xsd:schema>
23
	</wsdl:types>
24
	<wsdl:message name="NewOperationRequest">
25
		<wsdl:part element="tns:NewOperation" name="parameters" />
26
	</wsdl:message>
27
	<wsdl:message name="NewOperationResponse">
28
		<wsdl:part element="tns:NewOperationResponse" name="parameters" />
29
	</wsdl:message>
30
	<wsdl:portType name="BadExtensibleElements">
31
		<wsdl:operation name="NewOperation">
32
			<wsdl:input message="tns:NewOperationRequest">
33
				<xsd:annotation></xsd:annotation>
34
			</wsdl:input>
35
			<wsdl:output message="tns:NewOperationResponse">
36
				<xsd:annotation></xsd:annotation>
37
			</wsdl:output>
38
		</wsdl:operation>
39
	</wsdl:portType>
40
	<wsdl:binding name="BadExtensibleElementsSOAP" type="tns:BadExtensibleElements">
41
		<soap:binding style="document"
42
			transport="http://schemas.xmlsoap.org/soap/http" />
43
		<wsdl:operation name="NewOperation">
44
			<soap:operation
45
				soapAction="http://www.example.org/BadExtensibleElements/NewOperation" />
46
			<wsdl:input>
47
				<soap:body use="literal" />
48
			</wsdl:input>
49
			<wsdl:output>
50
				<soap:body use="literal" />
51
			</wsdl:output>
52
		</wsdl:operation>
53
	</wsdl:binding>
54
	<wsdl:service name="BadExtensibleElements">
55
		<wsdl:port binding="tns:BadExtensibleElementsSOAP" name="BadExtensibleElementsSOAP">
56
			<soap:address location="http://www.example.org/" />
57
		</wsdl:port>
58
	</wsdl:service>
59
</wsdl:definitions>
(-)testresources/idealResults/WSDL/ExtensibleElements/ExtensiblePortType.wsdl-log (+8 lines)
Added Link Here
1
number of errors      : 0
2
number of warnings    : 0
3
4
------------error list-------------------------------------------
5
(none)
6
------------warning list-----------------------------------------
7
(none)
8
-----------------------------------------------------------------

Return to bug 252257