The service interface in this WSDL document contains a port type
(NewWSDLFile), an operation (ProcessOrderOperation), an input message (inProcessOrderRequest),
and an output message (outProcessOrderResponse).
To create a WSDL file named
processCatalogOrder.wsdl from this WSDL document:
- Create an empty text file named processCatalogOrder.wsdl.
- Copy and paste the text in Figure 1 into
processCatalogOrder.wsdl.
- Save and close processCatalogOrder.wsdl.
Figure 1. Part 1 of the
text for processCatalogOrder.wsdl<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://tempuri.org/NewWSDLFile/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
name="NewWSDLFile" targetNamespace="http://tempuri.org/NewWSDLFile/">
<wsdl:types>
<xsd:schema targetNamespace="http://tempuri.org/NewWSDLFile/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="inProcessOrderResponse" type="xsd:string"/>
<xsd:element name="outProcessOrderRequest" type="xsd:string"/>
<xsd:complexType name="ReqProcessOrder">
<xsd:sequence>
<xsd:element name="accountNumber">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RespProcessOrder">
<xsd:sequence>
<xsd:element name="totalCost">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
Figure 2. Part 2 of the
text for processCatalogOrder.wsdl <xsd:element name="itemDescription">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="orderStatus">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="79"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="outProcessOrderResponse">
<wsdl:part type="tns:RespProcessOrder" name="outProcessOrderResponse"/>
</wsdl:message>
<wsdl:message name="inProcessOrderRequest">
<wsdl:part type="tns:ReqProcessOrder" name="inProcessOrderRequest"/>
</wsdl:message>
<wsdl:portType name="NewWSDLFile">
<wsdl:operation name="ProcessOrderOperation">
<wsdl:input message="tns:inProcessOrderRequest"/>
<wsdl:output message="tns:outProcessOrderResponse"/>
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>