Accessing a non silverlight enabled web service from a Silverlight Phone Application - windows

I'm trying to access a WCF web service (that is NOT silverlight enabled) from a Windows Phone Application using Silverlight.
I am able to add the service reference fine and I can see all the methods on that service.
The problem I'm having is that when I actually try to call a method I get an "EndPointNotFoundException."
I've read many examples that use a web service which is SilverLight enabled.
My question is: Is it possible to use a web service that is NOT silverlight enabled in a Windows Phone Application using Silverlight?

Test the service with the WCF Test Client and see if it works. In case there are no errors, make sure that the service is using basicHttpBinding (and not wsHttpBinding, as I see in a lot of services - it is not supported on WP7).

Related

Using ASMX Web Reference in Windows Service

Is it possible to create a windows service where Web References are used?
I've written a windows service file which compiles up until I add my web references. The .vb code enclosed runs as a .aspx file in a different project, so the code is not erroneous. I, however, have been able to find no documentation claiming I cannot use a Web Reference in a windows service.
If I cannot use Web References in a windows service, how should I make a call to a .asmx from a windows service project?
Is not possible to use an ASMX web service inside a Window Service. You must use a WCF service.

Create WCF service with Integrated Windows Security on IIS7

I'm trying to create a WCF service that uses Integrated Windows Security and will be hosted on IIS7.
This service is going to be used inside a domain and will be consumed by a java client.
My questions are:
What bindings should I use ?
How do I set up Integrated Windows Security on IIS7? (not the same as IIS6)
How do I get the credentials inside the service (C#), that is, how to read the user name.?
Thanks,
Thomas

Can I open SaveFileDialog (windows.form) in WCF Service class?

Need to generate document on the fly. for all the operation in application we are using WCF service.
(to generate the document we are plannign to use Syncfusion library, call is been made from ExtJs client and WCF service performs all db operation.)
Whats the possible solution for generating the document using WCF?
The WCF service is used to access the services from server in client mode, hence it’s not possible to open a Winforms application in WCF service. However you are trying the reverse action and we can’t access the remote application in server.
Please refer the below link for further clarifications.
How to create a file in WCF service application in windows
Thanks,
AL.Solai.

Need a step-by-step WCF as Windows Service

I'm trying to find a (good) step-by-step example of creating a WCF and hosting it as a Windows Service (with installer). I'm using VS2010 and have a simple WCF with 1 function (just returns 'Hello').
Please don't Google and post; I'm looking for a resource someone has actually used. Most of the Googling I've done hasn't turned up much for what I'm trying to do.
I just want to take my WCF library, and find a way to install it as a Window Service. I've done it in 2008, but 2010 is... Different.
For future reference - for anyone else looking at this thread:
Here is the best example I've found for what this question was looking for:
CodeProject: WCF Service with Windows Service Hosting, consumed from C# App!
This link mentioned above shows how to consume the WCF service, but with a lot of other stuff to wade through:
MSDN: How to: Host a WCF Service in a Managed Windows Service!
This second link above is good for creating the WCF service, but not for consuming it:
MSDN: Hosting and Consuming WCF Services!
I rarely find MSDN articles that I like :-)
You just need to host the wcf contract class in your onstart method of service calling ServiceHost host = new ServiceHost(YourClass) and in onclose method of your service you need call host.close(). The hosting option depends on what type of clients you want to talk to if you want to talk to pure html clients using REST you need to host your service in WebServiceHost and the binding you need to use in that case is webHttpBinding.
I have followed the following example and was able to create windows service hosted wcf and im sure this what you are looking for link
I did not find any difference in creating wcf service in vs2008 and vs2010.
What type of clients do you want to talk and which protocols do you want to support. This all defines your configuration.
What I've used when I use WCF in a Windows Service is Topshelf as a Windows service framework and a modified version of this Code Project code to dynamically host, install and run WCF services.
Topshelf makes it very easy to develop and debug because it can be run as a console application. Being able to dynamically update WCF service libraries without stopping the Windows service is just cool. ;)

Writing Windows service in WCF

I want to write windows service in wcf After searching a lot I only found were tutorials of writing webservice in wcf not windows service.
Can any one please provide a link to any tutorial which explains how to write windows service in WCF
Windows services are executables. WCF applications are, generally, web services, exposed over a URI. You can host a WCF application within a windows service, not the other way around.
To create a Windows service in C#, follow the step-by-step here. To make your Windows service WCF-enabled, if you will, create the System.ServiceModel.ServiceHost instance that will host your WCF service inside the OnStart() callback.
Good answers all of them. Just a quick note... implement your WCF service in a class library (dll) so you can then host it anywhere you like (IIS, Console App, or Windows Service).
I'd recommend starting from a console application, after your service works as expected, create a Windows Service, add a reference to you library and start the service (WCF) from there (Windows Service)
Edit: I just assumed you meant create a WCF service hosted as a Windows Service, if that's not the case please ignore my answer.
Create your WCF service as normal, create a Windows Service and then use ServiceHost to self-host the WCF service in your Windows Service. See this MSDN page for more information about self-hosting WCF services.

Resources