🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.webservices.soap
1 messages
1 total messages Started by Jens Hibbeler Tue, 11 Oct 2005 15:50
Writing a Webservice Client
#140
Author: 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
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