Skip to main content

Notice: This Wiki is now read only and edits are no longer 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"

 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<h2>SOAP Document Literal</h2>
+
<h2>SOAP Document Literal Wrapped</h2>
 +
([http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/#listing8 more info])
  
  
<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="getPurchaseOrder">
 
<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 19:
 
<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 26:
 
</wsdl:types>
 
</wsdl:types>
 
<wsdl:message name="getPurchaseOrderRequest">
 
<wsdl:message name="getPurchaseOrderRequest">
<wsdl:part element="tns:getPurchaseOrderRequest"
+
<wsdl:part name="parameters" element="tns:getPurchaseOrder"/>
name="getPurchaseOrderRequest" />
+
 
</wsdl:message>
 
</wsdl:message>
 
<wsdl:message name="getPurchaseOrderResponse">
 
<wsdl:message name="getPurchaseOrderResponse">
<wsdl:part element="tns:getPurchaseOrderResponse"
+
<wsdl:part name="parameters" element="tns:getPurchaseOrderResponse"/>
name="getPurchaseOrderResponse" />
+
 
</wsdl:message>
 
</wsdl:message>
 
<wsdl:portType name="PurchaseOrder">
 
<wsdl:portType name="PurchaseOrder">
Line 41: Line 38:
 
</wsdl:portType>
 
</wsdl:portType>
 
</pre>
 
</pre>
 +
 
<h2>HTTP GET</h2>
 
<h2>HTTP GET</h2>

Latest revision as of 03:35, 1 July 2006

SOAP Document Literal Wrapped

(more info)


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="getPurchaseOrder">
				<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 name="parameters" element="tns:getPurchaseOrder"/>
	</wsdl:message>
	<wsdl:message name="getPurchaseOrderResponse">
		<wsdl:part name="parameters" element="tns: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