Small Business Portal Developer Forums

Combination View Flat View Tree View
Threads [ Previous | Next ]
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. ---> 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

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.

Top SBP Forum Contributors

Sean Beierly (6)
elton j (6)
Andrew Cadwell (4)
Brett Hall (3)
Stu Andrews (3)

Recent Forum Posts