Thread View: borland.public.cppbuilder.webservices.soap
1 messages
1 total messages
Started by Jojo
Mon, 24 Mar 2008 22:05
DynamicArray<AnsiString> is not been parsed correctly?
Author: Jojo
Date: Mon, 24 Mar 2008 22:05
Date: Mon, 24 Mar 2008 22:05
41 lines
2558 bytes
2558 bytes
I used the WSDLimporter imported a wsdl file in Borland 6.0. The
following type and a function were created:
typedef DynamicArray<AnsiString> getGroupUsersListResponse;
virtual getUserGroupsListResponse getUserGroupsList(const AnsiString
userId, const AnsiString appPrefix) = 0;
When I called "getUserGroupsList" in my testing program as the
following. The return is always empty. So I believe that the response
was not been parsed correctly and the return array is not been
filled.
Does anyone know a solution for this problem?
//---------------------------------------------------------------------------
void __fastcall TfrmWSClient::Button1Click(TObject *Sender)
{
const AnsiString sURL = edtURL->Text;
_di_LDAPMaintenance ldapInfo = GetLDAPMaintenance(false, sURL);
const AnsiString sUerID = edtUserID->Text;
const AnsiString sAPP = edtAppPreFix->Text;
getUserGroupsListResponse theGrp;
try
{
theGrp = ldapInfo->getUserGroupsList(sUerID, sAPP);
if (theGrp.Length <=0) //this is always true!!
{
ShowMessage("No group found for this user");
return;
} else
lblUserGroup->Caption = theGrp[0];
}catch (Exception &E)
{
ShowMessage("Can not retrive this user's group information" +
E.Message);
return;
}
}
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads