LegislatorService


Click here for a complete list of operations.

GetLegislatorDetailByID

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 /Legislators/Legislators.asmx HTTP/1.1
Host: webservices.le.utah.gov
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://le.utah.gov/webservices/GetLegislatorDetailByID"

<?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>
    <GetLegislatorDetailByID xmlns="http://le.utah.gov/webservices/">
      <LegislatorID>string</LegislatorID>
      <StartDate>dateTime</StartDate>
      <EndDate>dateTime</EndDate>
    </GetLegislatorDetailByID>
  </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>
    <GetLegislatorDetailByIDResponse xmlns="http://le.utah.gov/webservices/">
      <GetLegislatorDetailByIDResult>
        <FirstName>string</FirstName>
        <MiddleInitial>string</MiddleInitial>
        <LastName>string</LastName>
        <District>int</District>
        <Party>string</Party>
        <House>string</House>
        <LegislatorID>string</LegislatorID>
        <LegislationLink>string</LegislationLink>
        <Address>string</Address>
        <City>string</City>
        <Zip>string</Zip>
        <Email>string</Email>
        <WorkPhone>string</WorkPhone>
        <HomePhone>string</HomePhone>
        <CellPhone>string</CellPhone>
        <Fax>string</Fax>
        <Position>string</Position>
        <Photo>string</Photo>
        <Committees>
          <Committee>
            <Description>string</Description>
            <LinkAddress>string</LinkAddress>
            <Type>string</Type>
            <Position>string</Position>
          </Committee>
          <Committee>
            <Description>string</Description>
            <LinkAddress>string</LinkAddress>
            <Type>string</Type>
            <Position>string</Position>
          </Committee>
        </Committees>
        <SocialContacts>
          <SocialLink>
            <Type>string</Type>
            <Link>string</Link>
          </SocialLink>
          <SocialLink>
            <Type>string</Type>
            <Link>string</Link>
          </SocialLink>
        </SocialContacts>
        <FirstYearServed>string</FirstYearServed>
        <Profession>string</Profession>
        <ProfessionalAffiliations>string</ProfessionalAffiliations>
        <Education>string</Education>
        <RecognitionsHonors>string</RecognitionsHonors>
        <BirthDay>string</BirthDay>
        <BioLink>string</BioLink>
        <ConflictOfInterestLink>string</ConflictOfInterestLink>
        <Comments>string</Comments>
      </GetLegislatorDetailByIDResult>
    </GetLegislatorDetailByIDResponse>
  </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 /Legislators/Legislators.asmx HTTP/1.1
Host: webservices.le.utah.gov
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>
    <GetLegislatorDetailByID xmlns="http://le.utah.gov/webservices/">
      <LegislatorID>string</LegislatorID>
      <StartDate>dateTime</StartDate>
      <EndDate>dateTime</EndDate>
    </GetLegislatorDetailByID>
  </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>
    <GetLegislatorDetailByIDResponse xmlns="http://le.utah.gov/webservices/">
      <GetLegislatorDetailByIDResult>
        <FirstName>string</FirstName>
        <MiddleInitial>string</MiddleInitial>
        <LastName>string</LastName>
        <District>int</District>
        <Party>string</Party>
        <House>string</House>
        <LegislatorID>string</LegislatorID>
        <LegislationLink>string</LegislationLink>
        <Address>string</Address>
        <City>string</City>
        <Zip>string</Zip>
        <Email>string</Email>
        <WorkPhone>string</WorkPhone>
        <HomePhone>string</HomePhone>
        <CellPhone>string</CellPhone>
        <Fax>string</Fax>
        <Position>string</Position>
        <Photo>string</Photo>
        <Committees>
          <Committee>
            <Description>string</Description>
            <LinkAddress>string</LinkAddress>
            <Type>string</Type>
            <Position>string</Position>
          </Committee>
          <Committee>
            <Description>string</Description>
            <LinkAddress>string</LinkAddress>
            <Type>string</Type>
            <Position>string</Position>
          </Committee>
        </Committees>
        <SocialContacts>
          <SocialLink>
            <Type>string</Type>
            <Link>string</Link>
          </SocialLink>
          <SocialLink>
            <Type>string</Type>
            <Link>string</Link>
          </SocialLink>
        </SocialContacts>
        <FirstYearServed>string</FirstYearServed>
        <Profession>string</Profession>
        <ProfessionalAffiliations>string</ProfessionalAffiliations>
        <Education>string</Education>
        <RecognitionsHonors>string</RecognitionsHonors>
        <BirthDay>string</BirthDay>
        <BioLink>string</BioLink>
        <ConflictOfInterestLink>string</ConflictOfInterestLink>
        <Comments>string</Comments>
      </GetLegislatorDetailByIDResult>
    </GetLegislatorDetailByIDResponse>
  </soap12:Body>
</soap12:Envelope>