🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1296

Re: HELP! output parameters from my web-service dont work

#1296
From: Franco
Date: Sat, 05 Mar 2005 17:22
26 lines
1858 bytes
Ok - I eventually solved my own problem.  For any who may experience the
same thing here is the solution:

If you wish to use a TRemotable descendant as an output (reference)
parameter from a SOAP server (mine is an ISAPI) in Builder, you must make
the parameter type a reference to a pointer.  Nothing else will work.  A
pointer will not work (unlike returned objects which do work through a
pointer), a reference alone will not work (the Builder WSDL publisher turns
it into a const *).

The solution is to use: *&

EG:
virtual TReturnedTestObject * GetTest(TTestObject *& ATestObject) = 0;

Viola.



"Franco" <nope@nope.com> wrote
> These classes work fine on the server and the client ONLY IF I return them
> from the service functions as a return value - HOWEVER, if I try to use
them
> as reference parameters - something goes wrong (in marshalling?) since the
> client side object is never changed!
[...]
Technical Details
Message-ID: <4229ea5f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4224198c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,4dfd3146444685b,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Franco" <nope@nope.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <4224198c@newsgroups.borland.com>
Subject: Re: HELP! output parameters from my web-service dont work
Date: Sat, 5 Mar 2005 09:22:23 -0800
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 24.84.52.90
Message-ID: <4229ea5f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1110043231 24.84.52.90 (5 Mar 2005 09:20:31 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail