[DUG] SOAP services WSDL not refreshing

David Moorhouse David.Moorhouse at pegasus.org.nz
Tue Apr 7 10:54:17 NZST 2015


☺

From: delphi-bounces at listserver.123.net.nz [mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Willie Juson
Sent: Tuesday, 7 April 2015 9:47 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] SOAP services WSDL not refreshing

Mmmm,

I think I have figured it out, but I’m not sure why it is doing what it is doing. Anyway I’ll detail it a bit here so if anyone else has the same problem …..

Basically my project has the SOAP Server and Client in the same project group. I always use the Component/Import WSDL tool in the IDE to create my client interface file. This interface file I believe is only needed in the client but at some point I had generated it with the Server project set as default. I just noticed this file in the server project and it had a reference to an old test interface I have since deleted from the Server, when I manually edited that file to remove the dodgy method, added a new test method (Helloworld2) and rebuilt/deployed the server everything is now in order and I can see the new HelloWorld2 interface plus the one that has been missing.

So, for some reason having an invalid interface definition file (as produced by the Import WSDL tool) included in the Server project seems to screw up the Server’s WSDL publishing.

Thanks for the help David and Edward

Willie

From: delphi-bounces at listserver.123.net.nz<mailto:delphi-bounces at listserver.123.net.nz> [mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of David Moorhouse
Sent: Tuesday, 7 April 2015 8:43 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] SOAP services WSDL not refreshing

Just trying a different URL to see if either the client or server is caching.

Have you tried importing the new wsdl via the Delphi SOAP client tool ?

D

From: delphi-bounces at listserver.123.net.nz<mailto:delphi-bounces at listserver.123.net.nz> [mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Willie Juson
Sent: Sunday, 5 April 2015 10:21 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] SOAP services WSDL not refreshing

Thanks for responding David, sorry I don’t understand what you mean here, could you elaborate please?

Just by the by I got it to show up by renaming the interface from IASOAPServer to IASOAPServer2, I also gave it a new GUID at the same time but not sure if that was actually needed. I guess this is a workaround but it’s pretty ugly IMO and I’d rather figure out exactly what I need to do to just get it to refresh …


From: delphi-bounces at listserver.123.net.nz<mailto:delphi-bounces at listserver.123.net.nz> [mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of David Moorhouse
Sent: Thursday, 2 April 2015 4:54 p.m.
To: 'Edward Koryagin'; 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] SOAP services WSDL not refreshing

Try adding another URL param to the GET request for the WSDL to see if that refreshes the cache.

Cheers

D


David Moorhouse (BCom) | Principal Software Engineer
Pegasus Health (Charitable) Ltd
P: 03 353 0871 |   W:  www.pegasus.org.nz<http://www.pegasus.org.nz/>
E: david.moorhouse at pegasus.org.nz<mailto:david.moorhouse at pegasus.org.nz>
PO Box 741, Christchurch 8140
160 Bealey Ave, Christchurch 8014

[cid:image003.jpg at 01CEE516.6F544D00]



From: delphi-bounces at listserver.123.net.nz<mailto:delphi-bounces at listserver.123.net.nz> [mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Edward Koryagin
Sent: Thursday, 2 April 2015 4:23 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] SOAP services WSDL not refreshing

2008 R2 Standard SP1
IIS 7.5

Eduard Koryagin

________________________________
From: Edward Huang <edwardh at slingshot.co.nz<mailto:edwardh at slingshot.co.nz>>
To: NZ Borland Developers Group - Delphi List <delphi at listserver.123.net.nz<mailto:delphi at listserver.123.net.nz>>
Sent: Thursday, 2 April 2015 3:33 PM
Subject: Re: [DUG] SOAP services WSDL not refreshing

Which windows version IIS is running on?

Edward

Sent from my iPhone


On 2/04/2015, at 14:17, Willie Juson <willie at compliant.co.nz<mailto:willie at compliant.co.nz>> wrote:
Thanks for that Edward,

I had tried restarting (and recycling) the app pool and the website, with no joy, although I don’t know how to clear the cache.  I just tried something I found about HTTP headers on a .Net forum which I thought was maybe cache related and it destroyed the website (corrupted the web config file I think) so now I have to rebuild it.

From: delphi-bounces at listserver.123.net.nz<mailto:delphi-bounces at listserver.123.net.nz> [mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Edward Huang
Sent: Wednesday, 1 April 2015 9:48 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] SOAP services WSDL not refreshing

Hi Willie,

Based on my understanding, you might need to check a couple of things.

1. Did you restart iis application pool after you deployed new executable?  If not, you need to.

2. Check cache settings for the web app in iis. By default iis caches static pages, & wsdl could be counted as static pages. To be safe, you should disable all caching for web services.

Regards,

Edward Huang

Sent from my iPhone

On 1/04/2015, at 16:26, Willie Juson <willie at compliant.co.nz<mailto:willie at compliant.co.nz>> wrote:
Hi,

I’m working on a project creating a bunch of SOAP services in an executable (running under IIS), I’m consuming these from another client executable.  I am finding that sometimes, and only sometimes, I make some changes to the SOAP server and deploy them but I can’t get my client app, using the Component/Import WSDL wizard, or a web-browser to see the new services.

If I browse to the services executable e.g.

http://192.168.2.64:8080/mysoapservices/ASOAPServer.exe  or
http://192.168.2.64:8080/mysoapservices/ASOAPServer.exe/SOAP/IASOAPServer

then I can see the new structure, but if I look at the WSDL

http://192.168.2.64:8080/mysoapservices/ASOAPServer.exe/WSDL/IASOAPServer

then it hasn’t changed… rather frustrating, and only occasional.

Has anyone in the group had similar issues?

TIA

Willie
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at listserver.123.net.nz<mailto:delphi at listserver.123.net.nz>
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at listserver.123.net.nz<mailto:delphi-request at listserver.123.net.nz> with Subject: unsubscribe
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at listserver.123.net.nz<mailto:delphi at listserver.123.net.nz>
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at listserver.123.net.nz<mailto:delphi-request at listserver.123.net.nz> with Subject: unsubscribe

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at listserver.123.net.nz<mailto:delphi at listserver.123.net.nz>
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at listserver.123.net.nz<mailto:delphi-request at listserver.123.net.nz> with Subject: unsubscribe


*****************************************************

This email or attachment(s) may contain confidential or legally privileged information intended for the sole use of the addressee(s). Any use, redistribution, disclosure, or reproduction of this message, except as intended, is prohibited. If you received this email in error, please notify the sender and erase all copies of the message, including any attachments.

Any views or opinions expressed in this email (unless otherwise stated) may not represent those of Pegasus Health Ltd.

**********************************************************

*****************************************************

This email or attachment(s) may contain confidential or legally privileged information intended for the sole use of the addressee(s). Any use, redistribution, disclosure, or reproduction of this message, except as intended, is prohibited. If you received this email in error, please notify the sender and erase all copies of the message, including any attachments.

Any views or opinions expressed in this email (unless otherwise stated) may not represent those of Pegasus Health Ltd.

**********************************************************

********************************************************************************
This email or attachment(s) may contain confidential or legally privileged 
information intended for the sole use of the addressee(s). Any use, redistribution, 
disclosure, or reproduction of this message, except as intended, is prohibited. 
If you received this email in error, please notify the sender and erase all 
copies of the message, including any attachments.

Any views or opinions expressed in this email (unless otherwise stated) may not 
represent those of Pegasus Health Ltd.

********************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20150406/b3e181fc/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3614 bytes
Desc: image001.jpg
Url : http://listserver.123.net.nz/pipermail/delphi/attachments/20150406/b3e181fc/attachment-0001.jpg 


More information about the Delphi mailing list