The service enables you to view all of your external groups data.
Parameters:
Java Code:
//get a reference to the service InwiseWebServices ws = new InwiseWebServices();
InwiseWebServicesSoap inwiseWebServicesSoap = ws.getInwiseWebServicesSoap();
//fill the security header
HeaderHandler hh = new HeaderHandler("myusername", "myPassword");
hh.setHeader(inwiseWebServicesSoap);
inwise.ArrayOfExternalGroup groupsData = inwiseWebServicesSoap.groupsExternalMyRemoteGroups();
List<ExternalGroup> groups = groupsData.getExternalGroupData();
Iterator<ExternalGroup> it = groups.iterator();
while (it.hasNext()) {
ExternalGroup group = it.next();
String name = group.getGroupName();//the name of the group
int databaseID = group.getDBId();//the internal id of the database the group uses for connection
String remoteTableName = group.getRemoteTableName();//the name of the table on the remote database
}
C# Code:
//get a reference to the service
InwiseWebServices.InwiseWebServices ws = new InwiseWebServices.InwiseWebServices();
//fill the security header
InwiseWebServices.SecHeader header = new InwiseWebServices.SecHeader();
header.username = "username";
header.pass = "myPassword";
ws.SecHeaderValue = header;//set credentials
InwiseWebServices.ExternalGroup[] groups = ws.Groups_External_MyRemoteGroups();
for (int i = 0; i < groups.Length; i++)
{
InwiseWebServices.ExternalGroup group = groups[i];
string name = group.GroupName;//the name of the group
int databaseID = group.DBId;//the internal id of the database the group uses for connection
string remoteTableName = group.RemoteTableName;//the name of the table on the remote database
}
VB Code:
'get a reference to the service
Dim ws As InwiseWebServices.InwiseWebServices = New InwiseWebServices.InwiseWebServices()
'fill the security header
Dim header As InwiseWebServices.SecHeader = New InwiseWebServices.SecHeader()
header.username = "username"
header.pass = "myPassword"
ws.SecHeaderValue = header 'set credentials
Dim groups() As InwiseWebServices.ExternalGroup = ws.Groups_External_MyRemoteGroups()
Dim i As Integer
For i = 0 To groups.Length - 1 Step i + 1
Dim group As InwiseWebServices.ExternalGroup = groups(i)
Dim name As String = group.GroupName 'the name of the group
Dim databaseID As Integer = group.DBId 'the internal id of the database the group uses for connection
Dim remoteTableName As String = group.RemoteTableName 'the name of the table on the remote database
Next