How to build Seo Urls without <wcf:url> tag?

What should I do If I don't want to use <wcf:url> tag . In JSP files you can use the aforementioned tag, but If I am accessing a URL from JavaScript or directly from browser, how would I then turn that URL in a SEO friendly one? All the exampl...
more »

2017-08-30 07:08 (1) Answers

C# convert datetime to WCF datetime format

I parse c# object that has DateTime property with JsonNet and then I post it to the server. But it returns that the date format is wrong. It request to be with format like this: "/Date(1327572000000-1000)/" How can I convert c# DateTime to this f...
more »

2017-07-05 20:07 (2) Answers

Inject dependency into custom message encoder

I need a custom message encoder in my WCF client. To do so I've created a class derived from BindingElementExtensionElement (just like described in this article). At the moment my encoder successfully invoked by WCF but do nothing. Now I would like ...
more »

2017-06-28 17:06 (0) Answers

HTTPS Contract Mismatch issue WCF

I have installed self https certificate in my IIS and changed my EchoService from http to https in my local machine. But I am getting below error after choosing transport sercurity. The message with Action '' cannot be processed at the receiver, du...
more »

2017-06-18 20:06 (0) Answers

Dynamically Change WCF Service URL in ASP.NET MVC

I have one solution in which I have 2 projects with: ASP.NET MVC Application to consume wcf services. 5 WCF services. I have added one web service reference in the project 1. Now, I need to use different services based on the user e.g. User Ty...
more »

2017-06-04 09:06 (2) Answers

Fetching UserName from Context in C# Asp .Net WCF

I currently maintain a legacy application and I'm trying hard to make it more testable as I release new features to it. The application is hosted on IIS and is a WCF rest service on .net 4.5 that exposes several different service operations. In my at...
more »

2017-05-28 21:05 (0) Answers

How to parse a soap message loaded from a file?

I need to parse a SOAP message I load from the disk, to the type of the generated proxy. WCF does it when it receives the message from the http server, so I should be able to do it from the disk. I consume a webservice with WCF, I generated the prox...
more »

2017-04-28 15:04 (2) Answers

Avoid serialize propertie/field that is not set?

I have generated a WCF proxy from a WSDL file and are having problems with a property/field. The propertie is of a complex type(class) and is decorated with the following attribute in the generated code. XmlElementAttribute(IsNullable=true) When...
more »

2017-03-13 09:03 (0) Answers

Suggestions on posting huge string to web service

Below is my array : var.child.Cars1 = { name:null,operation:0,selected : false} Now in above array,selected property represent check/uncheck status of checkbox and i am posting above array to web service(WCF) as string using json.stringify. Abov...
more »

2017-03-04 15:03 (6) Answers

Can't parse WCF Post request json body correctly

I have a post request being sent to my RESTful API in the following format Headers Host: localhost:9475 Expect: 100-continue Content-Type: application/json Content-Length: 59 Body {"query":"SOME STRING","variables":{"Foo":{"Data":"ABCD"}}} I'm ...
more »

2017-02-19 15:02 (1) Answers


I've been doing some research into which protocol / technology stack to use when creating a web service and I would like to get a clear answer on it which I haven't had so far. Basically my question is which is what's the difference between Web API ...
more »

2017-02-15 17:02 (1) Answers

Best practice: Connect WPF to remote SQL database

I know that there are a lot of questions regarding this topic, however after four days of reading and googling, I am kind of stuck and need somebody to clarify some things for me please. My situation: I have developed a WPF application in C#. This ...
more »

2017-02-07 13:02 (1) Answers

Get selected value from SelectListItem

I've got a problem with getting selected value from SelectListItem. Here is my model: public class GiveCourseNameModel { public string SelectedCourse { get; set; } public float CourseValue { get; set; } public string CourseName { get; s...
more »

2017-01-15 03:01 (1) Answers