Reputation: 1171
I've got a somewhat weird requirement and need to explore possibilities. Here's the requirement:
Server side(out of our control and scope to make any changes)
- We have an Application server running on one machine.
- The application server is supposed to read data from Web Services at regular intervals( to store
into database for further processing).
Client side:
- The users work on an Excel Work book. To synchronize their data to Application Server, the Excel Addin should be able to provide a web service interface. The Application Server will periodically poll this client side web service to obtain Updated data.
I am completely aware that it seems to be a wrong design and that the Application server should host a web service for reading data. But, this is what the situation demands.
My question:
1) Is there any remotest possibility that Excel Addin can host a web service?
2) Can a .Net based Addin host the web service using WCF?
3) If yes, can WCF provide exactly same web service interface as ASP.Net Web services? ( I read about BasicHTTPBinding, WSHTTPBinding, etc but could not find enough information to make a decision).
4) Any other alternatives that you can think of??
Thanks,
Vamyip
Upvotes: 1
Views: 1037
Reputation: 364279
What an architecture ...
This is not a full answer to your question because I know almost nothing about Excel programming and possible issues with implementing this but it should be theoretically possible to host service in .NET plugin for Excel. I will just point what is needed for WCF:
BasicHttpBinding
but if you don't have WSDL + XSDs of expected interface it will be complex task to create compatible service for existing client.Why the hell is not the architecture done correctly by exposing single service on the application server and pushing data from clients to these service? An architect of this application should be fired immediately for total incompetence.
Upvotes: 1