472,783 Members | 947 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,783 software developers and data experts.

Writing a Webservice Client

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="");
....
I have problems to access the Webservice with the following 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 hint where the problem is or a link to a tutorial
which can help me?
Regards,
Jens
Oct 11 '05 #1
2 3399
Jens Hibbeler wrote:
[redacted]


I'm afraid that you're OT here. Try one of the Borland newsgroups.
Oct 11 '05 #2
Jens Hibbeler wrote:
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.
[... off-topic in comp.lang.c++ ...]
Can someone give me a hint where the problem is or a link to a tutorial
which can help me?


See the borland.public.cppbuilder.* hierarchy of newsgroups.

V
Oct 11 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Davie | last post by:
I want to authorise a user of a web service by using the AuthHeaderValue for some reason I keep getting a null reference exception when I try to run the following code: It seems to work fine on a...
11
by: Andy | last post by:
Make the story short, I have a VB.NET client interface calling .NET webservice, written in VB.NET as well. I am trying to make the client as thin as possible so I let the webservice part to...
2
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2...
7
by: Alessandro Benedetti | last post by:
Hi. I'm calling two methods of a .NET Webservice (A) from another Webservice (B). The A Webservice is made like this: public class WSA: System.Web.Services.WebService { private int X = 0;
7
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure...
1
by: Mike9900 | last post by:
I want to use an interface in both the webservice and its client. For example, the web service implements an interface and then the client cast that webservice to the inteface. It seems impossible,...
1
by: Mr Bojangles | last post by:
Hi, I want a do the following: From a (client side) web form, post to server side script (I'm using Javascript but anything will do), which in turn--and this is the important bit that I...
0
by: Daniel Knöpfel | last post by:
Hi We have developed a webservice that was accessed by a fat windows client. A security requirement was that the client authenticates itself by using by providing a client certificate. The...
6
by: Peter | last post by:
I have a WebService which returns a List of RunningReport class How do I read this XML data on the client side. How do I convert List<RunningReportfrom the WebService side to List<RunningReporton...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.