BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web)
View previous topic :: View next topic  
Author Message
Franco
Guest





PostPosted: Sat Mar 05, 2005 5:22 pm    Post subject: Re: HELP! output parameters from my web-service dont work Reply with quote



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 (AT) nope (DOT) com> wrote
Quote:
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!
[...]




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.