FAQ Database Discussion Community
wcf,wcf-endpoint,wcfserviceclient
I have 2 solutions: In solution 1 I have a web project with wcf service references. In solution 2 I have a wpf project where I start the following wcf client: When I create an instance of my wcf client: using (var client = new LSKTicketServiceReference.LSKTicketServiceClient()) { // client.do() }...
c#,web-services,wcf,rest
Since WCF routing doesn't support routing for REST services, I created a REST service that has one enpoint which accepts all incoming requests and than redirects those requests based on the query parameters. I did this by following this article http://blog.tonysneed.com/2012/04/24/roll-your-own-rest-ful-wcf-router/. This approach works for passing through requests and returning...
asp.net,asp.net-mvc,wcf,forms-authentication,adfs2.0
I have an ASP.NET MVC web app that uses ADFS 2.0 for authentication. Some of the MVC controller actions function as generic web service endpoints, receiving and serving JSON. I want to build a client application that automates some of the app's functionality. For that purpose, I am building an...
android,json,wcf,retrofit
I am sending requests from my Android phone using retrofit to a server. Result is 200 OK, but I get the next problem: I don't understand 1 type of 1 element here in JSON response body. { "Articles":[{ "Categories":[{ "Identifier":2147483647, "Name":"String content" }], "Contents":[{ "URL":"String content" }], "Country":{ "Identifier":2147483647, "Name":"String...
c#,web-services,wcf,quickbooks,connector
I am trying to write a small SOAP server, which connects to the QuickBooks Web Connector, but I have some trouble to find the correct contracts. I always get following error: Web Connector Method x cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This...
wcf,linq-to-sql
I want to ask this question and I tried to search for a while without concrete answers. I have made a database and used LINQ2SQL to auto-generate the classes needed. I have set the serialization mode to unidirectional to make sure the classes are being serialized and making the datamembers....
.net,entity-framework,wcf
I've got a WCF service, which contains a Entity Framework model. My class has a timestamp attribute, so conflicting updates should throw an OptimisticConcurrencyException. My question is, what's the best way to pass this exception to the client, without assuming that the client is .NET? So, I will skeleton out...
c#,sql,sql-server,entity-framework,wcf
Entity framework seems to be almost more trouble than it is worth for larger databases. In my apps (WCF Services, Hosts, and Clients) I need to synchronise various Entity Class Objects, have the Connection parameters in various app.config files (synchronised) and when I do a model update (Database to Code)...
c#,wcf,clr,transparentproxy
I'm trying to get insights about how transparent proxy created by WCF ChannelFactory work by digging into source codes. CreateTransparentProxy is marked by extern keyword and [MethodImplAttribute(MethodImplOptions.InternalCall)] attribute which means that I must look implementation inside CLR as long as my understanding goes. In CLR source codes I found only...
c#,wcf,visual-studio-2013,sharepoint-2010
I'm very new to .NET and developing within VS, and I'm trying to make a few basic WCF Web Services for testing purposes. I'm running Visual Studio Profession 2013 on a Win 7 x64 computer that is also running Sharepoint 2010 Server. I'm trying to go through the following tutorial:...
c#,.net,wcf,servicebus
I'm looking to build a bidirectional communication service using ServiceBus 1.1 for Windows Server, there's a receive queue and a send queue, classic setup. Now the thing is that I'd like to have a WCF service communicating over these queues. Tom Hollander writes about it here: http://blogs.msdn.com/b/tomholl/archive/2011/10/07/using-service-bus-queues-with-wcf.aspx but the trouble...
asp.net,wcf,log4net
I have added Log4Net in my project using NuGet Package Manager and it is showing Version 2.3 installed on my system. Here is my config entry: <configSections> <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> </configSections> and then reference to...
c#,wcf,windows-runtime
This is a question about app life cycle. My WinRT client app connects to a Dual WCF service that pushes data into the client at the millisecond level. Everything works fine up to the point where the client app eventually gets suspended. It simply leaves the service hanging in there.......
c#,json,wcf
I can not for the life of me figure out whats going on and who I can't post to my service using json. I've tried reading every comment under the sun from google on the issues I have but everything is currently bringing me to a dead end. Please help!...
c#,web-services,wcf,rest
I can't find a way to add to web get in the uri template parameters. I'm wring a RESTful service and I need to add to the GET operation the caller IP in order to use in my interface implementation. I would expect the there is a keyword for that...
asp.net,asp.net-mvc,wcf,cookies,asp.net-identity
I'm working in a server-side application where I'm applying multi tenancy. In this server side I have a Backoffice (ASP.NET MVC) and a BackEnd (WCF). I want to decrypt Identity cookie so that I can check that it is valid and use it to auth in WCF Services. To be...
c#,wcf,message-queue,wcfserviceclient,request-queueing
I have a WCF service which creates a number of files at a server location doing various calculation on seed file depending upon the params given. The problem is that, the when 2 or more clients try to do calculation on same seed file, it is returning error. The cause...
web-services,wcf
I am in the path of learning WebServices and WCF. So far I understand that webservice or Wcf contains web methods which can be consumed by client side or on the service side too. But my question is why do we need to publish/deploy a webservices or wcf in IIS...
java,android,json,web-services,wcf
Error coming in this section: protected void onPostExecute(JSONObject json) { try { // Getting JSON Array user = json.getJSONArray(TAG_USER); JSONObject c = json.getJSONObject(0); String id = c.getString(TAG_ID); String name = c.getString(TAG_NAME); Log.i("id",id); } } ------- Webservice Result--- {"GetDataResult":{"ID":8,"Name":"Foo Bar"}} Working Link - http://127.0.0.1/WcfService4/Service1.svc/getData/?key=8 Provide the better solution for solving this....
c#,wcf,events,prism,msmq
I have implemented Prism event Aggregators on my server where a service publishes an event and another one listens to it. My subscription code: my_aggregator.GetEvent<MyEvent>().Subscribe(Handler,true); whereas I publish my event as: my_aggregator.GetEvent<MyEvent>().Publish(Payload); The thing is that if the subscriber is alive then, everything works fine. But, lets say an event...
c#,asp.net,asp.net-mvc,wcf
I tried to write my First WCF service and here i have some problems, First,I create a WCF Project,Then i added Entity Model.After that i added IEmpService.svc file.then i'm going to get a List of Customers. I follow THIS BLOG POST IEmpService [ServiceContract] public interface IEmpService { [OperationContract] List<Customer> GetAllCustomers();...
wcf,c#-4.0,automapper
I am trying to map an Entity Framework Code First class to a WCF DataContract class using AutoMapper. The code is as follows: [DataContract] public class User { [DataMember] public int UserId { get; set; } [DataMember] public string UserName { get; set; } [DataMember] public string Password { get;...
c#,asp.net-mvc,wcf
I have the following console application that connects to a WCF endpoint: namespace TestSendMail { class Program { static void Main(string[] args) { SendMailClient client = new SendMailClient("BasicHttpBinding_ISendMail"); client.Send("Test", "[email protected]", new Dictionary<string, string> { { "name", "John Snow" }}); } } } What would an MVC view that had a...
c#,wcf,async-await
I am relatively new to the WCF paradigm and have a simple task at hand . I have a webmethod like this . [OperationContract] [WebInvoke(Method = "POST", UriTemplate = "/GetUser", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] User GetUserById(User user); I have impled this method in the following manner public GetUserById(User...
wcf,iis-express,http-compression
I am building test WCF Service (PersonService) in .NET 4.5 hosted on IIS 8 express. I also have installed dynamic compression on IIS. As far as I know WCF 4.0 onward compression is enabled by default. To enable httpCompression at service I have updated Web.Config as follows: <?xml version="1.0"?> <configuration>...
c#,wcf,ssl
I have a basic WCF service. It works using http, but wont cooperate with https. Can anyone say why not? I'm getting "The underlying connection was closed. An unexpected error occurred on a send" (Inner: "The handshake failed due to an unexpected packet format"). Here's the code invoking (attempting to...
c#,wcf
A WCF service will consume another Wcf service. Now, i want to create channel factory object and cache it manually. I know performance will be good but concern any other issue will be raised or not. I have found info as follows: "Using ChannelFactory you can still achieve channel factory...
c#,.net,json,wcf,rest
I'm calling a WCF service using HttpClient that returns a byte[] (pdf file) via rest/json. I cannot seem to be able the write the bytes correctly to a file on my pc because if I open the created file in notepad, it will just show the byte[] values (i.e. [23,44,21,etc])....
c#,wcf,ws-security,wshttpbinding
I'm attempting to set up a client (Web Application) and service (WCF Service) that will communicate using a WSHttpBinding. It appears that in order to use this binding the client sends preliminary messages to set up the channel. Between the client and the service exists a service bus which is...
c#,.net,web-services,wcf,encryption
My company has long used ASPX and windows services through a routing program to manage the connections and allow our datacenters to control where the clients make connections. Just recently we started using MVC and WCF. Yes in 2015 we are just moving to these things. Anyway they figured out...
c#,xml,web-services,wcf,soap
I do not want my web method name as part of the hierarchy in my XML. I strictly want the object that was passed in to be encapsulated in a SOAP envelope, then have an empty Header, and in the Body I want the first sub-element to be of the...
c#,asp.net,wcf
I have hosted by WCF service on a URL (http://192.168.2.131:8089/). Now, I'm trying to invoke the WCF service from a Windows form, but I'm getting this error: The Address property on ChannelFactory.Endpoint was null. The ChannelFactory's Endpoint must have a valid Address specified. Here is the win form C# code:...
c#,json,entity-framework,wcf,rest
I'm working through a web service using WCF and Entity Framework and I would like to know how to view or return HTTP status codes to the calling clients. The code I have is as follows: IUserService.cs [OperationContract] [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.WrappedRequest, UriTemplate = "/GetUsers")]...
c#,.net,wcf,rest,service
I have a REST API project with controllers and services behind them, and it works well on IIS. Now I'm trying to find a way to host it on a non-IIS computer as a windows service. No luck this far, TopShelf seemed to be what I wanted but I have...
wcf,quartz-scheduler,wcf-binding,quartz.net
Probably a common pattern, but I haven't been able to find any help. I have an ASP.NET web application hosting Quartz, and I have job that fires on schedule. The job calls a remote WCF service: public class SimpleJob : IJob { public SimpleJob() { } public void Execute(IJobExecutionContext context)...
c#,web-services,wcf
That's my link: http://localhost:54483/BusinessService.svc/GetCustomers?numberOf=12&valid=true Always getting the "Bad Request" error when executing at client site. Stays at the startpage (you have created a service...)When entering the URL in the browser. Following the method: [ActionName("GetCustomers")] [HttpGet] public System.Collections.Generic.List<BusinessObjects.Customer> GetCustomers(byte numberOf, bool valid) { return BS.GetCustomers(byte numberOf, bool valid); //BS = BusinessService...
c#,wcf
I have a self hosted WCF service. It offers a processing function DoSth(). The processing might take long so I need to return OK to the caller prior to finish the task. Currently I've implemented that by calling Task.Factory.StartNew(() => DoWork()); Might it be possible that the garbage collector interferes...
c#,wcf,wcftestclient,wcf-test-client
Why I start my wcf service at localhost:53776/MyService.svc I get this error in the wcf test client. This operation is not supported in the WCF client: [ServiceContract] public interface ILSKTicketService { [OperationContract] Task UploadLDTTickets(LDTTicketUploadDTO[] tickets); } Why is this type not supported? How else can I test my Service endpoint?...
javascript,c#,jquery,ajax,wcf
I'm trying to make a WCF service with CORS calls, so far, I have my server with the classes indicated here: http://enable-cors.org/server_wcf.html I was able to make a call with a jQuery ajax call using the verb GET without any parameters, the problem comes when I try to pass parameters...
c#,visual-studio-2010,web-services,wcf,asmx
I'm a total novice on asking questions on this forum - I hope I ask this question correctly. The problem I'm trying to tackle is this: I have a Visual Studio 2010 project which is for a Web Service. The class which does the work is defined in a ".asmx"...
c#,wcf,silverlight
I'm working through two tutorials to create a super simple WCF web service and Silverlight app. Buiding a Service Accessing a Service from Silverlight Everything was going fine. I created my service: using System; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Activation; namespace TestOnline.Web.Data { [ServiceContract(Namespace = "")] [SilverlightFaultBehavior] [AspNetCompatibilityRequirements(RequirementsMode...
c#,wcf,app-config,directoryservices
Does anyone knows how to do directory browsing using WCF and app.config file. I tried doing <system.webServer><directoryBrowse enabled="true"/></system.webServer> but it did not helped. I need to make one directory within my Server available for users to download their files and I am implementing self hosted WCF services. I can share...
c#,web-services,wcf,rest,soap
From MSDN magazine https://msdn.microsoft.com/en-us/magazine/dd315413.aspx and https://msdn.microsoft.com/en-us/magazine/dd942839.aspx I understand that When RESTful endpoints are asked for data using HTTP, the HTTP verb used is GET. Using REST means that you can take advantage of HTTP caching and other features, like Conditional GET, that aid in scaling services. Many of these techniques...
asp.net,wcf,application-pool
We have a ASP.NET/WCF app hosted in Window Server 2012 (IIS 7). We used the basicHttpBinding. This ASP.NET/WCF application exposes two methods; one is to receive messages and the other is to download a text file (1MB) onto the server. On another server, we have ASP.NET hosted in Window Server...
c#,json,wcf
Failed to invoke the service. Possible causes: The service is offline or inaccessible; the client-side configuration does not match the proxy; the existing proxy is invalid. Refer to the stack trace for more detail. You can try to recover by starting a new proxy, restoring to default configuration, or...
c#,asp.net-mvc,wcf,aspnet-identity,confirmation-email
I have two Web applications, WCF and MVC which share same database. I am using Aspnet Identity 2.0 While registering new user, it creates confirmation token and sends email to the user. Creating token, sending email is mostly done in WCF, verification is done in MVC application. var code =...
c#,wcf,nunit,nsubstitute
edit Correction: My Error was that Instead of using ChatService.IChatService I was using ReflectorLike.ChatServiceReference.IchatService. In other words , AFAIU I was referencing a reference to the Interface rather than the Interface it self. (If you find better way to explain that please suggest them I'll edit the answer later) If...
c#,wcf,ssl,windows-services,windows-applications
There are many questions about "The request was aborted: Could not create SSL/TLS secure channel." error message and it seems very few of them were answered. I couldn't find any answer about my case, also my problem is little bit different. I have a Windows Service. It sends data to...
jquery,ajax,wcf
I've been trying to follow this article and create a WCF Service to access with an Ajax call. I am getting a 404 on my Ajax call and have no idea why because it looks ok to me. Can someone please help me fix the 404 error and show me...
c#,wcf,silverlight,telerik
I've to export some report into pdf. I'm using telerki library PdfFormatProvider. PdfFormatProvider p = new PdfFormatProvider(); p.Export(document, stream); But I'm getting exception on p.Export. Any kind of help will be appreciated. ...
c#,web-services,wcf
I pass some values to my WCF service from the .net application in string format. Passing string format will be in this structure, ItemName~ItemDescription~ItemPrice|ItemName~ItemDescription~ItemPrice|... Every line item will be separated by '|' character. I was passing nearly 1000 items. It was working as expected, but when I came to pass...
.net,wcf,visual-studio-2013,soapui,postman
When I make a brand new WCF Service Application named "WcfService1" in Visual Studio 2013 and immediatelly run it, the requests done by WCF Test Client are working flawless. Not a surprise. When I try to test this same initial application in REST/SOAP clients like Postman or SoapUI, I get...
c#,.net,wcf,iis,tcp
I have developped a WCF duplex service and a Windows Winforms client communicating togeteher via a net.tcp duplex binding. Both do communicate and work fine on my LAN, the WCF service beeing hosted on a IIS 7 on a Windows 8 workstation. I then tried to host the WCF service...
c#,wcf,serialization,streaming,deserialization
I have a Streaming WCF service. It receives a stream of a serialized class called ContentObjectData. The bytes I receive in from the stream I have temporarily placed in an ArrayList as I don't know how big the Stream is and to be honest I don't know what to do...
.net,wcf,parse.com,push-notification
I'm trying to implement parse push notification, in some occasions I need the notifications to be sent from wcf service, but it throws "Client-initiated push isn't enabled" exception. What should I do?...
javascript,c#,json,angularjs,wcf
First off, sorry for the length of this but I wanted to include as much info as possible. I'm writing my first typescript/angular app and attempting to call into our existing IIS WCFservices. The calls are cross domain. Thanks for any input. Service Contract: [OperationContract] [WebInvoke(Method = "POST", RequestFormat =...
c#,wcf,odata,asp.net-web-api2
I'm trying create a OData service using Webapi 2. I've already created a working example that works with a local context. Now, I want to use a Context Provided from a seperate WCF Service. WebApiConfig.cs: public static void Register(HttpConfiguration config) { config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id...
vb.net,wcf,service-model
I have a service reference defined in my project (created in vs2013) and the bindings in the AppConfig are defined thus; <system.serviceModel> <bindings> <basicHttpBinding> <binding name="BasicHttpBinding_IERSAPIService" maxReceivedMessageSize="2147483647"/> </basicHttpBinding> </bindings> <client> <endpoint address="http://staging.saffire-online.co.uk/ERSAPIService/ERSAPIService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IERSAPIService"...
c#,.net,wcf
I am trying to user the following code private CModel[] getConfig(string CID, string Program) { ServiceManagement.ServiceClient obj; List<ServiceManagement.ManagementApiRepositoryCConfig> executedService; obj = new ServiceManagement.ServiceClient(); executedService = new List<SaServiceIdentityManagement.ManagementApiRepositoryCConfig>(); executedService = obj.getClubConfigSingle(CID, Program); return executedService.Select(x => new CModel { CID = CID, ProgramName = x.Name, ProgramURL = x.Value, }).ToArray(); } and using...
wcf,serialization,singleton,wcf-endpoint
I have a singleton wcf service (InstanceContextMode.Single) i.e MyService with multiple endpoints namely netmsmq and http. The call to netmsmq works fine but when I call it as : Binding bin = new BasicHttpBinding(); EndpointAddress end = new EndpointAddress("http://localhost/WcfService1/MyService.svc"); var obje = new ChannelFactory<IMyService>(bin, end); obje.Open(); var factory = obje.CreateChannel();...
wcf,kerberos,extraction,ticket
I have a WCF REST-enabled web service using Kerberos authentication. The OperationContext contains everything I would expect to receive from ADFS. However, how can I extract the actual Kerberos ticket? I need this ticket to generate a KerberosReceiverSecurityToken so that I can communicate with ADFS. Using WireShark I am able...
asp.net,web-services,wcf,rest
I am newbie with web services. I am trying to create a WCF Restful web service . I have implemented a simple service that accepts parameter name and when the client requests the service it prints hello with name. I have created a web client and added the reference of...
c#,.net,web-services,wcf
I have a simple web service created for learning purposes, it has only two methods implemented, one adds objects into a list and another returns the list. The problem is that the service does not the serialized list of objects. The return value is an empty array. I created a...
c#,asp.net,.net,wcf,contracts
Please help getting exception at using (ServiceHost host = new ServiceHost(typeof(HelloService.HelloService))) in the below code Exception : Only an absolute URI can be used as a base address WCF Host Application class Program { static void Main() { using (ServiceHost host = new ServiceHost(typeof(HelloService.HelloService))) { host.Open(); Console.WriteLine("Service Started"); Console.ReadLine(); }...
c#,asp.net,wcf,iis
I'm in the process of doing a server migration, and I've come across an issue when trying to host a WCF application and IIS at the same time using the same IP address and port. (this works perfectly on our other server) The new server is a Windows 2012 R2...
wcf,azure,azure-cloud-services
I have a cloud service hosted out in Azure. Due to the amount of data it uses, we have an hourly process that tells the service to cache data into memory. To update the cache, we use an exposed method called "RefreshData" that we invoke on a scheduled task on...
c#,web-services,wcf,wsdl,wcf-endpoint
I have a wcf service exposing multiple endpoints including a mex endpoint. I have enabled getting the metadata over http and https. My endpoints are like this... <endpoint name="ep1" address="ep1".... <endpoint name="ep2" address="ep2".... <endpoint name="mex" address="mex".... The service behaviour is set properly and I'm able to get the wsdl like...
c#,.net,json,wcf,rest
In my WCF (azure cloud) service, I want to support JSON. I am creating some test methods to see if everything works. I can get the GET calls to work, but when I'm doing a POST with a simple parameter I will always get: The remote server returned an error:...
.net,wcf,inheritance,datacontract
I was just getting an error message in Visual Studio 2013 stating "Failed to generate code for the service reference" when trying to update my service reference after adding a base class to a couple of my existing data contracts. For my service, I generate a client data contracts assembly...
c#,asp.net,web-services,wcf,iis
I have a WCF WebService that uses JSON format. I can run it in Visual Studio 2013 properly but when i publish it to IIS to run by my machine local ip and a specific port (192.168.1.6:8005) to access it from local network by this address : http://192.168.1.6:8005/Service1.svc/checkLogin?username=2&password=2&code=1 it is...
c#,xml,wcf,serialization,datacontractserializer
I have a WCF Service that I've installed that keeps throwing an unexpected namespace exception upon startup. The odd part is that it works just fine if I host it via IIS or in visual studio via the WCFSvcHost. I'm unable to find any namespace declaration in the designer when...
c#,.net,web-services,wcf,cdata
I have been asked to create a wcf client which accesses a custom java webservice, which I can't modify. I need to consume a webservice method like: <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <createDocument xmlns="http://www.dummyUrl.com/javaws"> <version> ... <metadata> <attribute name="ConfigName">ConfigurationTemplateForModuleX</attribute> <attribute...
c#,multithreading,entity-framework,wcf
I am making a small game in which users send in moves using a WCF and when all moves have been sent in the game simulates the next round. The data is stored in an MSSQL database and accessed through EntityFramework. The check for if all moves have been sent...
.net,web-services,wcf
I am new to WCF. while Searching google i heard the concept WCF to WCF call. As I know WCF is Web Service. So multiple clients may make use of it. But don't know why we would use a WCF to WCF call. ...
asp.net,asp.net-mvc,wcf,wcf-data-service
I'm creating a WCF service: [ServiceContract] public interface IContractManagementServices { ... } and i want the contract implementation to also implement another interface: public interface ILogin { bool GetLoginCredential(String LoginID, String Password); } For example: public class ContractManagementServices : IContractManagementServices, ILogin { ... } But I am getting an error....
wcf
I have a WCF service. It uses settings from configuration file. It contains some sub-services working via http, net.tcp etc. I'd like to create a method which will return all configured endpoints urls. It will be used to provide client app possibility to receive url strings. How I can do...
wcf
I found similar posts, but everything I've tried doesn't work. Can you please tell me what am I doing wrong? First is my client config and second my server config. First I thought that it is because I try to receive a large amount of data, but that wasn`t the...
c#,web-services,wcf,visual-studio-2013
I have a WCF Web Service and there is one method which returns sensor lists. When I want to consume this web service in a Console Application in Debug Mode, I got these 2 errors as; Could not copy "obj\Debug\ConsumeHelper.pdb" to "bin\Debug\ConsumeHelper.pdb". Exceeded retry count of 10. Failed. ConsumeHelper and...
wcf
On the service side I have an abstract base class like so: [DataContract] public abstract class EntityBase : IObjectState, IDatabaseMetaData { [NotMapped] [DataMember] public ObjectState ObjectState { get; set; } #region IDatabaseMetaData Members [DataMember] public DateTime InsertDatetime { get; set; } [DataMember] public int InsertSystemUserId { get; set; } [DataMember]...
database,wcf,azure,windows-phone-8
It seems like everything that I read is saying that for Windows Phone 8 Development, in order to create a database that connects to my WCF Service, I need to pay for it (Azure). Is that the truth? I want to create a database that my mobile app can access...
c#,web-services,wcf,datacontract
I have this code, a service using a DataContract. The host is build on a Web site. Please notice, the serivce is at PerSession mode: public interface IService { [OperationContract] int GetNewAge(Person person); } [DataContract] public class Person { private int age; [DataMember] public int Age { get { return...
wcf,odata
I'm Hosting an OData Service which exposes certain tables and properties from my DB. I can Request the Metadata for the DB using the [hosturl]?$metadata property. which return the table names and columns in XML format. I was wondering if there is a built in OData class to parse this,...
wcf,error-handling
I want to realize the schema, under which all the application-defined errors in my WCF service will be delivered to the clients, but the communication channel must remain in the "Open" state. At the current point the first task is realized by means of "IncludeExceptionDetailInFaults = true", but after the...
wcf,visual-studio-2013,microsoft-sync-framework,sql-server-2012-localdb
Does anyone have a walkthrough or video on how to use Sync Framework in VS 2013? I've seen nice examples using VS 2010 but some important items like local database cache object have been deprecated. For what I have read is that LocalDB will be replacing the Sql Compact (which...
jquery,ajax,wcf,rest,restful-url
I need to call a WCF service from my webpage. The method in service uses generic list as an argument,i need to know how to frame the ajax query? method: public List<FileListEntity> ListLogFiles(string status, List<FileListEntity> fileList) { .............//implementation.... return fileList; } 1st time when method is called the 'fileList' is...
java,android,json,wcf
I get the following date format JSON ExpiryDate": "/Date(-62135510400000+0000)/" How can i extract date from it , and make a new json in same format ???...
c#,asp.net,.net,wcf,iis
Ok, so.. I have a WCF service that throws a WebFaultException<Error>(Error, HttpStatusCode.BadRequest) where Error is my custom, serializable object. This all works as expected when I host the service on my local machine, and on GoDaddy's (as seen here: link removed). But when hosted with Arvixe all I receive is...
c#,asp.net-mvc,web-services,wcf,asp.net-mvc-4
I created a web service for file upload. When I call this webservice I can't find multipart-form data request. If I call this webservice without a file then it will working fine. My code is: Interface code: [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, Method = "POST", ResponseFormat = WebMessageFormat.Json, UriTemplate = "/GetStream")]...
wcf,azure,visual-studio-2013,publish
I have created a site in Azure and downloaded the publish settings file. When I click publish in VS I get the option to select a file with publish settings but only for the ASP.NET project. More or less like so. The problem is that I'm trying to publish a...
c#,asp.net,.net,wcf,serialization
I do not quite understand the reason why I need to specify an xml namespace for an object when I serialize the object to the wire. By default, the xml namespace for this object will be the CLR namespace of this object, this is enough for us to differentiate two...
wcf,iis-6
I have published a WCF service in IIS however when I run the code (browse the site from within Iis) I just get the following line displayed in the browser. <%@ ServiceHost Language="C#" Debug="true" Service=......." Any ideas why this is showing?...
c#,json,wcf,rest,wcf-endpoint
I have been digging through this for nearly two days, which suggests its going to be a very simple fix: I have a WCF REST service. GET works great for returning a JSON, however in POST I only receive Endpoint not found in Chrome, as well as in Fiddler. I...
c#,web-services,wcf
I'm trying to figure out how to run WCF Services as background Windows Services. So far, in all the examples I've seen, for either a REST-WCF Web Service Host or a Duplex WCF Service Host, they end up running a small console that starts up the interface/service and waits for...
wcf,rest,methods,overloading,fiddler
I have a method like this [WebInvoke(UriTemplate = "StrDetails", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json)] public List<StrSearchDetails> StrDetails(string str1) { List<StrSearchDetails> details = new List<StrSearchDetails> (); return details; } I am able to hit this method from Fiddler I have updated and replaced like this [WebInvoke(UriTemplate = "StrDetails", ResponseFormat =...
c#,jquery,asp.net,wcf
I am consuming the post wcf service in asp.net using jquery. we can able to call the service with user login and with out login .It is worked fine with login . the following image shows the post request checked in fiddler when i am calling same service after user...
c#,wcf,silverlight,silverlight-5.0,wcf-binding
I am working with WCF and Silverlight. i want to change EndpointAddress with code behind dynamically: EndpointAddress endpointAdress = new EndpointAddress(serviceUrl); var proxy = new ServerConnectionClient(context); proxy.Endpoint.Address = endpointAdress; Connection opened successful but after call a method from service occurred ActionNotSupportedException. Web.config: <configuration> <system.serviceModel> <bindings> <customBinding> <binding name="NetTcpBinding"> <binaryMessageEncoding />...
c#,.net,wcf,soap
I've a bit of code that inserts an X509 certificate into a soap header that seems to work OK. private Message SignMessage(Message request) { var doc = new XmlDocument(); var sb = new StringBuilder(); var a = request.CreateBufferedCopy(Int32.MaxValue); XmlWriter writer = XmlWriter.Create(sb); a.CreateMessage().WriteMessage(writer); writer.Close(); doc.LoadXml(sb.ToString()); //This is needed or added...
c#,wcf,rest,webget
I have a RESTful WCF web service with the following API: [WebGet(ResponseFormat = WebMessageFormat.Json)] MyResponseContract GetFileInfo(); When attempting to hit endpoint (using SOAPUI) I see the following error message: The server encountered an error processing the request. Please see the service help page for constructing valid requests to the service....
android,json,wcf,post,arraylist
i need to create JSON and set array list on a field. We have api of C#,.NET and they want me to send a JSON. They want these parameters to be used: "CustomerID": 1, "AddressID": 1, "Array": arraylist how can i do that ? ...
c#,wcf,unity,prism
I am using prism event aggregators to trigger and associate events (publish and subscribe). The service is only instantiated if there is a request for it. Either from a client (through a channel) or from another service (as a class object). Issue: If an event is not subscribed (registration and...