ContactService
Click here for a complete list of operations.
CustomerFindByFaxNumber
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 /api/contactservice.asmx HTTP/1.1 Host: losalesdemo.mc.hostedcc.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://datasquirt.com/webservices/CustomerFindByFaxNumber" <?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:Header> <ContactCredentials xmlns="http://datasquirt.com/webservices/"> <UserID>string</UserID> <Password>string</Password> </ContactCredentials> </soap:Header> <soap:Body> <CustomerFindByFaxNumber xmlns="http://datasquirt.com/webservices/"> <faxNumber>string</faxNumber> </CustomerFindByFaxNumber> </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> <CustomerFindByFaxNumberResponse xmlns="http://datasquirt.com/webservices/"> <CustomerFindByFaxNumberResult> <Customer> <CustomerID>int</CustomerID> <LastModifiedByContactUserID>int</LastModifiedByContactUserID> <Status>int</Status> <CustomerRef1>string</CustomerRef1> <CustomerRef2>string</CustomerRef2> <FirstName>string</FirstName> <LastName>string</LastName> <Address1>string</Address1> <Address2>string</Address2> <Address3>string</Address3> <City>string</City> <State>string</State> <Country>string</Country> <PostCode>string</PostCode> <TimeZoneInfoID>string</TimeZoneInfoID> <PreferredChannel>SMS or Email or Fax or Unknown or Phone or Chat or Twitter or Facebook or YouTube or LinkedIn or GenericMessageType1 or GenericMessageType2</PreferredChannel> <Created>dateTime</Created> <LastModified>dateTime</LastModified> <GenericCustomerData> <GenericCustomerDataID>int</GenericCustomerDataID> <CustomerID>int</CustomerID> <ShortField01>string</ShortField01> <ShortField02>string</ShortField02> <ShortField03>string</ShortField03> <ShortField04>string</ShortField04> <ShortField05>string</ShortField05> <ShortField06>string</ShortField06> <ShortField07>string</ShortField07> <ShortField08>string</ShortField08> <ShortField09>string</ShortField09> <ShortField10>string</ShortField10> <ShortField11>string</ShortField11> <ShortField12>string</ShortField12> <ShortField13>string</ShortField13> <ShortField14>string</ShortField14> <ShortField15>string</ShortField15> <ShortField16>string</ShortField16> <ShortField17>string</ShortField17> <ShortField18>string</ShortField18> <ShortField19>string</ShortField19> <ShortField20>string</ShortField20> <ShortField21>string</ShortField21> <ShortField22>string</ShortField22> <ShortField23>string</ShortField23> <ShortField24>string</ShortField24> <ShortField25>string</ShortField25> <ShortField26>string</ShortField26> <ShortField27>string</ShortField27> <ShortField28>string</ShortField28> <ShortField29>string</ShortField29> <ShortField30>string</ShortField30> <LongField01>string</LongField01> <LongField02>string</LongField02> </GenericCustomerData> <CustomerContacts> <CustomerContact xsi:nil="true" /> <CustomerContact xsi:nil="true" /> </CustomerContacts> </Customer> <Customer> <CustomerID>int</CustomerID> <LastModifiedByContactUserID>int</LastModifiedByContactUserID> <Status>int</Status> <CustomerRef1>string</CustomerRef1> <CustomerRef2>string</CustomerRef2> <FirstName>string</FirstName> <LastName>string</LastName> <Address1>string</Address1> <Address2>string</Address2> <Address3>string</Address3> <City>string</City> <State>string</State> <Country>string</Country> <PostCode>string</PostCode> <TimeZoneInfoID>string</TimeZoneInfoID> <PreferredChannel>SMS or Email or Fax or Unknown or Phone or Chat or Twitter or Facebook or YouTube or LinkedIn or GenericMessageType1 or GenericMessageType2</PreferredChannel> <Created>dateTime</Created> <LastModified>dateTime</LastModified> <GenericCustomerData> <GenericCustomerDataID>int</GenericCustomerDataID> <CustomerID>int</CustomerID> <ShortField01>string</ShortField01> <ShortField02>string</ShortField02> <ShortField03>string</ShortField03> <ShortField04>string</ShortField04> <ShortField05>string</ShortField05> <ShortField06>string</ShortField06> <ShortField07>string</ShortField07> <ShortField08>string</ShortField08> <ShortField09>string</ShortField09> <ShortField10>string</ShortField10> <ShortField11>string</ShortField11> <ShortField12>string</ShortField12> <ShortField13>string</ShortField13> <ShortField14>string</ShortField14> <ShortField15>string</ShortField15> <ShortField16>string</ShortField16> <ShortField17>string</ShortField17> <ShortField18>string</ShortField18> <ShortField19>string</ShortField19> <ShortField20>string</ShortField20> <ShortField21>string</ShortField21> <ShortField22>string</ShortField22> <ShortField23>string</ShortField23> <ShortField24>string</ShortField24> <ShortField25>string</ShortField25> <ShortField26>string</ShortField26> <ShortField27>string</ShortField27> <ShortField28>string</ShortField28> <ShortField29>string</ShortField29> <ShortField30>string</ShortField30> <LongField01>string</LongField01> <LongField02>string</LongField02> </GenericCustomerData> <CustomerContacts> <CustomerContact xsi:nil="true" /> <CustomerContact xsi:nil="true" /> </CustomerContacts> </Customer> </CustomerFindByFaxNumberResult> </CustomerFindByFaxNumberResponse> </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 /api/contactservice.asmx HTTP/1.1 Host: losalesdemo.mc.hostedcc.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:Header> <ContactCredentials xmlns="http://datasquirt.com/webservices/"> <UserID>string</UserID> <Password>string</Password> </ContactCredentials> </soap12:Header> <soap12:Body> <CustomerFindByFaxNumber xmlns="http://datasquirt.com/webservices/"> <faxNumber>string</faxNumber> </CustomerFindByFaxNumber> </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> <CustomerFindByFaxNumberResponse xmlns="http://datasquirt.com/webservices/"> <CustomerFindByFaxNumberResult> <Customer> <CustomerID>int</CustomerID> <LastModifiedByContactUserID>int</LastModifiedByContactUserID> <Status>int</Status> <CustomerRef1>string</CustomerRef1> <CustomerRef2>string</CustomerRef2> <FirstName>string</FirstName> <LastName>string</LastName> <Address1>string</Address1> <Address2>string</Address2> <Address3>string</Address3> <City>string</City> <State>string</State> <Country>string</Country> <PostCode>string</PostCode> <TimeZoneInfoID>string</TimeZoneInfoID> <PreferredChannel>SMS or Email or Fax or Unknown or Phone or Chat or Twitter or Facebook or YouTube or LinkedIn or GenericMessageType1 or GenericMessageType2</PreferredChannel> <Created>dateTime</Created> <LastModified>dateTime</LastModified> <GenericCustomerData> <GenericCustomerDataID>int</GenericCustomerDataID> <CustomerID>int</CustomerID> <ShortField01>string</ShortField01> <ShortField02>string</ShortField02> <ShortField03>string</ShortField03> <ShortField04>string</ShortField04> <ShortField05>string</ShortField05> <ShortField06>string</ShortField06> <ShortField07>string</ShortField07> <ShortField08>string</ShortField08> <ShortField09>string</ShortField09> <ShortField10>string</ShortField10> <ShortField11>string</ShortField11> <ShortField12>string</ShortField12> <ShortField13>string</ShortField13> <ShortField14>string</ShortField14> <ShortField15>string</ShortField15> <ShortField16>string</ShortField16> <ShortField17>string</ShortField17> <ShortField18>string</ShortField18> <ShortField19>string</ShortField19> <ShortField20>string</ShortField20> <ShortField21>string</ShortField21> <ShortField22>string</ShortField22> <ShortField23>string</ShortField23> <ShortField24>string</ShortField24> <ShortField25>string</ShortField25> <ShortField26>string</ShortField26> <ShortField27>string</ShortField27> <ShortField28>string</ShortField28> <ShortField29>string</ShortField29> <ShortField30>string</ShortField30> <LongField01>string</LongField01> <LongField02>string</LongField02> </GenericCustomerData> <CustomerContacts> <CustomerContact xsi:nil="true" /> <CustomerContact xsi:nil="true" /> </CustomerContacts> </Customer> <Customer> <CustomerID>int</CustomerID> <LastModifiedByContactUserID>int</LastModifiedByContactUserID> <Status>int</Status> <CustomerRef1>string</CustomerRef1> <CustomerRef2>string</CustomerRef2> <FirstName>string</FirstName> <LastName>string</LastName> <Address1>string</Address1> <Address2>string</Address2> <Address3>string</Address3> <City>string</City> <State>string</State> <Country>string</Country> <PostCode>string</PostCode> <TimeZoneInfoID>string</TimeZoneInfoID> <PreferredChannel>SMS or Email or Fax or Unknown or Phone or Chat or Twitter or Facebook or YouTube or LinkedIn or GenericMessageType1 or GenericMessageType2</PreferredChannel> <Created>dateTime</Created> <LastModified>dateTime</LastModified> <GenericCustomerData> <GenericCustomerDataID>int</GenericCustomerDataID> <CustomerID>int</CustomerID> <ShortField01>string</ShortField01> <ShortField02>string</ShortField02> <ShortField03>string</ShortField03> <ShortField04>string</ShortField04> <ShortField05>string</ShortField05> <ShortField06>string</ShortField06> <ShortField07>string</ShortField07> <ShortField08>string</ShortField08> <ShortField09>string</ShortField09> <ShortField10>string</ShortField10> <ShortField11>string</ShortField11> <ShortField12>string</ShortField12> <ShortField13>string</ShortField13> <ShortField14>string</ShortField14> <ShortField15>string</ShortField15> <ShortField16>string</ShortField16> <ShortField17>string</ShortField17> <ShortField18>string</ShortField18> <ShortField19>string</ShortField19> <ShortField20>string</ShortField20> <ShortField21>string</ShortField21> <ShortField22>string</ShortField22> <ShortField23>string</ShortField23> <ShortField24>string</ShortField24> <ShortField25>string</ShortField25> <ShortField26>string</ShortField26> <ShortField27>string</ShortField27> <ShortField28>string</ShortField28> <ShortField29>string</ShortField29> <ShortField30>string</ShortField30> <LongField01>string</LongField01> <LongField02>string</LongField02> </GenericCustomerData> <CustomerContacts> <CustomerContact xsi:nil="true" /> <CustomerContact xsi:nil="true" /> </CustomerContacts> </Customer> </CustomerFindByFaxNumberResult> </CustomerFindByFaxNumberResponse> </soap12:Body> </soap12:Envelope>