XWebLeadPort


Click here for a complete list of operations.

LoadLeadsBySourceAndDateRange

Returns all Leads by a specific Source Identifier, created within a specific date range, in the reverse chronological order the records were entered into the system.

Test

The test form is only available for requests from the local machine.

SOAP

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

POST /XWebLead/V2/XWebLead.asmx HTTP/1.1
Host: ws.xwebservices.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "urn:ws-xwebservices-com:XWebLead:Lead:v2:loadLeadsBySourceAndDateRangeIn"

<?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>
    <LoadLeadsBySourceAndDateRangeRequest xmlns="urn:ws-xwebservices-com:XWebLead:Lead:v2:Messages">
      <Source_Identifier>string</Source_Identifier>
      <Date_Start>dateTime</Date_Start>
      <Date_End>dateTime</Date_End>
    </LoadLeadsBySourceAndDateRangeRequest>
  </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>
    <LoadLeadsBySourceAndDateRangeResponse xmlns="urn:ws-xwebservices-com:XWebLead:Lead:v2:Messages">
      <Lead Lead_ID="string" Date_Created="dateTime">
        <Source_Identifier xmlns="urn:ws-xwebservices-com:XWebLead:Lead:v2:Types">string</Source_Identifier>
        <Description xmlns="urn:ws-xwebservices-com:XWebLead:Lead:v2:Types">string</Description>
        <Body xmlns="urn:ws-xwebservices-com:XWebLead:Lead:v2:Types">string</Body>
      </Lead>
      <Lead Lead_ID="string" Date_Created="dateTime">
        <Source_Identifier xmlns="urn:ws-xwebservices-com:XWebLead:Lead:v2:Types">string</Source_Identifier>
        <Description xmlns="urn:ws-xwebservices-com:XWebLead:Lead:v2:Types">string</Description>
        <Body xmlns="urn:ws-xwebservices-com:XWebLead:Lead:v2:Types">string</Body>
      </Lead>
    </LoadLeadsBySourceAndDateRangeResponse>
  </soap:Body>
</soap:Envelope>