<?xml version="1.0" encoding="UTF-8"?>
<definitions name="WebService"
  targetNamespace="http://www.handballmania.tk/fx/WebService.wsdl"
  xmlns="http://schemas.xmlsoap.org/wsdl/"
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:tns="http://www.handballmania.tk/fx/WebService.wsdl"
  xmlns:x="http://www.w3.org/2001/XMLSchema">
 
   <types>
     <x:schema targetNamespace="http://www.handballmania.tk/fx/WebService.wsdl"
         xmlns="http://www.w3.org/2001/XMLSchema">
	   <x:complexType name="HaMaResponse">
         <x:sequence>
		   <x:element name="DateCreated" type="x:dateTime"/>
		   <x:element name="Currency" type="x:string"/>
           <x:element name="Team" type="tns:Team" minOccurs="1" maxOccurs="1"/>
         </x:sequence>
       </x:complexType>
       <x:complexType name="Team">
         <x:sequence>
           <x:element name="Name" type="x:string"/>
           <x:element name="ID" type="x:int"/>
           <x:element name="Country" type="x:string"/>
           <x:element name="CountryID" type="x:string"/>
           <x:element name="Fans" type="x:int"/>
           <x:element name="RankPoints" type="x:int"/>
           <x:element name="LeagueID" type="x:int"/>
           <x:element name="LeagueLevel" type="x:int"/>
           <x:element name="LeagueName" type="x:string" minOccurs="0" maxOccurs="1"/>
           <x:element name="Money" type="x:int"/>
           <x:element name="Player" type="tns:Player" minOccurs="2" maxOccurs="unbounded"/>
         </x:sequence>
       </x:complexType>
       <x:complexType name="Player">
         <x:sequence>
           <x:element name="Name" type="x:string"/>
           <x:element name="ID" type="x:int"/>
           <x:element name="Country" type="x:string"/>
           <x:element name="CountryID" type="x:string"/>
           <x:element name="Age" type="x:int"/>
           <x:element name="Height" type="x:int"/>

           <x:element name="SkillIndex" type="x:int"/>
           <x:element name="Wage" type="x:int"/>
           <!-- If WeeksWithClub is not set it means the player has always played for the club. -->
           <x:element name="WeeksWithClub" type="x:int" minOccurs="0" maxOccurs="1"/>
           <x:element name="DaysInjured" type="x:int"/>
           <x:element name="Goalkeeping" type="x:int"/>
           <x:element name="FootWork" type="x:int"/>
           <x:element name="Passing" type="x:int"/>
           <x:element name="Creativity" type="x:int"/>

           <x:element name="Acceleration" type="x:int"/>
           <x:element name="WithoutBall" type="x:int"/>
           <x:element name="PenaltyScoring" type="x:int"/>
           <x:element name="Routine" type="x:int"/>
           <x:element name="Stamina" type="x:int"/>
           <x:element name="GoalsLeague" type="x:int"/>
           <x:element name="GoalsCup" type="x:int"/>
           <x:element name="GoalsTotal" type="x:int"/>
           <x:element name="Jersey" type="x:int"/>

           <!-- If NationalTeamMatches is not set it means the player is not on NT. If 0 it means player is on NT but has not played a maych yet -->
           <x:element name="NationalTeamMatches" type="x:int" minOccurs="0" maxOccurs="1"/>
         </x:sequence>
       </x:complexType>
      </x:schema>
   </types>
 
   <message name="GetTeamRequest">
     <part name="Username" type="x:string"/>
     <part name="SecurityCode" type="x:string"/>

   </message>
   <message name="GetTeamResponse">
     <part name="HaMaResponse" type="tns:HaMaResponse"/>
   </message>

   <portType name="HandballmaniaSoap">
     <operation name="GetTeam">
       <input message="tns:GetTeamRequest"/>
       <output message="tns:GetTeamResponse"/>

     </operation>
   </portType>

  <binding name="HandballmaniaBinding" type="tns:HandballmaniaSoap">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
    <operation name="GetTeam">
      <soap:operation soapAction="http://www.handballmania.tk/WebService/GetTeam" style="document" />
      <input>
        <soap:body use="literal" />

      </input>
      <output>
        <soap:body use="literal" />
      </output>
    </operation>
  </binding>

  <service name="Handballmania_Service">
     <documentation>Handballmania web soap service</documentation>

     <port name="HandballPort" binding="tns:HandballmaniaBinding">
       <soap:address location="http://handballmania.tk/WebService"/>
     </port>
   </service>
</definitions>

