How to get service reference to generate correctly with message contracts based on 3rd party WSDL, or force no message contracts in WF Service project

I am far from an authority on these issues, and while this response below might not be an exact fit to your problem, my recent experience of making a proxyless connection to a service might offer some insight to you or the next person with a similar issue. I would start by seeing if you … Read more

WSDL on SQL Server gives HTTP status 505 Version Not Supported

Today, years after I posted this question, we finally found the answer to this question. It was not a Squid proxy server as we had come to believe. We continued experiencing issues like this with various web services/sites. The last straw was when we finally needed to deploy an SVN server that was used by … Read more

REST Best Practices: Should you return an entity on POST and PUT calls?

It might be beneficial to study the API’s of other folks to see how they do it. Most of the useful public API’s are published somewhere on the web. For example, the Overmind project publishes their REST API here. In general, their approach is to return a JSON Dictionary containing the new or modified entity … Read more

Visual Studio does not generate app.config content when “add service reference”

When adding the service reference try clicking on the ‘Advanced…’ button and then uncheck the ‘Reuse types in referenced assemblies’ checkbox. I found this out when I had created a simple project to test a third party service which all worked fine. Attempting to add the same reference to the main project resulted in the … Read more

“Smart” way of parsing and using website data? [closed]

I’ve done some of this recently, and here are my experiences. There are three basic approaches: Regular Expressions. Most flexible, easiest to use with loosely-structured info and changing formats. Harder to do structural/tag analysis, but easier to do text matching. Built in validation of data formatting. Harder to maintain than others, because you have to … Read more

Jquery Ajax Call, doesn’t call Success or Error [duplicate]

change your code to: function ChangePurpose(Vid, PurId) { var Success = false; $.ajax({ type: “POST”, url: “CHService.asmx/SavePurpose”, dataType: “text”, async: false, data: JSON.stringify({ Vid: Vid, PurpId: PurId }), contentType: “application/json; charset=utf-8”, success: function (data) { Success = true; }, error: function (textStatus, errorThrown) { Success = false; } }); //done after here return Success; } … Read more

Getting started with REST [closed]

ADO.Net Data Servcies makes it really easy to build and consume RESTful web services in the .Net world but nevertheless understanding the concepts is important. Compared to WCF (which added REST support later), ADO.Net Data Services was built primarily for REST. Guidelines for Building RESTful Web Services has all the info on the resources you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)