<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ChessPlanetAuthservice" targetNamespace="http://tempuri.org/" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="urn:uChessPlanetAuth" xmlns:ns2="urn:NSTypes">
  <types>
    <xs:schema targetNamespace="urn:uChessPlanetAuth" xmlns="urn:uChessPlanetAuth">
      <xs:simpleType name="CreateUserResult">
        <xs:restriction base="xs:string">
          <xs:enumeration value="Succeeded"/>
          <xs:enumeration value="InternalError"/>
          <xs:enumeration value="AlreadyExists"/>
          <xs:enumeration value="InvalidUserName"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:schema>
    <xs:schema targetNamespace="http://tempuri.org/" xmlns="http://tempuri.org/">
      <xs:complexType name="UserInfo">
        <xs:sequence>
          <xs:element name="UserName" type="xs:string"/>
          <xs:element name="PrivateEmail" type="xs:string"/>
          <xs:element name="PublicEmail" type="xs:string"/>
          <xs:element name="FirstName" type="xs:string"/>
          <xs:element name="LastName" type="xs:string"/>
          <xs:element name="SecondName" type="xs:string"/>
          <xs:element name="ChessLevel" type="ns2:TGZChessPlayerLevel"/>
          <xs:element name="EloRating" type="xs:int"/>
        </xs:sequence>
      </xs:complexType>
    </xs:schema>
    <xs:schema targetNamespace="urn:NSTypes" xmlns="urn:NSTypes">
      <xs:simpleType name="TGZChessPlayerLevel">
        <xs:restriction base="xs:string">
          <xs:enumeration value="hpUndefined"/>
          <xs:enumeration value="hpNone"/>
          <xs:enumeration value="hpLevel4"/>
          <xs:enumeration value="hpLevel3"/>
          <xs:enumeration value="hpLevel2"/>
          <xs:enumeration value="hpLevel1"/>
          <xs:enumeration value="hpCandidate"/>
          <xs:enumeration value="hpMaster"/>
          <xs:enumeration value="hpInternationalMaster"/>
          <xs:enumeration value="hpGrandmaster"/>
          <xs:enumeration value="hpWomanGrandmaster"/>
          <xs:enumeration value="hpMasterFIDEMale"/>
          <xs:enumeration value="hpMasterFIDEFemale"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:schema>
  </types>
  <message name="Authenticate0Request">
    <part name="UserName" type="xs:string"/>
    <part name="Password" type="xs:string"/>
  </message>
  <message name="Authenticate0Response">
    <part name="return" type="xs:boolean"/>
  </message>
  <message name="CreateUser1Request">
    <part name="UserName" type="xs:string"/>
    <part name="Email" type="xs:string"/>
    <part name="Password" type="xs:string"/>
  </message>
  <message name="CreateUser1Response">
    <part name="return" type="ns1:CreateUserResult"/>
  </message>
  <message name="GetUserInfo2Request">
    <part name="UserName" type="xs:string"/>
  </message>
  <message name="GetUserInfo2Response">
    <part name="return" type="tns:UserInfo"/>
  </message>
  <portType name="ChessPlanetAuth">
    <operation name="Authenticate">
      <input message="tns:Authenticate0Request"/>
      <output message="tns:Authenticate0Response"/>
    </operation>
    <operation name="CreateUser">
      <input message="tns:CreateUser1Request"/>
      <output message="tns:CreateUser1Response"/>
    </operation>
    <operation name="GetUserInfo">
      <input message="tns:GetUserInfo2Request"/>
      <output message="tns:GetUserInfo2Response"/>
    </operation>
  </portType>
  <binding name="ChessPlanetAuthbinding" type="tns:ChessPlanetAuth">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="Authenticate">
      <soap:operation soapAction="http://tempuri.org/#Authenticate" style="rpc"/>
      <input message="tns:Authenticate0Request">
        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://tempuri.org/"/>
      </input>
      <output message="tns:Authenticate0Response">
        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://tempuri.org/"/>
      </output>
    </operation>
    <operation name="CreateUser">
      <soap:operation soapAction="http://tempuri.org/#CreateUser" style="rpc"/>
      <input message="tns:CreateUser1Request">
        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://tempuri.org/"/>
      </input>
      <output message="tns:CreateUser1Response">
        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://tempuri.org/"/>
      </output>
    </operation>
    <operation name="GetUserInfo">
      <soap:operation soapAction="http://tempuri.org/#GetUserInfo" style="rpc"/>
      <input message="tns:GetUserInfo2Request">
        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://tempuri.org/"/>
      </input>
      <output message="tns:GetUserInfo2Response">
        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://tempuri.org/"/>
      </output>
    </operation>
  </binding>
  <service name="ChessPlanetAuthservice">
    <port name="ChessPlanetAuthPort" binding="tns:ChessPlanetAuthbinding">
      <soap:address location="http://server.chessok.com:9002/soap/ChessPlanetAuth"/>
    </port>
  </service>
</definitions>

