DataServiceHost
Is it possible use nettcp binding with DataServiceHost ...
Is it possible use nettcp binding with DataServiceHost ...
Until yet I was using httpHandlers for performing all server side logic and these httpHandlers were being called by jQuery $.Ajax. In this case to pass any parameter I used to pass pure JSON object (obviously key value pairs) which was automatically translated to the Request.Form keys on serve side. Now as I am trying to call WCF endpo...
Problem When making calls to a SQL database from a WCF service we receive the following error: "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to...
I have a windows mobile application that sends data via WCF to a server. The data it sends sometimes exceeds the limit on the windows mobile device. I am wondering if streaming would help not need to hold all the data I must send in memory at once. Here is a simple example: [DataContract] public class MainContract { [DataMember] ...
I work with a group that is very adamant on keeping the wsdl and xsd that are associated with our web services as private as possible, and only distributing them to customers on a need to know basis. My question is this... Is this overkill? I realize that adds anyone layer of obscurity to any potential attacks, but is this really doing ...
How to put a resource (multiple languages in client) message into a CustomValidation? Example: using any of ValidationAttribute, let'say StringLength, I simple use ErrorMessageResourceName and ErrorMessageResourceType, but it did not work for CustomValidation. Simple Code: public class UserInfo { [Required] public string Name { get...
How do you troubleshoot a WCF Service consumption from the client side (silverlight) when from the server you can tell that you service works (stepping through) and the client gets an ObservableCollection with nothing in it? void client_GetAddressesCompleted(object sender, GetAddressesCompletedEventArgs e) { var x = e.Re...
Hi I have a WCF Service method SavePlannerData that has one of input Guid datatype. Now if there is no Guid, it is coming as EmptyString ("") instead of null. If it is null, it is working fine. If it is emptystring, it is not calling WCfService and It is throwing the following error: Error in deserializing body of request message for...
I'm trying to write a durable WCF service, whereby clients can handle that the server is unavailable (due to internet connection, etc) gracefully. All evidence points to using the MSMQ binding, but I can't do that because my "server" is the Azure cloud, which does not support MSMQ. Does anyone have a recommended alternative for accompl...
I'm trying to launch a WCF service over SSL on IIS 6 through a load balancer. My initial problem was an obvious and pretty well discussed one - the address shown on the WSDL page pointed to https://SERVERNAME/WebServices/mydomainws.svc instead of www.mydomain.com. The answer to this problem is to add a host header value in IIS. I did ...
We have WCF with wsHttpBinding now want to convert it on remoting how to do ? ...
I'm working on a Windows Phone 7 app using WCF for communications with my server. I've created a service and am able to communicate well, but I'm having trouble accessing an interface in the client code. For instance, in my server code I have something like this: [OperationContract] [ServiceKnownType(typeof(IField))] [ServiceKnownType...
Im writing an install and update-server for an intranet-application and I want the user to be able to install the app directly from a url such as: http://domain.local/myapp/install.exe where this request is handled by my service. I also would like to be able to serve some basic HTML on for instance http://domain.local/myapp/status.html ...
Hi, I am calling a .NET WCF service from Ajax like this: result = $.ajax({ type: "POST", // async: false, contentType: "application/json; charset=utf-8", url: BaseUrl + "Services/YucataService.svc/SetGameStatusSecure", data: "{'gameID':'" + gameID + "','pid':'" + pid + "','status':'" + newStatus + "','origStatus':'...
I everyone i have a JSON Array that is construct like this for (var i = 0; i < count; i++) { var record = myDataStore.getAt(i); if (record.dirty){ submitRecords[currentIndex] = record.data; //alert(submitRecords[curre...
I am having trouble hosting a simple WCF service application in IIS 5.1 (XP SP3). I follow this tutorial (hxxp://www.youtube.com/user/pluralsight#p/a/u/1/SVPXLF-g4Ws) but still the service wont load and shows IE blank page "You are not authorized to view this page .. HTTP Error 403 - Forbidden " any advice guys? how to host WCF service...
Here is my scenario...I have a WPF app that talks to a WCF service. The connection string settings are in the WCF service. The WCF service can be deployed to two different web sites, one for QA and one for PROD (each with its own URI). I want my WPF app to be able to be run using QA data or PROD data. Basically, I would pass a pa...
Generally I would never expect to see those 2 words together in the same sentenc, however im working on a project that requires me to do simple pathfinding on multiple roads and I'm just trying to work out the best way to do it. I was originally thinking of having a few wcf services that could accept an origin and destinations do the wo...
Hi, Is it good idea to use WCF to connect to SQL server in my silverlight application? This communication layer deals only with the database (SQL Server) and will return a large dataset most of the time. I am trying to speed up my silverlight application. I was using aspx pages and the client wants something flashier and faster. Any r...
Hello there, I have a WCF Service which is consumed by a web application right now. This WCF service creates reports and saves them to a folder on server. Also, it updates the database with a complete url to download the report. I am concerned about the security of complete url being updated in the database. One option is to save only ...