MyStudio
Click here for a complete list of operations.
ClassesGetSchedule
Retrieve classes schedule between a date range.
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /MyStudio.ASMX HTTP/1.1
Host: craque.sportstudio.pt
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.sportstudio.pt/ClassesGetSchedule"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ClassesGetSchedule xmlns="http://www.sportstudio.pt">
<SID>string</SID>
<ScheduleType>string</ScheduleType>
<StartDate>dateTime</StartDate>
<EndDate>dateTime</EndDate>
</ClassesGetSchedule>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ClassesGetScheduleResponse xmlns="http://www.sportstudio.pt">
<ClassesGetScheduleResult>
<ClassSchedule>
<class_date>dateTime</class_date>
<class_weekday>int</class_weekday>
<cod_turmas>int</cod_turmas>
<turmas_id>string</turmas_id>
<nome_turma>string</nome_turma>
<hrstart>string</hrstart>
<hrend>string</hrend>
<lotacao>int</lotacao>
<inside>int</inside>
<responsavel>int</responsavel>
<nome_responsavel>string</nome_responsavel>
<cod_instalacao>int</cod_instalacao>
<nome_instalacao>string</nome_instalacao>
<cod_mod_desportiva>int</cod_mod_desportiva>
<nome_modalidade>string</nome_modalidade>
<color>string</color>
<aheadreservetime>int</aheadreservetime>
<afterstarttolerance>int</afterstarttolerance>
<cod_scheduledetail>int</cod_scheduledetail>
<cod_lesson>int</cod_lesson>
<class_id>string</class_id>
<cod_clube>int</cod_clube>
<nome_clube>string</nome_clube>
<reserveref>string</reserveref>
</ClassSchedule>
<ClassSchedule>
<class_date>dateTime</class_date>
<class_weekday>int</class_weekday>
<cod_turmas>int</cod_turmas>
<turmas_id>string</turmas_id>
<nome_turma>string</nome_turma>
<hrstart>string</hrstart>
<hrend>string</hrend>
<lotacao>int</lotacao>
<inside>int</inside>
<responsavel>int</responsavel>
<nome_responsavel>string</nome_responsavel>
<cod_instalacao>int</cod_instalacao>
<nome_instalacao>string</nome_instalacao>
<cod_mod_desportiva>int</cod_mod_desportiva>
<nome_modalidade>string</nome_modalidade>
<color>string</color>
<aheadreservetime>int</aheadreservetime>
<afterstarttolerance>int</afterstarttolerance>
<cod_scheduledetail>int</cod_scheduledetail>
<cod_lesson>int</cod_lesson>
<class_id>string</class_id>
<cod_clube>int</cod_clube>
<nome_clube>string</nome_clube>
<reserveref>string</reserveref>
</ClassSchedule>
</ClassesGetScheduleResult>
</ClassesGetScheduleResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /MyStudio.ASMX HTTP/1.1
Host: craque.sportstudio.pt
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<ClassesGetSchedule xmlns="http://www.sportstudio.pt">
<SID>string</SID>
<ScheduleType>string</ScheduleType>
<StartDate>dateTime</StartDate>
<EndDate>dateTime</EndDate>
</ClassesGetSchedule>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<ClassesGetScheduleResponse xmlns="http://www.sportstudio.pt">
<ClassesGetScheduleResult>
<ClassSchedule>
<class_date>dateTime</class_date>
<class_weekday>int</class_weekday>
<cod_turmas>int</cod_turmas>
<turmas_id>string</turmas_id>
<nome_turma>string</nome_turma>
<hrstart>string</hrstart>
<hrend>string</hrend>
<lotacao>int</lotacao>
<inside>int</inside>
<responsavel>int</responsavel>
<nome_responsavel>string</nome_responsavel>
<cod_instalacao>int</cod_instalacao>
<nome_instalacao>string</nome_instalacao>
<cod_mod_desportiva>int</cod_mod_desportiva>
<nome_modalidade>string</nome_modalidade>
<color>string</color>
<aheadreservetime>int</aheadreservetime>
<afterstarttolerance>int</afterstarttolerance>
<cod_scheduledetail>int</cod_scheduledetail>
<cod_lesson>int</cod_lesson>
<class_id>string</class_id>
<cod_clube>int</cod_clube>
<nome_clube>string</nome_clube>
<reserveref>string</reserveref>
</ClassSchedule>
<ClassSchedule>
<class_date>dateTime</class_date>
<class_weekday>int</class_weekday>
<cod_turmas>int</cod_turmas>
<turmas_id>string</turmas_id>
<nome_turma>string</nome_turma>
<hrstart>string</hrstart>
<hrend>string</hrend>
<lotacao>int</lotacao>
<inside>int</inside>
<responsavel>int</responsavel>
<nome_responsavel>string</nome_responsavel>
<cod_instalacao>int</cod_instalacao>
<nome_instalacao>string</nome_instalacao>
<cod_mod_desportiva>int</cod_mod_desportiva>
<nome_modalidade>string</nome_modalidade>
<color>string</color>
<aheadreservetime>int</aheadreservetime>
<afterstarttolerance>int</afterstarttolerance>
<cod_scheduledetail>int</cod_scheduledetail>
<cod_lesson>int</cod_lesson>
<class_id>string</class_id>
<cod_clube>int</cod_clube>
<nome_clube>string</nome_clube>
<reserveref>string</reserveref>
</ClassSchedule>
</ClassesGetScheduleResult>
</ClassesGetScheduleResponse>
</soap12:Body>
</soap12:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /MyStudio.ASMX/ClassesGetSchedule?SID=string&ScheduleType=string&StartDate=string&EndDate=string HTTP/1.1 Host: craque.sportstudio.pt
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfClassSchedule xmlns="http://www.sportstudio.pt">
<ClassSchedule>
<class_date>dateTime</class_date>
<class_weekday>int</class_weekday>
<cod_turmas>int</cod_turmas>
<turmas_id>string</turmas_id>
<nome_turma>string</nome_turma>
<hrstart>string</hrstart>
<hrend>string</hrend>
<lotacao>int</lotacao>
<inside>int</inside>
<responsavel>int</responsavel>
<nome_responsavel>string</nome_responsavel>
<cod_instalacao>int</cod_instalacao>
<nome_instalacao>string</nome_instalacao>
<cod_mod_desportiva>int</cod_mod_desportiva>
<nome_modalidade>string</nome_modalidade>
<color>string</color>
<aheadreservetime>int</aheadreservetime>
<afterstarttolerance>int</afterstarttolerance>
<cod_scheduledetail>int</cod_scheduledetail>
<cod_lesson>int</cod_lesson>
<class_id>string</class_id>
<cod_clube>int</cod_clube>
<nome_clube>string</nome_clube>
<reserveref>string</reserveref>
</ClassSchedule>
<ClassSchedule>
<class_date>dateTime</class_date>
<class_weekday>int</class_weekday>
<cod_turmas>int</cod_turmas>
<turmas_id>string</turmas_id>
<nome_turma>string</nome_turma>
<hrstart>string</hrstart>
<hrend>string</hrend>
<lotacao>int</lotacao>
<inside>int</inside>
<responsavel>int</responsavel>
<nome_responsavel>string</nome_responsavel>
<cod_instalacao>int</cod_instalacao>
<nome_instalacao>string</nome_instalacao>
<cod_mod_desportiva>int</cod_mod_desportiva>
<nome_modalidade>string</nome_modalidade>
<color>string</color>
<aheadreservetime>int</aheadreservetime>
<afterstarttolerance>int</afterstarttolerance>
<cod_scheduledetail>int</cod_scheduledetail>
<cod_lesson>int</cod_lesson>
<class_id>string</class_id>
<cod_clube>int</cod_clube>
<nome_clube>string</nome_clube>
<reserveref>string</reserveref>
</ClassSchedule>
</ArrayOfClassSchedule>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /MyStudio.ASMX/ClassesGetSchedule HTTP/1.1 Host: craque.sportstudio.pt Content-Type: application/x-www-form-urlencoded Content-Length: length SID=string&ScheduleType=string&StartDate=string&EndDate=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfClassSchedule xmlns="http://www.sportstudio.pt">
<ClassSchedule>
<class_date>dateTime</class_date>
<class_weekday>int</class_weekday>
<cod_turmas>int</cod_turmas>
<turmas_id>string</turmas_id>
<nome_turma>string</nome_turma>
<hrstart>string</hrstart>
<hrend>string</hrend>
<lotacao>int</lotacao>
<inside>int</inside>
<responsavel>int</responsavel>
<nome_responsavel>string</nome_responsavel>
<cod_instalacao>int</cod_instalacao>
<nome_instalacao>string</nome_instalacao>
<cod_mod_desportiva>int</cod_mod_desportiva>
<nome_modalidade>string</nome_modalidade>
<color>string</color>
<aheadreservetime>int</aheadreservetime>
<afterstarttolerance>int</afterstarttolerance>
<cod_scheduledetail>int</cod_scheduledetail>
<cod_lesson>int</cod_lesson>
<class_id>string</class_id>
<cod_clube>int</cod_clube>
<nome_clube>string</nome_clube>
<reserveref>string</reserveref>
</ClassSchedule>
<ClassSchedule>
<class_date>dateTime</class_date>
<class_weekday>int</class_weekday>
<cod_turmas>int</cod_turmas>
<turmas_id>string</turmas_id>
<nome_turma>string</nome_turma>
<hrstart>string</hrstart>
<hrend>string</hrend>
<lotacao>int</lotacao>
<inside>int</inside>
<responsavel>int</responsavel>
<nome_responsavel>string</nome_responsavel>
<cod_instalacao>int</cod_instalacao>
<nome_instalacao>string</nome_instalacao>
<cod_mod_desportiva>int</cod_mod_desportiva>
<nome_modalidade>string</nome_modalidade>
<color>string</color>
<aheadreservetime>int</aheadreservetime>
<afterstarttolerance>int</afterstarttolerance>
<cod_scheduledetail>int</cod_scheduledetail>
<cod_lesson>int</cod_lesson>
<class_id>string</class_id>
<cod_clube>int</cod_clube>
<nome_clube>string</nome_clube>
<reserveref>string</reserveref>
</ClassSchedule>
</ArrayOfClassSchedule>