addSalesPerson - kristjant/veebiteenus GitHub Wiki

#addSalesPerson Teenus müüjate lisamiseks

#Sisendandmed:

  • apiToken - xs:string
  • requestId - xs:string
  • salesPerson - tns:salesPerson

tns:salesPerson:

  • name- xs:string
  • employer- xs:string
  • phone- xs:string
  • email- xs:string
  • car - tns:car - list

tns:car:

  • id- xs:int
  • salesPersonId- xs:int
  • make- xs:string
  • model- xs:string
  • price- xs:int
  • vin - xs:string
  • productionYear - xs:int
  • numberOfDoors - xs:int (2,3,4,5)
  • odometer- xs:int

#Sisendpäring:

  <web:addSalesPersonRequest>
     <web:apiToken>333</web:apiToken>
     <web:requestId>dsfsdfsdfsdf</web:requestId>
     <web:salesperson>
        <web:name>?</web:name>
        <web:employer>?</web:employer>
        <web:phone>2222</web:phone>
        <web:email>?</web:email>
        <!--Zero or more repetitions:-->
        <web:cars>
           <web:make>?</web:make>
           <web:model>?</web:model>
           <web:vin>?</web:vin>
           <web:productionYear>333</web:productionYear>
           <web:numberOfDoors>2</web:numberOfDoors>
           <web:odometer>2</web:odometer>
        </web:cars>
     </web:salesperson>
  </web:addSalesPersonRequest>

#Väljundandmed:

  • id- xs:int

#Väljund:

  <ns2:addSalesPersonResponse xmlns:ns2="http://kristjan.io/webService">
     <ns2:id>1</ns2:id>
  </ns2:addSalesPersonResponse>
⚠️ **GitHub.com Fallback** ⚠️