🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.webservices.soap
Article #38

DynamicArray<AnsiString> is not been parsed correctly?

#38
From: Jojo
Date: Mon, 24 Mar 2008 22:05
41 lines
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;
    }

}
Technical Details
Message-ID: <da8003b0-6ad5-4666-9660-b7d8f5c1006e@e60g2000hsh.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!e60g2000hsh.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11096a,4759e926db272dfa,start
X-Google-Attributes: gid11096a,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!e60g2000hsh.googlegroups.com!not-for-mail
From: Jojo <jojohome@gmail.com>
Newsgroups: borland.public.cppbuilder.webservices.soap
Subject: DynamicArray<AnsiString> is not been parsed correctly?
Date: Mon, 24 Mar 2008 15:05:39 -0700 (PDT)
Organization: http://groups.google.com
Lines: 42
Message-ID: <da8003b0-6ad5-4666-9660-b7d8f5c1006e@e60g2000hsh.googlegroups.com>
NNTP-Posting-Host: 205.156.188.254
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1206396340 10786 127.0.0.1 (24 Mar 2008 22:05:40 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 24 Mar 2008 22:05:40 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: e60g2000hsh.googlegroups.com; posting-host=205.156.188.254; 
 posting-account=qkyorAoAAAA0erS0VV5JcC1IPhUBdSAw
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 
 1.1.4322; .NET CLR 2.0.50727; InfoPath.1),gzip(gfe),gzip(gfe)