Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:854707
More Search Options
RSS Available
Matching Posts
Re: WCF REST Starter Kit2 POST Method Not Allowed 405 Code
Please mark the response that provided the correct answer for future users! Thanks
Posted to
WCF REST Starter Kit
(Forum)
by
randallt
on 10/16/2009
Re: How do I set "allowCookies=true"
Are you trying to set allowCookies for the HttpClient? Or for a WCF ChannelFactory proxy? On the WCF webHttpBinding, "allowCookies" is used to indicate whether the client accepts cookies and propagates them on future requests. When you programmatically create the ChannelFactory proxy, use the constructor that takes both a binding (webHttpBinding) and Uri, and set "allowCookies" on the binding: Uri baseAddress = new Uri("http://localhost:8000"); WebServiceHost host =
Posted to
WCF REST Starter Kit
(Forum)
by
randallt
on 10/16/2009
Re: How do I set "allowCookies=true"
Ok. If you are using the HttpClient (which I recommend), then setting "allowCookies" on the webHttpBinding won't work for you. HttpClient is orthogonal to WCF and nothing you set in system.ServiceModel in your webconfig will impact HttpClient's behavior. For the HttpClient, you should just be able to instantiate a new CookieContainer: HttpClient client = new HttpClient(); client.TransportSettings.Cookies = new System.Net.CookieContainer(); This cookie container should see incoming
Posted to
WCF REST Starter Kit
(Forum)
by
randallt
on 10/16/2009
Re: Error when setting "Host" HTTP Header
I'm not an expert on S3, but looking at the documentation quickly I believe that you still include the bucket name in the request URI, and therefore, the host header would get set correctly by the HttpClient. Looking at the s3 documentation at: http://docs.amazonwebservices.com/AmazonS3/2006-03-01/dev/index.html?UsingBucket.html . It says: "The similarities between buckets and domain names is not a coincidence—there is a direct mapping between Amazon S3 buckets and subdomains of s3.amazonaws
Posted to
WCF REST Starter Kit
(Forum)
by
randallt
on 10/15/2009
Re: How Can I Get The Starter Kit to Return JSON Responses as JSONP
Unfortunately, the REST Starter Kit does not provide support for JSONP. But look for JSONP support in WCF REST with Visual Studio 2010 and .NET 4.0. The Beta1 currently available doesn't have it, but Beta2 (available soon) will. Thanks
Posted to
WCF REST Starter Kit
(Forum)
by
randallt
on 10/15/2009
Re: WCF REST Starter Kit2 POST Method Not Allowed 405 Code
Hi. Method names are case sensitive (per the HTTP 1.1 spec). In your contract for the AddPost operation you have specified the method in the [WebInvoke] as "Post". This should be "POST", as this is what fiddler will send. Try making that change and see if it works. Thanks
Posted to
WCF REST Starter Kit
(Forum)
by
randallt
on 10/15/2009
Re: Error when setting "Host" HTTP Header
I assume you are using the HttpClient and trying to set the "Host" header. Is that correct? Under the covers, HttpClient is using the HttpWebRequest, which doesn't allow you to set the Host header. However, this shouldn't be a problem for you because it will set the Host header based on the host in URI of the request. See http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx for more details. Do you have a need to set the host header to some value other than what
Posted to
WCF REST Starter Kit
(Forum)
by
randallt
on 10/14/2009
Re: Lab 4, step 6: getting a 'Request Error'
Please mark the response that provided the correct answer for future users! Thanks
Posted to
WCF REST Starter Kit
(Forum)
by
randallt
on 10/14/2009
Re: WCF REST Starter Kit2 POST Method Not Allowed 405 Code
What are the URIs that you are using to hit the service (the GET and the POST operations)?
Posted to
WCF REST Starter Kit
(Forum)
by
randallt
on 10/14/2009
Re: WCF Service - coexist as Windows and as Web Service?
In WCF, a service can be hosted in a number of different ways: in IIS, as aWindows service, in console apps or even in Windows Forms and WPF apps. The service contract and implementation code can all be re-used, only the hosting code changes. The code you have posted above is simply for hosting the service--so it won't be useful to you when you try to create a web service--but the CalculatorService code itself can still be reused. For how to host a WCF service in IIS, see: http://msdn.microsoft
Posted to
WCF REST Starter Kit
(Forum)
by
randallt
on 10/14/2009
Page 1 of 3 (30 items) 1
2
3
Next >
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online