Rapture in Everything

Posts tagged "dotnet"

Hosting a .NET Core 2 app on Ubuntu

A few months ago I'd started a fun side-project of moving my personal web apps from various Windows-based services to a single Ubuntu VM because of the release of Ghost 1.0 [https://zblesk.net/blog/ghost-learning-nginx-on-ubuntu/]. Later, I'd managed to replace my Bonobo Git Server with Gitea [https://zblesk.net/blog/running-a-git-repo-site-on-nginx-on-ubuntu/]. The last piece was to move a custom app - which was written in .NET and needed to be re-written to run on Ubuntu. (And it took forever...

MSMQ reader component for SSIS

Last year I had to use SQL Server Intergration Services package to read some data from a MSMQ queue and pump them into a database. It sounded easy enough, but I quickly ran into difficulties. While SSIS does provide some MSMQ reading/writing components, they seem to be primarily meant to facilitate communication between two SSIS packages – I hadn’t been able to make them just read the queue and dump the textual data. So I set out to implement my own component. It was a major pain, so I’m open s...

How to create a WCF web service from a WSDL

This wasn’t the first time I was tasked with creating a mock web service based on a WSDL file. I’ve tried multiple approaches, but most of them weren’t exactly what I needed. So after digging around a bit, I’ve found a way that suits me and does just that. I do not claim to be a WCF guru and there may be better ways to do this. If so, please let me know. But if you’re a developer in a hurry, you probably don’t care and have skipped these two paragraphs, anyway. :) Let’s...

Elemental words

> “When I heard oxygen and magnesium hooked up, I was like OMg.” This joke more or less started it. We started exchanging similar ones with a friend and soon after I found myself wondering what fraction of the vocabulary is it possible to write using only the symbols of chemical elements. The thought nagged me until I gave in and started coding. Basically I was trying to convert as many words as possible into an alphabet consisting of these “letters”: So for example stab becomes STaB. Ther...

Debugging WCF service traffic with Fiddler

At work, I had to look into request/response compression in WCF with .NET 3.5. In order to be sure whether what I’m doing had had the desired effect, I had to force Fiddler to capture the client-server SOAP traffic. So now I’ll try to summarize what I learned. The process consists of four steps: 1. Hosting the web service 2. Setting up Fiddler reverse proxy 3. Modifying the WS’ WSDL file 4. Setting up the client 5. Calling the service via Fiddler’s proxy First, you need to host your serv...