<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Custom Adapter Setup</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=1062720" />
  <subtitle>Custom Adapter Setup</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=1062720</id>
  <updated>2013-05-20T08:03:44Z</updated>
  <dc:date>2013-05-20T08:03:44Z</dc:date>
  <entry>
    <title>Re: Custom Adapter Setup</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=1062722" />
    <author>
      <name>Cesar Rodriguez</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=1062722</id>
    <updated>2008-12-12T07:15:27Z</updated>
    <published>2008-12-12T07:15:27Z</published>
    <summary type="html">You need the object servertype with the adapter name.

For example loading contacts from CRMadapter you will do
contact.ServerType = CRMAdapter.Name

the middle tier needs that info.</summary>
    <dc:creator>Cesar Rodriguez</dc:creator>
    <dc:date>2008-12-12T07:15:27Z</dc:date>
  </entry>
  <entry>
    <title>Custom Adapter Setup</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=1062719" />
    <author>
      <name>Jayson Mynard</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=1062719</id>
    <updated>2008-12-09T08:38:48Z</updated>
    <published>2008-12-09T08:38:48Z</published>
    <summary type="html">Hi,

Im having problems is setting up my own custom adapter.

The system has been set up as per the instructions. But it is receiving the following error:

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---&gt; System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
at Cisco.UCCDT.Server.RequestHandler.RequestHandler.FindCustomer(Contact CustomerData, User Requestor)
at Cisco.UCCDT.Server.WebService.CiscoWebService.FindCustomer(Contact CustomerData, User Requestor)

The following code demonstrates the error (when attached to the FindCustomer method)

Dim objSearchItems As Cisco.UCCDT.DataObjects.SearchItems = New Cisco.UCCDT.DataObjects.SearchItems

Dim objAccount As New Cisco.UCCDT.DataObjects.Account
objAccount.Name.Text = "Test Account"
objAccount.Description = "Description"

Dim ojbLead As New Cisco.UCCDT.DataObjects.Lead
ojbLead.Name.Text = "Test Lead"
ojbLead.Description = "Description"

objSearchItems.Accounts.Add(objAccount)
objSearchItems.Leads.Add(ojbLead)

Return objSearchItems</summary>
    <dc:creator>Jayson Mynard</dc:creator>
    <dc:date>2008-12-09T08:38:48Z</dc:date>
  </entry>
</feed>

