We are running SIPX 3.10.2 on centos on our LAN (10.65.x.x). We have another PC on the same LAN (10.65.x.y) running Visual studio 2008 IDE.
I have been able to set reference to the sipxconfig SOAP web service interface from visual studio; I have written some code snippets and can get intellisense and see class methods and properties etc as set out below for example.
Imports WebReference.AddUser
Imports WebReference.ManageUser
Imports WebReference.User
Imports WebReference.Property
Imports WebReference.FindUser
PartialClass _Default
Inherits System.Web.UI.Page
ProtectedSub Button1_Click(ByVal sender AsObject, ByVal e As System.EventArgs) Handles btnAddNew.Click
Dim a_user AsNew WebReference.User
Dim new_user AsNew WebReference.AddUser
a_user.userName = 20011
a_user.firstName = "jane"
a_user.lastName = "Doe"
a_user.pintoken = "4321"
a_user.emailAddress = "[email protected]"
a_user.sipPassword = "qwerty87"
new_user.user = a_user
EndSub
EndClass
However when I try to add the user with the code above, "Jane Doe" is not added but the code runs.
When I try using the line of code "Call new_user.user.Equals(a_user)"
instead of "new_user.user = a_user", I get a null reference exception even though I've done object instantiation.
Any suggestions?
Thanks in advance for your help.
Charles Mutunga
_______________________________________________ sipx-users mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-users Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-users
