Example XML Request & Response - SurpassLocal GET TestSession

https://...surpass.com/api/v1/TestSession/3

 

<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://btl.com/secureassess/">

            <Response>

            <TestSession>

                        <Id>3</Id>

                        <Reference>NM46F64S</Reference>

                        <Href>http://172.16.3.96:82/api/v1/TestSession/3</Href>

                        <Keycode>NM46F64S</Keycode>

                        <Pin>8N8T7M</Pin>

                        <StartDate>2015-12-22</StartDate>

                        <EndDate>2015-12-22</EndDate>

                        <StartTime>0000</StartTime>

                        <EndTime>2359</EndTime>

                        <TestState>Archived</TestState>

                        <Subject>

                                    <Id>1</Id>

                                    <Reference>BTLS0001</Reference>

                                    <Href i:nil="true"/>

                                    <Name>BTL Subject</Name>

                        </Subject>

                        <Test>

                                    <Id>1</Id>

                                    <Reference>BTL Test</Reference>

                                    <Href i:nil="true"/>

                                    <Name>BTL Test</Name>

                        </Test>

                        <TestForm>

                                    <Id>1</Id>

                                    <Reference>BTL Test Form</Reference>

                                    <Href i:nil="true"/>

                                    <Name>BTL Test Form</Name>

                        </TestForm>

                        <Candidate>

                                    <Id>18</Id>

                                    <Reference>Candidate4</Reference>

                                    <Href i:nil="true"/>

                        </Candidate>

            </TestSession>

            </Response>

            <Errors/>

            <ServerTimeZone>GMT Standard Time</ServerTimeZone>

</Result>


https://...surpass.com/api/v1/TestSession/NM46F64S

 

<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://btl.com/secureassess/">

            <Response>

            <TestSession>

                        <Id>3</Id>

                        <Reference>NM46F64S</Reference>

                        <Href>http://172.16.3.96:82/api/v1/TestSession/3</Href>

                        <Keycode>NM46F64S</Keycode>

                        <Pin>8N8T7M</Pin>

                        <StartDate>2015-12-22</StartDate>

                        <EndDate>2015-12-22</EndDate>

                        <StartTime>0000</StartTime>

                        <EndTime>2359</EndTime>

                        <TestState>Archived</TestState>

                        <Subject>

                                    <Id>1</Id>

                                    <Reference>BTLS0001</Reference>

                                    <Href i:nil="true"/>

                                    <Name>BTL Subject</Name>

                        </Subject>

                        <Test>

                                    <Id>1</Id>

                                    <Reference>BTL Test</Reference>

                                    <Href i:nil="true"/>

                                    <Name>BTL Test</Name>

                        </Test>

                        <TestForm>

                                    <Id>1</Id>

                                    <Reference>BTL Test Form</Reference>

                                    <Href i:nil="true"/>

                                    <Name>BTL Test Form</Name>

                        </TestForm>

                        <Candidate>

                                    <Id>18</Id>

                                    <Reference>Candidate4</Reference>

                                    <Href i:nil="true"/>

                        </Candidate>

            </TestSession>

            </Response>

            <Errors/>

            <ServerTimeZone>GMT Standard Time</ServerTimeZone>

</Result>

Feedback and Knowledge Base