CreateAdvocacyData

Initial Build

2006.2

xWEB

Web Method

Response Type

n/a

This method inserts advocacy data for US Representatives and US Senators in the gr_congress_fed database table. This method can only create content and cannot update content.

Parameters

o.CreateAdvocacyData(oNode as XmlNode)

Sample Request

Note: The XML message is shortened for brevity.

<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Header>
<namesp1:AuthorizationToken xmlns:namesp1="http://www.avectra.com/2005/">
<namesp1:Token>4fa88761-3f98-4149-bd1e-d03b43c543af</namesp1:Token>
</namesp1:AuthorizationToken>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<namesp2:CreateAdvocacyData xmlns:namesp2="http://www.avectra.com/2005/">
<namesp2:oNode>
<namesp2:congressmembers SOAP-ENC:arrayType="xsd:ur-type[535]">
<namesp2:Facade>
<namesp2:cgf_office_state>AK</namesp2:cgf_office_state>
<namesp2:cgf_last_name>Young</namesp2:cgf_last_name>
<namesp2:cgf_comments>Rep. Don Young (REP-AK01)</namesp2:cgf_comments>
<namesp2:cgf_district>AK01</namesp2:cgf_district>
<namesp2:cgf_first_name>Don</namesp2:cgf_first_name>
<namesp2:cgf_prefix>Honorable</namesp2:cgf_prefix>
<namesp2:cgf_type>Rep.</namesp2:cgf_type>
<namesp2:cgf_http>http://capwiz.com/ntma/bio/?id=181</namesp2:cgf_http>
<namesp2:cgf_party>REP</namesp2:cgf_party>
<namesp2:cgf_id>001</namesp2:cgf_id>
<namesp2:cgf_home_city_state_zip> </namesp2:cgf_home_city_state_zip>
</namesp2:Facade>
<namesp2:Facade>
<namesp2:cgf_office_state>AL</namesp2:cgf_office_state>
<namesp2:cgf_last_name>Bonner</namesp2:cgf_last_name>
<namesp2:cgf_comments>Rep. Jo Bonner (REP-AL01)</namesp2:cgf_comments>
<namesp2:cgf_district>AL01</namesp2:cgf_district>
<namesp2:cgf_first_name>Jo</namesp2:cgf_first_name>
<namesp2:cgf_prefix>Honorable</namesp2:cgf_prefix>
<namesp2:cgf_type>Rep.</namesp2:cgf_type>
<namesp2:cgf_http>http://capwiz.com/ntma/bio/?id=130760</namesp2:cgf_http>
<namesp2:cgf_party>REP</namesp2:cgf_party>
<namesp2:cgf_id>002</namesp2:cgf_id>
<namesp2:cgf_home_city_state_zip> </namesp2:cgf_home_city_state_zip>
</namesp2:Facade>
</namesp2:congressmembers>
<namesp2:oNode>
<namesp2:CreateAdvocacyData>
<SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Sample Response

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soap:Header>
<AuthorizationToken xmlns="http://www.avectra.com/2005/">
<Token>c7f3609d-8b78-4132-855d-11f3073d0aaf</Token>
</AuthorizationToken>
<wsa:Action>http://www.avectra.com/2005/CreateAdvocacyDataResponse</wsa:Action>
<wsa:MessageID>uuid:7a9445e5-37f6-4204-88f6-a659290c2a3c</wsa:MessageID>
<wsa:RelatesTo>uuid:35c742ad-eb74-4996-b29e-a23cc4bcb2fe</wsa:RelatesTo>
<wsa:To>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:To>
<wsse:Security>
<wsu:Timestamp wsu:Id="Timestamp-47236147-84a6-4705-b4e7-f2204ec67580">
<wsu:Created>2006-09-21T18:45:07Z</wsu:Created>
<wsu:Expires>2006-09-21T18:50:07Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
<soap:Body>
<CreateAdvocacyDataResponse xmlns="http://www.avectra.com/2005/"/>
</soap:Body>
</soap:Envelope>