MoralPolitics
Click here for a complete list of operations.
DrawFriendResults
Draw the results of a test for a user.
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 /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/DrawFriendResults"
<?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>
<DrawFriendResults xmlns="http://www.moral-politics.com/">
<Name>string</Name>
<ID>string</ID>
<FriendNames>string</FriendNames>
<FriendIDs>string</FriendIDs>
<Language>USEnglish</Language>
<Size>int</Size>
</DrawFriendResults>
</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>
<DrawFriendResultsResponse xmlns="http://www.moral-politics.com/">
<DrawFriendResultsResult>
<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>
</DrawFriendResultsResult>
</DrawFriendResultsResponse>
</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>
<DrawFriendResults xmlns="http://www.moral-politics.com/">
<Name>string</Name>
<ID>string</ID>
<FriendNames>string</FriendNames>
<FriendIDs>string</FriendIDs>
<Language>USEnglish</Language>
<Size>int</Size>
</DrawFriendResults>
</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>
<DrawFriendResultsResponse xmlns="http://www.moral-politics.com/">
<DrawFriendResultsResult>
<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>
</DrawFriendResultsResult>
</DrawFriendResultsResponse>
</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/DrawFriendResults?Name=string&ID=string&FriendNames=string&FriendIDs=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/DrawFriendResults HTTP/1.1 Host: www.moral-politics.com Content-Type: application/x-www-form-urlencoded Content-Length: length Name=string&ID=string&FriendNames=string&FriendIDs=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>