🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Writing a Webservice Client

#140
From: Jens Hibbeler
Date: Tue, 11 Oct 2005 15:50
64 lines
2853 bytes
Hello,

I am trying to write a Webservice with Borland C++ Builder 6. I use the
WSDL importer but I have no idea how to acess the Webservice.
I have tried the following:

The WSDL File is from the Google Webservice and looks like this

...
__interface INTERFACE_UUID("{0B396A82-A4DD-69A7-A771-6D80F8831A71}")
GoogleSearchPort : public IInvokable
{
public:
  virtual TByteDynArray   doGetCachedPage(const AnsiString key, const
AnsiString url) = 0;
  virtual AnsiString      doSpellingSuggestion(const AnsiString key,
const AnsiString phrase) = 0;
  virtual GoogleSearchResult* doGoogleSearch(const AnsiString key,
const AnsiString q, const int start, const int maxResults, const bool
filter, const AnsiString restrict, const bool safeSearch, const
AnsiString lr, const AnsiString ie, const AnsiString oe) = 0;
};
typedef DelphiInterface<GoogleSearchPort> _di_GoogleSearchPort;

_di_GoogleSearchPort GetGoogleSearchPort(bool useWSDL=false, AnsiString
addr="");
...

Can I access the Service with the following client class?

//---------------------------------------------------------------------------
#include <vcl.h>
#include <iostream>
#include <conio>
#include "GoogleSearch.h"

using namespace NS_GoogleSearch;
//---------------------------------------------------------------------------

#pragma argsused
int main(int argc, char* argv[])
{


         GoogleSearchResult *Results=
GetGoogleSearchPort()->doGoogleSearch("MyGoogleSearchCODE", "test", 0,
10, True,"", True, "lang_en", "latin1", "latin1");



        getch();


        return 0;
}
//---------------------------------------------------------------------------



Can someone give me a link to a tutorial which can help me?

Regards,

Jens
Technical Details
Message-ID: <1129045851.011719.216410@g43g2000cwa.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g43g2000cwa.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11096a,7c5703f047c33c45,start
X-Google-Attributes: gid11096a,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g43g2000cwa.googlegroups.com!not-for-mail
From: "Jens Hibbeler" <jens.hibbeler@ottogroup.com>
Newsgroups: borland.public.cppbuilder.webservices.soap
Subject: Writing a Webservice Client
Date: 11 Oct 2005 08:50:51 -0700
Organization: http://groups.google.com
Lines: 65
Message-ID: <1129045851.011719.216410@g43g2000cwa.googlegroups.com>
NNTP-Posting-Host: 80.85.196.93
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1129045856 7482 127.0.0.1 (11 Oct 2005 15:50:56 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 11 Oct 2005 15:50:56 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: g43g2000cwa.googlegroups.com; posting-host=80.85.196.93;
   posting-account=YNOOBQ0AAACVH4fBaQ7VySglK0KdeYNk