<?xml version="1.0" encoding="ISO-8859-1"?>
<definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:addressbook_wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:addressbook_wsdl">
<types>
<xsd:schema targetNamespace="urn:addressbook_wsdl"
>
 <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
 <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
 <xsd:complexType name="Contact">
  <xsd:all>
   <xsd:element name="id" type="xsd:int"/>
   <xsd:element name="first_name" type="xsd:string"/>
   <xsd:element name="last_name" type="xsd:string"/>
   <xsd:element name="email" type="xsd:string"/>
   <xsd:element name="phone_number" type="xsd:string"/>
  </xsd:all>
 </xsd:complexType>
 <xsd:complexType name="AddressBook">
  <xsd:complexContent>
   <xsd:restriction base="SOAP-ENC:Array">
    <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Contact[]"/>
   </xsd:restriction>
  </xsd:complexContent>
 </xsd:complexType>
</xsd:schema>
</types>
<message name="searchAddressBookRequest">
  <part name="query" type="xsd:string" /></message>
<message name="searchAddressBookResponse">
  <part name="return" type="tns:AddressBook" /></message>
<message name="updateContactRequest">
  <part name="new_contact" type="tns:Contact" /></message>
<message name="updateContactResponse">
  <part name="return" type="xsd:boolean" /></message>
<message name="deleteContactRequest">
  <part name="new_contact" type="tns:Contact" /></message>
<message name="deleteContactResponse">
  <part name="return" type="xsd:boolean" /></message>
<message name="insertContactRequest">
  <part name="new_contact" type="tns:Contact" /></message>
<message name="insertContactResponse">
  <part name="return" type="xsd:boolean" /></message>
<portType name="addressbook_wsdlPortType">
  <operation name="searchAddressBook">
    <documentation>Returns matching contacts</documentation>
    <input message="tns:searchAddressBookRequest"/>
    <output message="tns:searchAddressBookResponse"/>
  </operation>
  <operation name="updateContact">
    <documentation>Update contact</documentation>
    <input message="tns:updateContactRequest"/>
    <output message="tns:updateContactResponse"/>
  </operation>
  <operation name="deleteContact">
    <documentation>Delete contact</documentation>
    <input message="tns:deleteContactRequest"/>
    <output message="tns:deleteContactResponse"/>
  </operation>
  <operation name="insertContact">
    <documentation>Insert contact</documentation>
    <input message="tns:insertContactRequest"/>
    <output message="tns:insertContactResponse"/>
  </operation>
</portType>
<binding name="addressbook_wsdlBinding" type="tns:addressbook_wsdlPortType">
  <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
  <operation name="searchAddressBook">
    <soap:operation soapAction="addressbook_wsdl#search" style="rpc"/>
    <input><soap:body use="encoded" namespace="addressbook_wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="addressbook_wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="updateContact">
    <soap:operation soapAction="addressbook_wsdl#updateContact" style="rpc"/>
    <input><soap:body use="encoded" namespace="addressbook_wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="addressbook_wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="deleteContact">
    <soap:operation soapAction="addressbook_wsdl#deleteContact" style="rpc"/>
    <input><soap:body use="encoded" namespace="addressbook_wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="addressbook_wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="insertContact">
    <soap:operation soapAction="addressbook_wsdl#insertContact" style="rpc"/>
    <input><soap:body use="encoded" namespace="addressbook_wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="addressbook_wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
</binding>
<service name="addressbook_wsdl">
  <port name="addressbook_wsdlPort" binding="tns:addressbook_wsdlBinding">
    <soap:address location="http://discorganized.com/demos/nusoapflex/index.php"/>
  </port>
</service>
</definitions>