Solved

Need WCF Host Learning Project

Posted on 2013-06-18
6
191 Views
Last Modified: 2013-06-19
I have found many VS solutions on the Internet which contain several projects referencing other class library projects.
I would like to find a solution containing a WFC Host console Project which runs like a real web host. Then I can add a web project to query it. Make any sense?
0
Comment
Question by:WorknHardr
  • 3
  • 3
6 Comments
 
LVL 15

Expert Comment

by:jorge_toriz
ID: 39258637
Do you want a host console project that expose a service through a binding that works with http?
0
 
LVL 15

Accepted Solution

by:
jorge_toriz earned 500 total points
ID: 39258662
This could be the most basic project that I could do

You must modify app.config file in MathHost to change the base address and use your machine name
You can open the Visual Studio as administrator to avoid the use of netsh to be able to run the program
If you don't want to run Visual Studio as administrator then here is the netsh command: netsh http add urlacl url=http://+:8001/ user=YourUserName

After executing the host you must add the reference to your hosted service to be able to test the project that I put in the ZIP, experts-exchange interface didn't allow me to include several "dangerous" files in the ZIP.
WCFConsoleHost.zip
0
 

Author Comment

by:WorknHardr
ID: 39259343
>>Do you want a host console project that expose a service through a binding that works with http?

Yes! I need the http access to test REST...
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Closing Comment

by:WorknHardr
ID: 39259539
danka
0
 
LVL 15

Expert Comment

by:jorge_toriz
ID: 39259734
Well, if you want to use REST you will need to change the binding to webHttpBinding and the host must be a WebServiceHost, this class is located in System.ServiceModel.Web assembly
0
 

Author Comment

by:WorknHardr
ID: 39260216
Thanks again
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Re-position sub-options beneath the TAB 7 79
How to LOAD up a .NET Framework website with data? 2 41
Split in Javascript 5 31
Help with C#, MVC, razor. 6 23
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now