MobileAccord Main Web Service


Click here for a complete list of operations.

SaveCustomerRecordSOAP

Store a customer record (SOAP method)

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 /WebService.asmx HTTP/1.1
Host: services.mobileaccord.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://services.mobileaccord.com/SaveCustomerRecordSOAP"

<?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>
    <SaveCustomerRecordSOAP xmlns="http://services.mobileaccord.com">
      <username>string</username>
      <password>string</password>
      <record>
        <CompanyID>int</CompanyID>
        <CustomerRecordID>string</CustomerRecordID>
        <Title>string</Title>
        <FirstName>string</FirstName>
        <LastName>string</LastName>
        <Address1>string</Address1>
        <Address2>string</Address2>
        <Suite>string</Suite>
        <City>string</City>
        <State>string</State>
        <Zip>string</Zip>
        <Country>string</Country>
        <Email>string</Email>
        <DOB>dateTime</DOB>
        <HomePhone>string</HomePhone>
        <WorkPhone>string</WorkPhone>
        <Fax>string</Fax>
        <MobileNumber>string</MobileNumber>
        <Carrier>int</Carrier>
        <Notes>string</Notes>
        <Company>string</Company>
        <ExtraFields>
          <CustomerRecordExtraInfo>
            <Field>string</Field>
            <Value>string</Value>
            <DateSaved>dateTime</DateSaved>
            <SourceType>string</SourceType>
            <SourceID>string</SourceID>
          </CustomerRecordExtraInfo>
          <CustomerRecordExtraInfo>
            <Field>string</Field>
            <Value>string</Value>
            <DateSaved>dateTime</DateSaved>
            <SourceType>string</SourceType>
            <SourceID>string</SourceID>
          </CustomerRecordExtraInfo>
        </ExtraFields>
        <OptinCampaigns>
          <CustomerRecordOptinDetails>
            <CampaignID>int</CampaignID>
            <OptinStatus>string</OptinStatus>
            <OptinDate>dateTime</OptinDate>
            <OptoutDate>dateTime</OptoutDate>
          </CustomerRecordOptinDetails>
          <CustomerRecordOptinDetails>
            <CampaignID>int</CampaignID>
            <OptinStatus>string</OptinStatus>
            <OptinDate>dateTime</OptinDate>
            <OptoutDate>dateTime</OptoutDate>
          </CustomerRecordOptinDetails>
        </OptinCampaigns>
      </record>
    </SaveCustomerRecordSOAP>
  </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>
    <SaveCustomerRecordSOAPResponse xmlns="http://services.mobileaccord.com">
      <SaveCustomerRecordSOAPResult>
        <Duration>long</Duration>
        <ResultCode>int</ResultCode>
        <ResultText>string</ResultText>
        <RecordID>long</RecordID>
      </SaveCustomerRecordSOAPResult>
    </SaveCustomerRecordSOAPResponse>
  </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 /WebService.asmx HTTP/1.1
Host: services.mobileaccord.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>
    <SaveCustomerRecordSOAP xmlns="http://services.mobileaccord.com">
      <username>string</username>
      <password>string</password>
      <record>
        <CompanyID>int</CompanyID>
        <CustomerRecordID>string</CustomerRecordID>
        <Title>string</Title>
        <FirstName>string</FirstName>
        <LastName>string</LastName>
        <Address1>string</Address1>
        <Address2>string</Address2>
        <Suite>string</Suite>
        <City>string</City>
        <State>string</State>
        <Zip>string</Zip>
        <Country>string</Country>
        <Email>string</Email>
        <DOB>dateTime</DOB>
        <HomePhone>string</HomePhone>
        <WorkPhone>string</WorkPhone>
        <Fax>string</Fax>
        <MobileNumber>string</MobileNumber>
        <Carrier>int</Carrier>
        <Notes>string</Notes>
        <Company>string</Company>
        <ExtraFields>
          <CustomerRecordExtraInfo>
            <Field>string</Field>
            <Value>string</Value>
            <DateSaved>dateTime</DateSaved>
            <SourceType>string</SourceType>
            <SourceID>string</SourceID>
          </CustomerRecordExtraInfo>
          <CustomerRecordExtraInfo>
            <Field>string</Field>
            <Value>string</Value>
            <DateSaved>dateTime</DateSaved>
            <SourceType>string</SourceType>
            <SourceID>string</SourceID>
          </CustomerRecordExtraInfo>
        </ExtraFields>
        <OptinCampaigns>
          <CustomerRecordOptinDetails>
            <CampaignID>int</CampaignID>
            <OptinStatus>string</OptinStatus>
            <OptinDate>dateTime</OptinDate>
            <OptoutDate>dateTime</OptoutDate>
          </CustomerRecordOptinDetails>
          <CustomerRecordOptinDetails>
            <CampaignID>int</CampaignID>
            <OptinStatus>string</OptinStatus>
            <OptinDate>dateTime</OptinDate>
            <OptoutDate>dateTime</OptoutDate>
          </CustomerRecordOptinDetails>
        </OptinCampaigns>
      </record>
    </SaveCustomerRecordSOAP>
  </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>
    <SaveCustomerRecordSOAPResponse xmlns="http://services.mobileaccord.com">
      <SaveCustomerRecordSOAPResult>
        <Duration>long</Duration>
        <ResultCode>int</ResultCode>
        <ResultText>string</ResultText>
        <RecordID>long</RecordID>
      </SaveCustomerRecordSOAPResult>
    </SaveCustomerRecordSOAPResponse>
  </soap12:Body>
</soap12:Envelope>