I am creating windows 8.1 mobile application where i want to consume WCF service.
I know how to call Webservice from windows 8.1,simply we call the url of webservice.
for ex: http://192.168.0.102/MobilApp/SrvOMM.asmx/FunCheckLogin?username=abc&password=abc
above url we call through http client and it call and return the result same thing I want to call in WCF service.
I have created WCF service and checked it in Test Client its working fine.
when i am creating url as we create for web service and hitting it, it returns an error.
I am unaware of WCF web.config settings like endpoints,service behaviour and etc. if is there anything we need to mention in configuration file please let me know.
Just wanted step by step process to consume WCF service in windows 8.1 mobile app.
Thanks in advance
Consuming a WCF service in windows 8/8.1 can be done. See this blog:
http://blogs.msdn.com/b/piyushjo/archive/2011/09/22/wcf-in-win8-metro-styled-apps-absolutely-supported.aspx
Related
Our project need a new component. 1. It need to communicate with non-WCF components. I would like to host WCF service in IIS + WAS, which is more stable than self-hosted WCF service. 2. Meanwhile, there are many work loads as well as queuing/cache needed for the new component, I want it works as a long-running window service. To be a summary, can we have an IIS hosted WCF service as a part of a window service? Would you please note that I don't want to compare hosting via IIS vs windows service. Thanks.
I have a clean up service that needs to be ran on a schedule and sometimes on demand. My first thought was to create a windows service but a windows service cant be ran on demand. So, I am thinking of creating a ASP.NET web api site to run this background process. This way I can run the cleanup service on demand from a webpage and I can have a windows service call the web api url to run the service.
So there will be a Web API site that will execute the cleanup logic and both a webpage and a windows service can call this web api service to cleanup.
Do you see anything wrong with this idea? Is there a better way to do this
creating my first webservice and need some assistance. i'm trying to create a web service to send data on a machine that doesn't have IIS. I have seen examples of this on msdn Host web service outside IIS.
My question so far is the address for the web server as the one in the example uses Http://localhost/WSEHostedWebService, i'm not sure what to use here as there is no web application or even IIS running on the intended machine. Should this point to a directory on the intended machine i.e. c:\webservice\myFirstService.asmx ?
To quote them "The following code example creates a Windows service named WindowsServiceToHostASMXWebService that hosts a Web service named Service at the soap.tcp://localhost/Service endpoint." - Try saying that fast with a mouth full of water :D
Anyhoo, unless you specifically need ye olde worlde asmx service do it in a WCF web service inside a windows service instead read this and this other link with example
As the link above says WCF handles the HTTP stuff outside of IIS anyhow.
I have WPF application and i have to implement it with some other application on same PC.
It is request that my app must be accesed with api or service, and also to hide GUI totaly.
So i need advice on api or service for my application, should i create windows service of WCF application, so other application (JAVA application) can call my app and get returned string.
Any suggestion on this case is more then welcome!
If you want to have WPF application, you can host a WCF service within your WPF application. Read for example: Running a WCF listener in a WPF application
I would do both - a WCF service hosted within a windows service, you can throw away WPF completely.
The WCF's BasicHTTPBinding works well with Java's javax.xml.ws.Service.
I have one windows service application and one ASP.NET web application, both created by C#. Both applications get data from the database(SQL server).
Once I update database from web application, how could I inform service application to reload data from database?
Right now our solution is to use service controller to restart windows service application. Is there any low cost solution, like communication between service application and web application?
By the way, my boss hate polling method...
If wcf is a choice, can anyone post some materials?
Thanks a lot!
you can implement workflow services that runs as a windows service. That service must have an activy that can be called over net.tcp request and processes your request. I'm using this solution and works fine.
Other way is the service use the database to check if it's necessary to perform the reload.
You can take advantage of Service Broker
In a nutshell: using the SqlDependency class you can wire up an event in C# that will fire whenever a table gets updated. At that point in time, you can re-load the new data.