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.
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/XXX/" | |
− | + | 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=" | + | <xsd:element name="in1" 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=" | + | <xsd:element name="out1" 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" /> |
− | + | ||
</wsdl:message> | </wsdl:message> | ||
<wsdl:message name="getPurchaseOrderResponse"> | <wsdl:message name="getPurchaseOrderResponse"> | ||
− | <wsdl:part element="tns:getPurchaseOrderResponse" | + | <wsdl:part element="tns: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>