employee
Click here for a complete list of operations.
setholiday
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 /webmethod/employee.asmx HTTP/1.1 Host: zaincare.docmate.app Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://tempuri.org/setholiday" <?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> <setholiday xmlns="http://tempuri.org/"> <holiday>dateTime</holiday> <holidaytitle>string</holidaytitle> </setholiday> </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> <setholidayResponse xmlns="http://tempuri.org/"> <setholidayResult> <status>boolean</status> <message>string</message> <emp> <dutyrotaemployeelist> <Employeeid>int</Employeeid> <Employeename>string</Employeename> <breaktim xsi:nil="true" /> </dutyrotaemployeelist> <dutyrotaemployeelist> <Employeeid>int</Employeeid> <Employeename>string</Employeename> <breaktim xsi:nil="true" /> </dutyrotaemployeelist> </emp> <time> <scheduletime> <schtime>dateTime</schtime> <apoint xsi:nil="true" /> <breakflag>boolean</breakflag> </scheduletime> <scheduletime> <schtime>dateTime</schtime> <apoint xsi:nil="true" /> <breakflag>boolean</breakflag> </scheduletime> </time> <holiday> <Id>int</Id> <Holidaydate>dateTime</Holidaydate> <Inactive>boolean</Inactive> <Holidaytitle>string</Holidaytitle> </holiday> <emplist> <dutyrotaemployeelist> <Employeeid>int</Employeeid> <Employeename>string</Employeename> <breaktim xsi:nil="true" /> </dutyrotaemployeelist> <dutyrotaemployeelist> <Employeeid>int</Employeeid> <Employeename>string</Employeename> <breaktim xsi:nil="true" /> </dutyrotaemployeelist> </emplist> <dept> <GM_Department> <DepartmentID>int</DepartmentID> <Title>string</Title> <Code>string</Code> <DepartmentTypeID>int</DepartmentTypeID> <Description>string</Description> <ShortCode>string</ShortCode> </GM_Department> <GM_Department> <DepartmentID>int</DepartmentID> <Title>string</Title> <Code>string</Code> <DepartmentTypeID>int</DepartmentTypeID> <Description>string</Description> <ShortCode>string</ShortCode> </GM_Department> </dept> <holidays> <tblholiday> <Id>int</Id> <Holidaydate>dateTime</Holidaydate> <Inactive>boolean</Inactive> <Holidaytitle>string</Holidaytitle> </tblholiday> <tblholiday> <Id>int</Id> <Holidaydate>dateTime</Holidaydate> <Inactive>boolean</Inactive> <Holidaytitle>string</Holidaytitle> </tblholiday> </holidays> </setholidayResult> </setholidayResponse> </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 /webmethod/employee.asmx HTTP/1.1 Host: zaincare.docmate.app 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> <setholiday xmlns="http://tempuri.org/"> <holiday>dateTime</holiday> <holidaytitle>string</holidaytitle> </setholiday> </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> <setholidayResponse xmlns="http://tempuri.org/"> <setholidayResult> <status>boolean</status> <message>string</message> <emp> <dutyrotaemployeelist> <Employeeid>int</Employeeid> <Employeename>string</Employeename> <breaktim xsi:nil="true" /> </dutyrotaemployeelist> <dutyrotaemployeelist> <Employeeid>int</Employeeid> <Employeename>string</Employeename> <breaktim xsi:nil="true" /> </dutyrotaemployeelist> </emp> <time> <scheduletime> <schtime>dateTime</schtime> <apoint xsi:nil="true" /> <breakflag>boolean</breakflag> </scheduletime> <scheduletime> <schtime>dateTime</schtime> <apoint xsi:nil="true" /> <breakflag>boolean</breakflag> </scheduletime> </time> <holiday> <Id>int</Id> <Holidaydate>dateTime</Holidaydate> <Inactive>boolean</Inactive> <Holidaytitle>string</Holidaytitle> </holiday> <emplist> <dutyrotaemployeelist> <Employeeid>int</Employeeid> <Employeename>string</Employeename> <breaktim xsi:nil="true" /> </dutyrotaemployeelist> <dutyrotaemployeelist> <Employeeid>int</Employeeid> <Employeename>string</Employeename> <breaktim xsi:nil="true" /> </dutyrotaemployeelist> </emplist> <dept> <GM_Department> <DepartmentID>int</DepartmentID> <Title>string</Title> <Code>string</Code> <DepartmentTypeID>int</DepartmentTypeID> <Description>string</Description> <ShortCode>string</ShortCode> </GM_Department> <GM_Department> <DepartmentID>int</DepartmentID> <Title>string</Title> <Code>string</Code> <DepartmentTypeID>int</DepartmentTypeID> <Description>string</Description> <ShortCode>string</ShortCode> </GM_Department> </dept> <holidays> <tblholiday> <Id>int</Id> <Holidaydate>dateTime</Holidaydate> <Inactive>boolean</Inactive> <Holidaytitle>string</Holidaytitle> </tblholiday> <tblholiday> <Id>int</Id> <Holidaydate>dateTime</Holidaydate> <Inactive>boolean</Inactive> <Holidaytitle>string</Holidaytitle> </tblholiday> </holidays> </setholidayResult> </setholidayResponse> </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 /webmethod/employee.asmx/setholiday?holiday=string&holidaytitle=string HTTP/1.1 Host: zaincare.docmate.app
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <rtndutyrota xmlns="http://tempuri.org/"> <status>boolean</status> <message>string</message> <emp> <dutyrotaemployeelist> <Employeeid>int</Employeeid> <Employeename>string</Employeename> <breaktim> <tblemployeebreaktime d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <tblemployeebreaktime d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </breaktim> </dutyrotaemployeelist> <dutyrotaemployeelist> <Employeeid>int</Employeeid> <Employeename>string</Employeename> <breaktim> <tblemployeebreaktime d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <tblemployeebreaktime d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </breaktim> </dutyrotaemployeelist> </emp> <time> <scheduletime> <schtime>dateTime</schtime> <apoint> <appointments d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <appointments d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </apoint> <breakflag>boolean</breakflag> </scheduletime> <scheduletime> <schtime>dateTime</schtime> <apoint> <appointments d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <appointments d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </apoint> <breakflag>boolean</breakflag> </scheduletime> </time> <holiday> <Id>int</Id> <Holidaydate>dateTime</Holidaydate> <Inactive>boolean</Inactive> <Holidaytitle>string</Holidaytitle> </holiday> <emplist> <dutyrotaemployeelist> <Employeeid>int</Employeeid> <Employeename>string</Employeename> <breaktim> <tblemployeebreaktime d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <tblemployeebreaktime d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </breaktim> </dutyrotaemployeelist> <dutyrotaemployeelist> <Employeeid>int</Employeeid> <Employeename>string</Employeename> <breaktim> <tblemployeebreaktime d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <tblemployeebreaktime d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </breaktim> </dutyrotaemployeelist> </emplist> <dept> <GM_Department> <DepartmentID>int</DepartmentID> <Title>string</Title> <Code>string</Code> <DepartmentTypeID>int</DepartmentTypeID> <Description>string</Description> <ShortCode>string</ShortCode> </GM_Department> <GM_Department> <DepartmentID>int</DepartmentID> <Title>string</Title> <Code>string</Code> <DepartmentTypeID>int</DepartmentTypeID> <Description>string</Description> <ShortCode>string</ShortCode> </GM_Department> </dept> <holidays> <tblholiday> <Id>int</Id> <Holidaydate>dateTime</Holidaydate> <Inactive>boolean</Inactive> <Holidaytitle>string</Holidaytitle> </tblholiday> <tblholiday> <Id>int</Id> <Holidaydate>dateTime</Holidaydate> <Inactive>boolean</Inactive> <Holidaytitle>string</Holidaytitle> </tblholiday> </holidays> </rtndutyrota>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /webmethod/employee.asmx/setholiday HTTP/1.1 Host: zaincare.docmate.app Content-Type: application/x-www-form-urlencoded Content-Length: length holiday=string&holidaytitle=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <rtndutyrota xmlns="http://tempuri.org/"> <status>boolean</status> <message>string</message> <emp> <dutyrotaemployeelist> <Employeeid>int</Employeeid> <Employeename>string</Employeename> <breaktim> <tblemployeebreaktime d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <tblemployeebreaktime d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </breaktim> </dutyrotaemployeelist> <dutyrotaemployeelist> <Employeeid>int</Employeeid> <Employeename>string</Employeename> <breaktim> <tblemployeebreaktime d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <tblemployeebreaktime d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </breaktim> </dutyrotaemployeelist> </emp> <time> <scheduletime> <schtime>dateTime</schtime> <apoint> <appointments d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <appointments d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </apoint> <breakflag>boolean</breakflag> </scheduletime> <scheduletime> <schtime>dateTime</schtime> <apoint> <appointments d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <appointments d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </apoint> <breakflag>boolean</breakflag> </scheduletime> </time> <holiday> <Id>int</Id> <Holidaydate>dateTime</Holidaydate> <Inactive>boolean</Inactive> <Holidaytitle>string</Holidaytitle> </holiday> <emplist> <dutyrotaemployeelist> <Employeeid>int</Employeeid> <Employeename>string</Employeename> <breaktim> <tblemployeebreaktime d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <tblemployeebreaktime d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </breaktim> </dutyrotaemployeelist> <dutyrotaemployeelist> <Employeeid>int</Employeeid> <Employeename>string</Employeename> <breaktim> <tblemployeebreaktime d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <tblemployeebreaktime d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </breaktim> </dutyrotaemployeelist> </emplist> <dept> <GM_Department> <DepartmentID>int</DepartmentID> <Title>string</Title> <Code>string</Code> <DepartmentTypeID>int</DepartmentTypeID> <Description>string</Description> <ShortCode>string</ShortCode> </GM_Department> <GM_Department> <DepartmentID>int</DepartmentID> <Title>string</Title> <Code>string</Code> <DepartmentTypeID>int</DepartmentTypeID> <Description>string</Description> <ShortCode>string</ShortCode> </GM_Department> </dept> <holidays> <tblholiday> <Id>int</Id> <Holidaydate>dateTime</Holidaydate> <Inactive>boolean</Inactive> <Holidaytitle>string</Holidaytitle> </tblholiday> <tblholiday> <Id>int</Id> <Holidaydate>dateTime</Holidaydate> <Inactive>boolean</Inactive> <Holidaytitle>string</Holidaytitle> </tblholiday> </holidays> </rtndutyrota>