Article View: borland.public.cppbuilder.webservices.soap
Article #102Re: Problem with using MSSOAP
From: Jean-Marie Babet
Date: Wed, 14 Jul 2004 16:44
Date: Wed, 14 Jul 2004 16:44
39 lines
2617 bytes
2617 bytes
Hello Dean, I have not used MSSOAP for a very long time (it was actually not known as MSSOAP yet when I last I used it). If you suspect a COM issue, I would suggest dropping the InterfacePtr wrappers and going directly for the interface with explicit Release calls - there are just 4 of them in the sample posted. Also, along the same COM issue suspicion, do the interfaces have to be initialized/destroyed LIFO-wise? Currently the order of destruction will go in reverse order of declaration, not reverse order of initialization. I suspect this does not matter but....? Explicit 'Release' calls will also allow better control in this issue. I doubt this matters but the following line makes me a little uncomfortable since the underlying interface wrapper exposes a conversion operator to the its interface type but not to IUnknown*: > OleCheck(Serializer->Init(TVariant((IUnknown*)Stream))); So I would prefer > OleCheck(Serializer->Init(TVariant((IUnknown*)(IStream*)Stream))); > I believe that this is caused by the fact that after the request has been > sent and the reponse recieved the control is still connected to the HTTP > server. So I end up with an ever growing number of connections until the > program is shutdown. so this is the real problem. You're assessment is probably correct but in case you're interested, if you have something like proxyTrace (http://www.pocketsoap.com/tcptrace/pt.aspx), it might be useful as it will allow you to confirm that indeed the HTTP connections are still open. Regards, Bruneau.
Technical Details
Message-ID:
<40f562f4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tdsnet-transit!newspeer.tds.net!diablo.voicenet.com!textfeed1.on.meganewsservers.com!meganewsservers.com!feeder2.on.meganewsservers.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<40f4bebd$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11096a,3cec10b879f4b20d X-Google-Attributes: gid11096a,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Jean-Marie Babet" <bbabet@borland.com> Newsgroups: borland.public.cppbuilder.webservices.soap References: <40f4bebd$1@newsgroups.borland.com> Subject: Re: Problem with using MSSOAP Date: Wed, 14 Jul 2004 09:44:31 -0700 Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 10.143.13.218 Message-ID: <40f562f4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1089823476 10.143.13.218 (14 Jul 2004 09:44:36 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tdsnet-transit!newspeer.tds.net!diablo.voicenet.com!textfeed1.on.meganewsservers.com!meganewsservers.com!feeder2.on.meganewsservers.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail