MoralPolitics


Click here for a complete list of operations.

DrawUserResults

Draw the results of a test for a user.

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
Name:
ID:
Language:
Size:

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/DrawUserResults"

<?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>
    <DrawUserResults xmlns="http://www.moral-politics.com/">
      <Name>string</Name>
      <ID>string</ID>
      <Language>USEnglish</Language>
      <Size>int</Size>
    </DrawUserResults>
  </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>
    <DrawUserResultsResponse xmlns="http://www.moral-politics.com/">
      <DrawUserResultsResult>
        <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>
      </DrawUserResultsResult>
    </DrawUserResultsResponse>
  </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>
    <DrawUserResults xmlns="http://www.moral-politics.com/">
      <Name>string</Name>
      <ID>string</ID>
      <Language>USEnglish</Language>
      <Size>int</Size>
    </DrawUserResults>
  </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>
    <DrawUserResultsResponse xmlns="http://www.moral-politics.com/">
      <DrawUserResultsResult>
        <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>
      </DrawUserResultsResult>
    </DrawUserResultsResponse>
  </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 /xpolitics.asmx/DrawUserResults?Name=string&ID=string&Language=string&Size=string HTTP/1.1
Host: www.moral-politics.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<PoliticalChart xmlns="http://www.moral-politics.com/">
  <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>
</PoliticalChart>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /xpolitics.asmx/DrawUserResults HTTP/1.1
Host: www.moral-politics.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

Name=string&ID=string&Language=string&Size=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<PoliticalChart xmlns="http://www.moral-politics.com/">
  <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>
</PoliticalChart>