MoralPolitics


Click here for a complete list of operations.

Respond

Draw the results of a test.

Test

The test form is only available for requests from the local machine.

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 /xpolitics.asmx HTTP/1.1
Host: www.moral-politics.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.moral-politics.com/Respond"

<?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>
    <Respond xmlns="http://www.moral-politics.com/">
      <LicenceKey>string</LicenceKey>
      <TestResults>
        <Result>
          <Id>int</Id>
          <Value>double</Value>
        </Result>
        <Result>
          <Id>int</Id>
          <Value>double</Value>
        </Result>
      </TestResults>
      <Language>USEnglish</Language>
      <IP>string</IP>
      <Size>int</Size>
      <ID>string</ID>
      <FullName>string</FullName>
    </Respond>
  </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>
    <RespondResponse xmlns="http://www.moral-politics.com/">
      <RespondResult>
        <Name>string</Name>
        <Help>string</Help>
        <xScore>double</xScore>
        <yScore>double</yScore>
        <Chart>
          <Url>string</Url>
          <Help>string</Help>
        </Chart>
        <Systems>
          <string>string</string>
          <string>string</string>
        </Systems>
        <Variations>
          <string>string</string>
          <string>string</string>
        </Variations>
        <Ideologies>
          <string>string</string>
          <string>string</string>
        </Ideologies>
        <Parties>
          <string>string</string>
          <string>string</string>
        </Parties>
        <Presidents>
          <string>string</string>
          <string>string</string>
        </Presidents>
        <Candidates1>
          <string>string</string>
          <string>string</string>
        </Candidates1>
        <Candidates2>
          <string>string</string>
          <string>string</string>
        </Candidates2>
        <SavedToDatabase>boolean</SavedToDatabase>
        <Total>double</Total>
        <SameIP>double</SameIP>
        <SameAnswers>double</SameAnswers>
        <CloseAnswers>double</CloseAnswers>
        <AboveX>double</AboveX>
        <AboveY>double</AboveY>
        <UnderX>double</UnderX>
        <UnderY>double</UnderY>
        <MoreSocialist>double</MoreSocialist>
        <MoreAuthoritarian>double</MoreAuthoritarian>
        <MoreConservative>double</MoreConservative>
        <MoreLiberal>double</MoreLiberal>
        <Facebook>double</Facebook>
      </RespondResult>
    </RespondResponse>
  </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 /xpolitics.asmx HTTP/1.1
Host: www.moral-politics.com
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>
    <Respond xmlns="http://www.moral-politics.com/">
      <LicenceKey>string</LicenceKey>
      <TestResults>
        <Result>
          <Id>int</Id>
          <Value>double</Value>
        </Result>
        <Result>
          <Id>int</Id>
          <Value>double</Value>
        </Result>
      </TestResults>
      <Language>USEnglish</Language>
      <IP>string</IP>
      <Size>int</Size>
      <ID>string</ID>
      <FullName>string</FullName>
    </Respond>
  </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>
    <RespondResponse xmlns="http://www.moral-politics.com/">
      <RespondResult>
        <Name>string</Name>
        <Help>string</Help>
        <xScore>double</xScore>
        <yScore>double</yScore>
        <Chart>
          <Url>string</Url>
          <Help>string</Help>
        </Chart>
        <Systems>
          <string>string</string>
          <string>string</string>
        </Systems>
        <Variations>
          <string>string</string>
          <string>string</string>
        </Variations>
        <Ideologies>
          <string>string</string>
          <string>string</string>
        </Ideologies>
        <Parties>
          <string>string</string>
          <string>string</string>
        </Parties>
        <Presidents>
          <string>string</string>
          <string>string</string>
        </Presidents>
        <Candidates1>
          <string>string</string>
          <string>string</string>
        </Candidates1>
        <Candidates2>
          <string>string</string>
          <string>string</string>
        </Candidates2>
        <SavedToDatabase>boolean</SavedToDatabase>
        <Total>double</Total>
        <SameIP>double</SameIP>
        <SameAnswers>double</SameAnswers>
        <CloseAnswers>double</CloseAnswers>
        <AboveX>double</AboveX>
        <AboveY>double</AboveY>
        <UnderX>double</UnderX>
        <UnderY>double</UnderY>
        <MoreSocialist>double</MoreSocialist>
        <MoreAuthoritarian>double</MoreAuthoritarian>
        <MoreConservative>double</MoreConservative>
        <MoreLiberal>double</MoreLiberal>
        <Facebook>double</Facebook>
      </RespondResult>
    </RespondResponse>
  </soap12:Body>
</soap12:Envelope>