<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions name="AddressBook" targetNamespace="http://example.com/AddressBook" xmlns:tns="http://example.com/AddressBook" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:types> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://example.com/AddressBook"> <xsd:complexType name="Address"> <xsd:sequence> <xsd:element name="Street" type="xsd:string"/> <xsd:element name="City" type="xsd:string"/> <xsd:element name="Province" type="xsd:string"/> <xsd:element name="PostalCode" type="xsd:string"/> <xsd:element name="PhoneNumber" type="xsd:string"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="Name"> <xsd:sequence> <xsd:element name="FirstName" type="xsd:string"/> <xsd:element name="LastName" type="xsd:string"/> </xsd:sequence> </xsd:complexType> <xsd:element name="Name" type="tns:Name"> </xsd:element> <xsd:element name="AddressBookInfo"> <xsd:complexType> <xsd:sequence> <xsd:element name="Name" type="tns:Name"/> <xsd:element name="Address" type="tns:Address"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> </wsdl:types> <wsdl:message name="GetInfoByNameRequest"> <wsdl:part name="Name" element="tns:Name"/> </wsdl:message> <wsdl:message name="GetInfoByNameResponse"> <wsdl:part name="AddressBookInfo" element="tns:AddressBookInfo"/> </wsdl:message> <wsdl:message name="SaveInfoRequest"> <wsdl:part name="AddressBookInfo" element="tns:AddressBookInfo"/> </wsdl:message> <wsdl:portType name="AddressBookPortType"> <wsdl:operation name="GetInfoByName"> <wsdl:input message="tns:GetInfoByNameRequest"/> <wsdl:output message="tns:GetInfoByNameResponse"/> </wsdl:operation> <wsdl:operation name="SaveInfo"> <wsdl:input message="tns:SaveInfoRequest"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="GetInfoByNameBinding" type="tns:AddressBookPortType"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="GetInfoByName"> <soap:operation soapAction="http://example.com/AddressBook/GetInfoByName"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="SaveInfo"> <soap:operation soapAction="http://example.com/AddressBook/SaveInfo"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> </wsdl:operation> </wsdl:binding> <wsdl:service name="GetInfoByNameService"> <wsdl:port name="Port" binding="tns:GetInfoByNameBinding"> <soap:address location="http://example.com/"/> </wsdl:port> </wsdl:service> </wsdl:definitions> |