<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="urn:SiteControllerwsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" name="SiteController" targetNamespace="urn:SiteControllerwsdl">
  <wsdl:types>
    <xsd:schema targetNamespace="urn:SiteControllerwsdl">
      <xsd:complexType name="ContactArray">
        <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:complexType name="Contact">
        <xsd:all>
          <xsd:element name="id" type="xsd:integer"/>
          <xsd:element name="name" type="xsd:string"/>
          <xsd:element name="phone" type="xsd:string"/>
        </xsd:all>
      </xsd:complexType>
    </xsd:schema>
  </wsdl:types>
  <wsdl:message name="loginRequest">
    <wsdl:part name="username" type="xsd:string"/>
    <wsdl:part name="password" type="xsd:string"/>
  </wsdl:message>
  <wsdl:message name="loginResponse">
    <wsdl:part name="return" type="xsd:boolean"/>
  </wsdl:message>
  <wsdl:message name="getContactsRequest"/>
  <wsdl:message name="getContactsResponse">
    <wsdl:part name="return" type="tns:ContactArray"/>
  </wsdl:message>
  <wsdl:message name="saveContactRequest">
    <wsdl:part name="contact" type="tns:Contact"/>
  </wsdl:message>
  <wsdl:message name="saveContactResponse">
    <wsdl:part name="return" type="xsd:boolean"/>
  </wsdl:message>
  <wsdl:message name="deleteContactRequest">
    <wsdl:part name="id" type="xsd:integer"/>
  </wsdl:message>
  <wsdl:message name="deleteContactResponse">
    <wsdl:part name="return" type="xsd:integer"/>
  </wsdl:message>
  <wsdl:portType name="SiteControllerPortType">
    <wsdl:operation name="login">
      <wsdl:documentation></wsdl:documentation>
      <wsdl:input message="tns:loginRequest"/>
      <wsdl:output message="tns:loginResponse"/>
    </wsdl:operation>
    <wsdl:operation name="getContacts">
      <wsdl:documentation>Returns all contact records.</wsdl:documentation>
      <wsdl:input message="tns:getContactsRequest"/>
      <wsdl:output message="tns:getContactsResponse"/>
    </wsdl:operation>
    <wsdl:operation name="saveContact">
      <wsdl:documentation>Updates or inserts a contact.
If the ID is null, an insertion will be performed;
Otherwise it updates the existing one.</wsdl:documentation>
      <wsdl:input message="tns:saveContactRequest"/>
      <wsdl:output message="tns:saveContactResponse"/>
    </wsdl:operation>
    <wsdl:operation name="deleteContact">
      <wsdl:documentation>Deletes the specified contact record.</wsdl:documentation>
      <wsdl:input message="tns:deleteContactRequest"/>
      <wsdl:output message="tns:deleteContactResponse"/>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="SiteControllerBinding" type="tns:SiteControllerPortType">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="login">
      <soap:operation soapAction="urn:SiteControllerwsdl#login" style="rpc"/>
      <wsdl:input>
        <soap:body use="encoded" namespace="urn:SiteControllerwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="encoded" namespace="urn:SiteControllerwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getContacts">
      <soap:operation soapAction="urn:SiteControllerwsdl#getContacts" style="rpc"/>
      <wsdl:input>
        <soap:body use="encoded" namespace="urn:SiteControllerwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="encoded" namespace="urn:SiteControllerwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="saveContact">
      <soap:operation soapAction="urn:SiteControllerwsdl#saveContact" style="rpc"/>
      <wsdl:input>
        <soap:body use="encoded" namespace="urn:SiteControllerwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="encoded" namespace="urn:SiteControllerwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="deleteContact">
      <soap:operation soapAction="urn:SiteControllerwsdl#deleteContact" style="rpc"/>
      <wsdl:input>
        <soap:body use="encoded" namespace="urn:SiteControllerwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="encoded" namespace="urn:SiteControllerwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="SiteControllerService">
    <wsdl:port name="SiteControllerPort" binding="tns:SiteControllerBinding">
      <soap:address location="http://sapi.movemama.com/yii/demos/phonebook/index.php?r=site/phonebook&amp;ws=1"/>
    </wsdl:port>
  </wsdl:service>
</definitions>
