Wrox Programmer Forums
|
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 19th, 2003, 07:57 AM
Registered User
 
Join Date: Sep 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Webservice as .exe

My target is to execute x-time the same .exe-file on the same system and they should communicate together by webservices. Is it possible to implement a webservice by c++ and create one .exe-file and this should work without a webserver-environment (like IIS or Apache). I also think about it to implement a mini

I know that is possible with http://gsoap2.sourceforge.net/ but i need a .NET-Solution.
 
Old September 19th, 2003, 12:02 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

A web service by nature requires a web server (otherwise it really wouldn't be a "web service".. I think you are confused about what gSOAP does. gSOAP provides the "stub" for you so that a C/C++ application can see a SOAP webservice in an objective manner so that the C/C++ programmer doesn't have to worry about the "irrelevant details of SOAP's XML".

What you are describing sounds more like Dynamic Data Exchange (though I am wholly unfamiliar with building applications that use this technology). If you are going to be running executables on the same system there are probably much better ways of communicating between the two than web services anyway.

Look into Remoting or Windows Messaging (using the message queues).

Peter
 
Old September 22nd, 2003, 02:38 AM
Registered User
 
Join Date: Sep 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Peter,

Thank you for you reply. I'll look to an alternative solution.
i'm sorry for the last (uncomplete) sentence. It should not be in my article.

Zafer



 
Old September 22nd, 2003, 04:18 AM
Registered User
 
Join Date: Sep 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Peter,

i disagree in one point. gSOAP provide the implementing of a mini web server,too. So there is no external web server necessary. The code for the mini web server is in the help-files of gSOAP and can include by copy&paste to the main(). And it work's like a web service.

Is this also in .NET possible to implement an own web server?

Maybe my question was not clear. Sorry!

Zafer

 
Old September 22nd, 2003, 10:46 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I'm sure it's possible to build your own mini web server in .Net. I don't know of any existing solutions for that however. It would still seem that if you are going to be running two EXEs on the same machine, it would be far more efficient, not to mention easier, to use another form of communications between the two.

Something else to think about regarding using web services. Let's say you had your EXE running and (like gSOAP) it had it's own "mini webserver". Well, by default the web server (mini or not) would be listening to port 80 on the machine. If you had 2 instances of the same EXE running, those listeners would conflict. If they didn't conflict, then you'd need to figure out where the other instance was listening. Seems way more work than it's worth when there are other means available.

Peter
 
Old September 23rd, 2003, 04:15 AM
Registered User
 
Join Date: Sep 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think the "listening"-Problem is not profoundly, it is resolvable by arguments!

That's right! There are other ways for my problem. Which solution would you recommend me?
It should have only one interface for the internal (two EXEs on same system) and as well as the external communication (network).

Independently from my question, i thank you for the responses.

Zafer
 
Old May 16th, 2004, 06:44 AM
Registered User
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

COM service is more good but more complex, I also want a mini server only serve inside one PC, web-service is more easy to talk, so a mini server supply web-service to and inside current PC is needed.

 
Old June 6th, 2004, 04:22 AM
Registered User
 
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, I want to know can I expose a win32 application as a web service. I have heared it is possible in .net, but I coudn't find any thing about it yet.
karim






Similar Threads
Thread Thread Starter Forum Replies Last Post
Membership: aspnet_sql.exe -> aspnet_regsql.exe ricpue BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 August 9th, 2006 11:40 PM
problem creating .exe from MFC AppWizard(exe) c++ method Visual C++ 0 July 7th, 2006 03:28 AM
Tomcat5.exe vs tomcat5w.exe Hasib Apache Tomcat 1 June 26th, 2006 06:46 AM
invoke .exe from webservice on server Mk_CSharp .NET Web Services 3 January 17th, 2005 08:10 AM
PHP5 and php.exe php-cgi.exe php-win.exe freddo Beginning PHP 1 August 16th, 2004 09:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.