Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "WSDL Patterns"

 
Line 4: Line 4:
 
<b>Interface Pattern</b>
 
<b>Interface Pattern</b>
 
<pre>
 
<pre>
<wsdl:types>
+
<wsdl:types>
 
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.example.org/NewWSDLFile/"
+
                            xmlns:tns="http://www.example.org/XXX/"
    targetNamespace="http://www.example.org/NewWSDLFile/">
+
                            targetNamespace="http://www.example.org/XXX/">
 
<xsd:element name="getPurchaseOrderRequest">
 
<xsd:element name="getPurchaseOrderRequest">
 
<xsd:complexType>
 
<xsd:complexType>
 
<xsd:sequence>
 
<xsd:sequence>
<xsd:element name="parameter1"
+
<xsd:element name="in1" type="xsd:string" />
type="xsd:string" />
+
 
</xsd:sequence>
 
</xsd:sequence>
 
</xsd:complexType>
 
</xsd:complexType>
Line 19: Line 18:
 
<xsd:complexType>
 
<xsd:complexType>
 
<xsd:sequence>
 
<xsd:sequence>
<xsd:element name="parameter1"
+
<xsd:element name="out1" type="xsd:string" />
type="xsd:string" />
+
 
</xsd:sequence>
 
</xsd:sequence>
 
</xsd:complexType>
 
</xsd:complexType>
Line 27: Line 25:
 
</wsdl:types>
 
</wsdl:types>
 
<wsdl:message name="getPurchaseOrderRequest">
 
<wsdl:message name="getPurchaseOrderRequest">
<wsdl:part element="tns:getPurchaseOrderRequest"
+
<wsdl:part element="tns:getPurchaseOrderRequest" name="getPurchaseOrderRequest" />
name="getPurchaseOrderRequest" />
+
 
</wsdl:message>
 
</wsdl:message>
 
<wsdl:message name="getPurchaseOrderResponse">
 
<wsdl:message name="getPurchaseOrderResponse">
<wsdl:part element="tns:getPurchaseOrderResponse"
+
<wsdl:part element="tns:getPurchaseOrderResponse" name="getPurchaseOrderResponse" />
name="getPurchaseOrderResponse" />
+
 
</wsdl:message>
 
</wsdl:message>
 
<wsdl:portType name="PurchaseOrder">
 
<wsdl:portType name="PurchaseOrder">
Line 41: Line 37:
 
</wsdl:portType>
 
</wsdl:portType>
 
</pre>
 
</pre>
 +
 
<h2>HTTP GET</h2>
 
<h2>HTTP GET</h2>

Revision as of 03:28, 1 July 2006

SOAP Document Literal


Interface Pattern

	<wsdl:types>
		<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                            xmlns:tns="http://www.example.org/XXX/"
                            targetNamespace="http://www.example.org/XXX/">
			<xsd:element name="getPurchaseOrderRequest">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="in1" type="xsd:string" />
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="getPurchaseOrderResponse">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="out1" type="xsd:string" />
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
		</xsd:schema>
	</wsdl:types>
	<wsdl:message name="getPurchaseOrderRequest">
		<wsdl:part element="tns:getPurchaseOrderRequest" name="getPurchaseOrderRequest" />
	</wsdl:message>
	<wsdl:message name="getPurchaseOrderResponse">
		<wsdl:part element="tns:getPurchaseOrderResponse" name="getPurchaseOrderResponse" />
	</wsdl:message>
	<wsdl:portType name="PurchaseOrder">
		<wsdl:operation name="getPurchaseOrder">
			<wsdl:input message="tns:getPurchaseOrderRequest" />
			<wsdl:output message="tns:getPurchaseOrderResponse" />
		</wsdl:operation>
	</wsdl:portType>

HTTP GET

Back to the top