Article View: borland.public.cppbuilder.internet.web
Article #1523Re: Help please!!
From: Puri Vidal
Date: Wed, 01 Dec 2004 11:35
Date: Wed, 01 Dec 2004 11:35
63 lines
2874 bytes
2874 bytes
Thanks again!!! As the function is declared virtual void MyService(const ComplexType1 request, ComplexType2& response) = 0; if I use my_service->MyService( request, response ); I get the following errors: Cannot convert 'ComplexType1 *' to 'ComplexType1' Type mismatch in parameter 'request' (wanted 'const ComplexType1', got 'ComplexType1 *') Temporary used for parameter 'response' in call to 'MyServicePort::MyService(const ComplexType1, ComplexType2 &)' Cannot initialize 'ComplexType2 &' with 'ComplexType2 *' Type mismatch in parameter 'response' (wanted 'const ComplexType2 &', got 'ComplexType1 *') And if I try to declare the parameter variables without using pointers: ComplexType1 request; or ComplexType1 request(); or ComplexType1 request = ComplexType(); I get in that line: VCL stype classes must be constructed using operator new. Perhaps the solution is changing the function declaration. The problem is that I think I cannot change it because it was generated by te WSDL Importer... Thanks again for your help. Puri Vidal "hans galema" <notused@notused.nl> escribi๏ฟฝ en el mensaje news:41ada558@newsgroups.borland.com... > Puri Vidal wrote: > > > The line where I get the error is: > > > > my_service->MyService( *request, *response ); > > Sorry. I now see in your original post that you indicated that line > already. My mistake. > > > That is, where I use the web service, so I think that it is because of the > > params. But I do not know what is the problem: I create the variables using > > new, and I pass the content of the pointer as the function asks for params > > by value... > > Try: > > my_service->MyService( request, response ); > > Hans.
Technical Details
Message-ID:
<41adac7f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!63.218.45.11.MISMATCH!newshosting.com!nx02.iad01.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41ad932c$1@newsgroups.borland.com> <41ad9a0c$1@newsgroups.borland.com> <41ad9ba4@newsgroups.borland.com> <41ad9f0f@newsgroups.borland.com> <41ada558@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,f6096c15c18b8195 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII From: "Puri Vidal" <pvidal@kilowattsa.es> Newsgroups: borland.public.cppbuilder.internet.web References: <41ad932c$1@newsgroups.borland.com> <41ad9a0c$1@newsgroups.borland.com> <41ad9ba4@newsgroups.borland.com> <41ad9f0f@newsgroups.borland.com> <41ada558@newsgroups.borland.com> Subject: Re: Help please!! Date: Wed, 1 Dec 2004 12:35:46 +0100 Lines: 65 Organization: Kilowatt S.A. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 80.224.0.116 Message-ID: <41adac7f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1101900927 80.224.0.116 (1 Dec 2004 03:35:27 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!63.218.45.11.MISMATCH!newshosting.com!nx02.iad01.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail