ExternalAgencies


Click here for a complete list of operations.

loginAgent

Login of the agent with the information of PolarTur or PolarNet

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 /ExternalAgencies.asmx HTTP/1.1
Host: wsagencias.polartur.net
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/loginAgent"

<?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>
    <loginAgent xmlns="http://tempuri.org/">
      <request>
        <username>string</username>
        <password>string</password>
        <tokenUser>string</tokenUser>
        <loginSource>string</loginSource>
      </request>
    </loginAgent>
  </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>
    <loginAgentResponse xmlns="http://tempuri.org/">
      <loginAgentResult>
        <status>ok or IncorrectPassword or InvalidIP or ExpiredAccount or CancelAccount or NotRegistered or Blocked</status>
        <agent>
          <agentNumber>string</agentNumber>
          <fullName>string</fullName>
          <email>string</email>
          <userName>string</userName>
          <status>Active or Inactive or ExpireSoon</status>
          <office>
            <officeId>string</officeId>
            <agency xsi:nil="true" />
            <address>string</address>
            <zipCode>string</zipCode>
            <city>string</city>
            <state>string</state>
            <country>string</country>
            <phone>string</phone>
            <geolocation xsi:nil="true" />
            <enableServiceFee>boolean</enableServiceFee>
            <showLTELink>boolean</showLTELink>
            <showOnMaps>boolean</showOnMaps>
            <markupsInformation xsi:nil="true" />
            <telefonosOficina xsi:nil="true" />
            <providerOffices xsi:nil="true" />
          </office>
          <tokenUser>string</tokenUser>
          <authKey>string</authKey>
          <expirationDatePassword>dateTime</expirationDatePassword>
          <testUser>boolean</testUser>
          <providerOfficeAgents>
            <ProviderOfficeAgent xsi:nil="true" />
            <ProviderOfficeAgent xsi:nil="true" />
          </providerOfficeAgents>
        </agent>
      </loginAgentResult>
    </loginAgentResponse>
  </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 /ExternalAgencies.asmx HTTP/1.1
Host: wsagencias.polartur.net
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>
    <loginAgent xmlns="http://tempuri.org/">
      <request>
        <username>string</username>
        <password>string</password>
        <tokenUser>string</tokenUser>
        <loginSource>string</loginSource>
      </request>
    </loginAgent>
  </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>
    <loginAgentResponse xmlns="http://tempuri.org/">
      <loginAgentResult>
        <status>ok or IncorrectPassword or InvalidIP or ExpiredAccount or CancelAccount or NotRegistered or Blocked</status>
        <agent>
          <agentNumber>string</agentNumber>
          <fullName>string</fullName>
          <email>string</email>
          <userName>string</userName>
          <status>Active or Inactive or ExpireSoon</status>
          <office>
            <officeId>string</officeId>
            <agency xsi:nil="true" />
            <address>string</address>
            <zipCode>string</zipCode>
            <city>string</city>
            <state>string</state>
            <country>string</country>
            <phone>string</phone>
            <geolocation xsi:nil="true" />
            <enableServiceFee>boolean</enableServiceFee>
            <showLTELink>boolean</showLTELink>
            <showOnMaps>boolean</showOnMaps>
            <markupsInformation xsi:nil="true" />
            <telefonosOficina xsi:nil="true" />
            <providerOffices xsi:nil="true" />
          </office>
          <tokenUser>string</tokenUser>
          <authKey>string</authKey>
          <expirationDatePassword>dateTime</expirationDatePassword>
          <testUser>boolean</testUser>
          <providerOfficeAgents>
            <ProviderOfficeAgent xsi:nil="true" />
            <ProviderOfficeAgent xsi:nil="true" />
          </providerOfficeAgents>
        </agent>
      </loginAgentResult>
    </loginAgentResponse>
  </soap12:Body>
</soap12:Envelope>