Search

Tutorials, tips&tricks, snippets..

#KISS: KEEP IT SIMPLE, STUPID!

Category

WCF

How to create a WCF from WSDL (and prevent errors)

Sometimes you need to create a WCF service starting from a WSDL giving to you the specifications. It is a good practice and quite simple to do.

Continue reading “How to create a WCF from WSDL (and prevent errors)”

Advertisements

Parsing a JSON string in C# without creating a dedicated class

JSON is a very useful format, able to stringify all your data. It is based on the key:value pattern and it a JSON value can contains a JSON structure itself.

How can we parse a JSON string and use it like an object in C#, without having a destination class? With the following code, we are able to navigate a JSON string without defining a class for it.

Continue reading “Parsing a JSON string in C# without creating a dedicated class”

Web.config file for WCF service on IIS

Create your own WCF is quite easy. It’s also easy run it within Visual Studio and debug it, but when you need to put it online, how can you proceed? After you install it on IIS, you must configure it. Here a web.config file, ready to be used.

Continue reading “Web.config file for WCF service on IIS”

Fix HTTP Error 500.19 code 0x80070021

I found this error installing for the first time in a certain server the IIS tools, specially the WCF feature.

Continue reading “Fix HTTP Error 500.19 code 0x80070021”

Create a WCF Service for ASMX Client

Sometimes, you need to bind some new tech with old stuff. In this case, we create a WCF service called by an ASMX client (true story, bro).

Continue reading “Create a WCF Service for ASMX Client”

BadImageFormatException using IISExpress

I had written this post about the BadImageFormatException, when I had found again this error. Why? The solution in my linked post is simply and clear, it works! What’s difference? That was my first time I found this error while developing a WCF.. but does it matter? Or the error is somewhere else? After some struggling hours, here is my solution to this problem when working with WCF.

Continue reading “BadImageFormatException using IISExpress”

How to solve LoadFromRemoteSources error

The issue was something like there are some references into the application from the network shared folder. When compiling the application there was a weird error saying (or similar):

Continue reading “How to solve LoadFromRemoteSources error”

Sending XML to a WCF RESTful service

Using WCF RESTful, you can find out a problem that will make you loss a lot of time. The syntax of the XML, the structure and.. the order of your fields!!! How to solve it?

Continue reading “Sending XML to a WCF RESTful service”

Triple DES with PCSK7 and ECB between PHP and .NET

The past while at work I’ve been working through some annoyingly overcomplicated encryption issues. The problem is not that Triple DES is all that complicated or annoying, it’s just that when you have 2 different technologies (one doing the encrypting and one doing the decrypting) at work; it can be frustrating to get anything accomplished.

Continue reading “Triple DES with PCSK7 and ECB between PHP and .NET”

Powered by WordPress.com.

Up ↑