HI..

 M trying to connect business connector to Visual studio 2005 to access some
axapta functionality.  I m using 3.0 V with some help from MSDN...

*I have written this simple method in webservice and registerd the Axapta
COM connector to VStudio. I have one configuration with name "
Ladelle_SP3_New"*
*but ASA i run this code it shows en error "configuration Ladelle_SP3_New
can not found Please check the configuration or restart the Business
connector"*
*I have tried everthing but nothing is working out! Please suggest what I am
doing wrong..*


<WebMethod(Description:="This method returns the name of the customer number
entered. ")> _

Public Function getCustName() _

As String

Dim Axapta As New AxaptaCOMConnector.Axapta

Dim thisClass As AxaptaCOMConnector.IAxaptaObject

Dim custName As String

' first log into Axapta

Try

Axapta = New AxaptaCOMConnector.Axapta

Axapta.Logon("Admin", "", "", "Ladelle_SP3_New")

thisClass = Axapta.CreateObject("AxCustTable")

Axapta.Refresh()

custName = thisClass.Call("find", "3Direct")

If custName <> "" Then

Return custName

Else

Return "Not Found."

End If

Axapta.Logoff()

Catch ex As Exception

MsgBox("Error:" + ex.ToString, MsgBoxStyle.Exclamation, "Application Error")

End Try




-- 
Pankaj Kumar Gupta
-- 
Software Developer | MBS Ax.

Reply via email to