🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: HELP - AV when calling a web-service from inside a web-service

#172
From: const * const char ME
Date: Tue, 25 Sep 2007 17:23
59 lines
3007 bytes
Sorry - my apologies.  The code  I posted was manually edited to match the 
identifiers in the OP.  (Which were modified).  And, I made a mistake.

In fact _di_IMyWebService2  is the manually edited version of 
_di_ISSPartnerSecurity.

here is a copy of the ACTUAL code (with the exception of the URL's which I 
modified for privacy reasons):

//
_di_ISSPartnerSecurity GetISSPartnerSecurity(bool useWSDL, AnsiString addr)
{
  static const char* defWSDL= 
"http://changed.com/partnersecurity/partnersecurity.dll/wsdl/ISSPartnerSecurity";
  static const char* defURL = 
"http://changed.com/partnersecurity/partnersecurity.dll/soap/ISSPartnerSecurity";
  static const char* defSvc = "ISSPartnerSecurityservice";
  static const char* defPrt = "ISSPartnerSecurityPort";
  if (addr=="")
    addr = useWSDL ? defWSDL : defURL;
  THTTPRIO* rio = new THTTPRIO(0);
  if (useWSDL) {
    rio->WSDLLocation = addr;
    rio->Service = defSvc;
    rio->Port = defPrt;
  } else {
    rio->URL = addr;
  }
  _di_ISSPartnerSecurity service;
  rio->QueryInterface(service);
  if (!service)
    delete rio;
  return service;
}




"Brian" <brian@nospam.net> wrote in message 
news:2f97fdd05fa28c9cd71393e6cba@newsgroups.borland.com...
> Hello const * const char ME,
>
>>>
>> It is the auto generated one that the IDE creates when you import a
>> web-service.  This kind of constructor I have used for years on
>> several web-services with no issue.... Hmmm
>
>> _di_IMyWebService2  GetIMyWebService2 (bool useWSDL, AnsiString addr)
>
>> _di_ISSPartnerSecurity service;
>
>> return service;
>
> You are calling a method with a return of cast '_di_IMyWebService2' but 
> you are returning a value with a cast of '_di_ISSPartnerSecurity'. Change 
> one to the other (I not sure which class is the one you are needing) and 
> your problems should be solved.
>
> 
Technical Details
Message-ID: <46f9444b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46f9172d$1@newsgroups.borland.com> <2f97fdd05fa28c9cd71393e6cba@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,8954c6db24489fb1
X-Google-Attributes: gidfeeec,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "const * const char ME" <smakjasdhfg@iuyd.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <46f9172d$1@newsgroups.borland.com> <2f97fdd05fa28c9cd71393e6cba@newsgroups.borland.com>
Subject: Re: HELP - AV when calling a web-service from inside a web-service
Date: Tue, 25 Sep 2007 10:23:31 -0700
Lines: 61
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
NNTP-Posting-Host: 209.17.173.11
Message-ID: <46f9444b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1190741067 209.17.173.11 (25 Sep 2007 10:24:27 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail