Article View: borland.public.cppbuilder.webservices.soap
Article #95Updating an already released web-service elegantly
From: 24 Vitamins
Date: Thu, 19 Jul 2007 16:44
Date: Thu, 19 Jul 2007 16:44
62 lines
2259 bytes
2259 bytes
I have a SOAP web-service ISAPI and a client application (win32) that
connects to it - both written in BCB6. I connect to the service in the
client app using the WSDL Importer which creates a static binding the
service. I release both apps to users who end up deploying the web-service
themselves on their own network.
In the next release I need to update the web-service with some new
functionality and consume it from the updated client app.
What I am concerned with is the user that gets the update - installs it on
the client and tries to use it without first updating the web-service ISAPI.
I suspect that the client service interface will fail to even bind. Or at
least it will throw an exception when it tries to call a function that does
not exist.
I want to do something like this:
clientapp::Foo()
{
bind to web-service
if (web-service is the old one)
{
prompt user to update the web-service ISAPI first
return;
}
// its definitely the new service
call the new web-service function()
}
I guess I can simply wrap the binding and calling in a try catch and if
there is a soap exception assume it is the old service - but that sucks - it
is an assumption.
What do you suggest?
BCB 6.
Technical Details
Message-ID:
<469f953c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!64.192.187.27!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11096a,285bb76c4d1b9546,start X-Google-Attributes: gid11096a,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "24 Vitamins" <smakjasdhfg@iuyd.com> Newsgroups: borland.public.cppbuilder.webservices.soap Subject: Updating an already released web-service elegantly Date: Thu, 19 Jul 2007 09:44:56 -0700 Lines: 66 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 NNTP-Posting-Host: 207.61.87.125 Message-ID: <469f953c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1184863548 207.61.87.125 (19 Jul 2007 09:45:48 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!64.192.187.27!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail