Questions tagged [webget]
45 questions
0
votes
1 answer
Dataset bind to Gridview within WCF REST retrieval method and Linq to Sql
I used a WCF REST template to build a WCF service library to create PUT and GET calls. PUT method works fine sending my blob to a database.
On the GET, I want to be able to access the web service directly and display the results from a stored…

Jai
- 319
- 2
- 9
- 30
0
votes
1 answer
C# RESTful service - HTTP 504 / Connection Reset
I have a C# application that takes and returns information via RESTful services.
The way I handled these operations before, was the methods simply returned JSON strings, and these strings were then wrapped in XML.
To prevent this, I changed the…

SimonC
- 1,547
- 1
- 19
- 43
0
votes
2 answers
WCF REST Service - Self Host Windows Service - How to use % in URL
I have a REST WCF service that has a method that gets a parameter as a string
When I use the %23 in the Url I got an error message: Endpoint not found!
e.g:
-- Id #9999
http://localhost:8000/MyService/GetData/Id/%239999 (%23 means # symbol…

Rick
- 138
- 3
0
votes
1 answer
How To Pass JSON to a WebGet
I have the following WebGet:
[WebGet(UriTemplate = "GetAssignments/{data}")]
[Description("GetAssignments")]
BASE.BaseResponse

Scott
- 2,456
- 3
- 32
- 54
0
votes
1 answer
WCF service (entity) ¨linq quert select db table through parameter webget possible?
i wanted to ask if it possible to select an entity database table through a webget parameter ? here is what it might look like :
[WebGet]
public IQueryable GetAllCallers(string select, string **table**)
{
…

lesley belgium cuber houben
- 72
- 1
- 8
0
votes
0 answers
Is there way to convert just some service methods in a WCF to webMethods? Or add webmethods to an existing WCF?
I have an existing WCF, which already has service methods available on it. I would like add some webMethods to this very same WCF to be accessed via a web browser.
Is this possible?
I see plenty of examples online on how to setup webMethods, the…

dawsoad
- 13
- 4
0
votes
1 answer
WCF data service [WebGet] datetime parameters
I try to pass 2 datetime parameters into my webget but I can't figure out how to get it to work properly I will show you my code below and the error i get maybe somebody nows how this works .
[WebGet]
public IQueryable…

lesley belgium cuber houben
- 72
- 1
- 8
0
votes
1 answer
Java Wget Bz2 file
I'm trying to webget some bz2 files from Wikipedia, I don't care whether they are save as bz2 or unpacked, since I can unzip them locally.
When I call:
public static void getZip(String theUrl, String filename) throws IOException {
URL gotoUrl =…

Danielson
- 2,605
- 2
- 28
- 51
0
votes
1 answer
Retrieving Navigation Properties through WebGet method in WCF Data Service
friends!
I'm having a problem with getting navigation properties in WCF Data Service in WebGet method.
I turned off ProxyCreationEnabled and LazyLoadingEnabled
I have [DataContractAttribute(IsReference=true)] and [DataMember] attributes.
I see…

Zheglov
- 61
- 8
0
votes
1 answer
Ado.net dataservices BeginExecuteBatch call works on development fails on production server with Object does not match target type
We have an ado.net dataservices 1.0 call that is being passed to a [WebGet] service operation as a batch through BeginExecuteBatch.
Everything works perfectly on our development server - we have the project configured to use IIS instead of the…

Mike Morley
- 105
- 1
- 6
0
votes
1 answer
Not able to access WCF Rest method hosted in IIS 7 remotely or locally
My problem looks similar to the one discussed in this thread
Checked this thread and went through all the steps but my problem exists
Running the service directly from visual studio, I am able to invoke the REST WebGet method using…

Aurodeep Ghosh
- 21
- 4
0
votes
1 answer
Strange behavior with WCF WebGetAttribute's UriTemplate property
I'm done banging my head on the keyboard for this one.
I have a WCF client project that can be used to hit the Yahoo GeoPlanet service. One of their endpoints for free-text querying can be represented like so:
[OperationContract(Name =…

danludwig
- 46,965
- 25
- 159
- 237
0
votes
1 answer
How to limit access to a WCF service, by referer?
I have a service that I access from jQuery on a page, it looks like this:
[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class FacadeService
{
…

Robert Seder
- 1,390
- 1
- 9
- 19
0
votes
1 answer
Pass parameters to web page from Windows client
I have the following method in a controller in an MVC website:
[WebGet]
public void SaveInfo()
{
string make = Request.QueryString["Make"];
string model = Request.QueryString["Model"];
// Do stuff....
}
It works fine when I type the…

user390480
- 1,655
- 4
- 28
- 61
0
votes
2 answers
WCF WebGet Dictionary Parameter on GET
I want to create a WCF RESTful service method that can receive an arbitrary number of parameters in the query string and send them to some type of key,value collection parameter on the method. For Example:
if I call…

Mikeb
- 781
- 7
- 24