GMP Data Services


Click here for a complete list of operations.

CreateNewLead

Creates a new client/company lead

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
userId:
userPinCode:
companyName:
title:
surname:
forename:
mobile:
homeTelephone:
workTelephone:
contactTelephone:
emailAddress:
addressLine1:
addressLine2:
town_or_city:
county_or_region_or_state:
postcode_or_zipcode:
country:
contactBy:
howDidYouHearAboutUs:
bestTimeToCall:
comments:

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 /gmp.asmx HTTP/1.1
Host: gmpdataservices.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://gmpdataservices.com/CreateNewLead"

<?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>
    <CreateNewLead xmlns="https://gmpdataservices.com/">
      <userId>string</userId>
      <userPinCode>string</userPinCode>
      <companyName>string</companyName>
      <title>string</title>
      <surname>string</surname>
      <forename>string</forename>
      <mobile>string</mobile>
      <homeTelephone>string</homeTelephone>
      <workTelephone>string</workTelephone>
      <contactTelephone>string</contactTelephone>
      <emailAddress>string</emailAddress>
      <addressLine1>string</addressLine1>
      <addressLine2>string</addressLine2>
      <town_or_city>string</town_or_city>
      <county_or_region_or_state>string</county_or_region_or_state>
      <postcode_or_zipcode>string</postcode_or_zipcode>
      <country>string</country>
      <contactBy>string</contactBy>
      <howDidYouHearAboutUs>string</howDidYouHearAboutUs>
      <bestTimeToCall>string</bestTimeToCall>
      <comments>string</comments>
    </CreateNewLead>
  </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>
    <CreateNewLeadResponse xmlns="https://gmpdataservices.com/">
      <CreateNewLeadResult>boolean</CreateNewLeadResult>
    </CreateNewLeadResponse>
  </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 /gmp.asmx HTTP/1.1
Host: gmpdataservices.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>
    <CreateNewLead xmlns="https://gmpdataservices.com/">
      <userId>string</userId>
      <userPinCode>string</userPinCode>
      <companyName>string</companyName>
      <title>string</title>
      <surname>string</surname>
      <forename>string</forename>
      <mobile>string</mobile>
      <homeTelephone>string</homeTelephone>
      <workTelephone>string</workTelephone>
      <contactTelephone>string</contactTelephone>
      <emailAddress>string</emailAddress>
      <addressLine1>string</addressLine1>
      <addressLine2>string</addressLine2>
      <town_or_city>string</town_or_city>
      <county_or_region_or_state>string</county_or_region_or_state>
      <postcode_or_zipcode>string</postcode_or_zipcode>
      <country>string</country>
      <contactBy>string</contactBy>
      <howDidYouHearAboutUs>string</howDidYouHearAboutUs>
      <bestTimeToCall>string</bestTimeToCall>
      <comments>string</comments>
    </CreateNewLead>
  </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>
    <CreateNewLeadResponse xmlns="https://gmpdataservices.com/">
      <CreateNewLeadResult>boolean</CreateNewLeadResult>
    </CreateNewLeadResponse>
  </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 /gmp.asmx/CreateNewLead?userId=string&userPinCode=string&companyName=string&title=string&surname=string&forename=string&mobile=string&homeTelephone=string&workTelephone=string&contactTelephone=string&emailAddress=string&addressLine1=string&addressLine2=string&town_or_city=string&county_or_region_or_state=string&postcode_or_zipcode=string&country=string&contactBy=string&howDidYouHearAboutUs=string&bestTimeToCall=string&comments=string HTTP/1.1
Host: gmpdataservices.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<boolean xmlns="https://gmpdataservices.com/">boolean</boolean>

HTTP POST

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

POST /gmp.asmx/CreateNewLead HTTP/1.1
Host: gmpdataservices.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

userId=string&userPinCode=string&companyName=string&title=string&surname=string&forename=string&mobile=string&homeTelephone=string&workTelephone=string&contactTelephone=string&emailAddress=string&addressLine1=string&addressLine2=string&town_or_city=string&county_or_region_or_state=string&postcode_or_zipcode=string&country=string&contactBy=string&howDidYouHearAboutUs=string&bestTimeToCall=string&comments=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<boolean xmlns="https://gmpdataservices.com/">boolean</boolean>