How to use C# Web Service Client with BasicAuth (for SAP)

SAP Webservice with .NET Webservice Client and BasicAuthNo matter how frumpy SAP may look most of the time, nevertheless you can build such modern things like web services inside the SAP system. Even the WSDL (Web Service Description File) file can be generated in SAP. I read about this feature (WSDL generation) just at the right time, because recent days I should write a web service in SAP which should be triggered by a C# application.
In .NET web services can easily integrated via their WSDL file by using the WebReference feature of Visual Studio. Therefore Visual Studio generates a so-called proxy class from the given WSDL file which can be used to call all functions of the webservice without thinking too much.
As far as in theory. In practice I had to choose the security mode for the web service in SAP. […]

How to use alias for using-directives and namespaces in C#

Anyone who has already written one or the other program in Visual Studio with C# probably knows the following problem. Sometimes you use different libraries (Dlls) from different developers/vendors. Partly also libraries that fulfill similar purposes. This might go well, but it doesn’t have to.
Often you will get confronted with an error message like this: “‘XYZ’ is an ambiguous reference between ‘LibraryA.XYZ’ and ‘LibraryB.XYZ’”
What next? In the following I’ll explain how to solve this kind of error by taking the example of the AForge library. For instance we profess that we included the following using-directives into our program.
using System.Drawing;
using AForge.Imaging;
So now, if we use the class “Image” in our program, we will see the following error message, which result from the fact that there are two “Image” classes referenced. One in the System.Drawing namespace as also one in the AForge.Drawing namespace. Visual Studio (and later on it’s compiler) doesn’t know which Image class to […]

How to set default editor in WinSCP

When it comes to secure file transfer, one or the other of you should probably have heard of the SFTP-client named WinSCP. WinSCP enables the secure transfer of data between two computers based on either the SSH protocol or the SFTP protocol and provides, as also many of the normal FTP-clients do, the functionality of editing files directly on the server (respectively edit them direct out of the WinSCP interface without the premise to manually download the files before editing).
Unfortunately WinSCP will open all text files in his own simple style editor. But if you want to edit script files like PHP scripts, which is what I want to do most times, you will miss the comfort of a good text editor like Notepad++ or Sublime Text. But don’t worry – there’s a solution also for this problem, so that you don’t have to give up your beloved features like syntax highlighting […]

Win8 BTD – [B]oot[T]o[D]esktop

Win8 BTD LogoI already wrote about how you can boot directly into the classic desktop in Windows 8. However those, who do not like to get their hands dirty while working with the Windows registry or just want quickly switch back and forth, should pay me their close attention for a moment. I developed a tiny tool which is called Win8 BTD where BTD stands for Boot To Desktop.
Win8 BTD is a small tool written by me, which does not more or less than to set the appropriate settings in the registry, so that Windows 8 launches directly into the classic desktop. Of course, any changes made can also be undone with a single click, if you would rather want to start again directly into the new tile view.
Download: Win8 BTD – Version 1.0.0.0
Screenshots

How to boot directly to desktop in Windows 8

Meanwhile everybody should have seen or atleast heard of the new user interface which comes with Windows 8. One of the big changes is that your computer will directly boot into the new tile-(start-)menu. I personally do not mind about that, but I’ve heard of many people who would like to boot directly into the (classic) desktop view without beeing confronted with the metro/tile-view at first. Nothing easier than that.
To boot directly into the classic desktop, only one value needs to be adjusted in the registry. What it is and how it needs to be changed, I want to show you briefly below.
Step 1:
windows_8_direkt_in_den_desktop_booten_1
At first you have to open the registry. (Therefore either search for “regedit” in the apps menu or start the “Run as”-dialog by pressing Win+R and then enter “regedit”.)
Step 2:
windows_8_direkt_in_den_desktop_booten_2