|
Consuming a RESTful Web Service Using HTTP POST from .NET |
|
|
By Joe Rattz on
8/21/2009 10:02:58 AM
|
|
|
Consuming a RESTful Web Service Using HTTP POST from .NET
I recently had the need to consume a RESTful web service with .NET. What made this less typical than most articles I found on the internet is that instead of retrieving data with the web service via an HTTP GET, I needed to send data with the web service via an HTTP POST. I didn't see anyone doing that.
So this blog post is here for three purposes. First, it is here to help others needing to call any RESTful web service from .NET using an HTTP POST. Second, it is here so that next time I need to do it, I can find it quickly. Third, anyone else needing to consume the specific Taxcient web service that I was consuming may find this a helpful starting point.
The web service I needed to call is hosted by a company named Taxcient. Their web service allows me to pass customer data to it using an HTTP POST. Here is the b ...
|
 |
|
|
More...
|
|
|
ASP.NET MVC |
|
|
By Joe Rattz on
5/13/2009 2:39:29 PM
|
|
|
ASP.NET MVC
This is just a test.
|
 |
|
|
|
|
|
IE6 About Box Error: 53 - Not enough storage is available to complete this operation |
|
|
By Joe Rattz on
2/3/2009 4:33:42 PM
|
|
|
Problems Caused by User Agent String Too Long
I recently had something happen to my machine that has caused me all sorts of havoc. There are many symptoms of the same problem. This all seems to have begun after a Windows security update (KB958687) was installed on my machine. Interestingly, even after uninstalling that update, I still have the problem. I haven't fully researched why that update caused this to happen, so maybe the update isn't exactly the culprit, but at this time, I believe it is.
Part of what made this so difficult to resolve is that there are so many symptoms of the problem. With so many symptoms, there are many vectors to research that are so vague, it is difficult to isolate the actual problem.
I will begin with the symptoms I had in the order that may make it most easy to identify.
1. The About box in Internet Explorer (IE, IE6, ...
|
 |
|
|
More...
|
|
|
ASP.NET User Control Positioning With CSS |
|
|
By Joe Rattz on
11/4/2008 11:41:42 AM
|
|
|
|
- Solving the Problem No One Seems to Care About
I subtitled this post with the tongue-in-cheek phrase "Solving the Problem No One Seems to Care About" because I recently discovered what I would consider to be a flaw in the design of ASP.NET user controls, but I seem to be the only one who cares.
The flaw is that there is no HTML emitted for an ASP.NET user control. Don't be mislead by my previous statement though. Certainly the contents of the user control are emitted, but if your user control contains nothing, there will be no HTML emitted by it. Here is some example ASP.NET markup for a page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %& ...
|
 |
|
|
More...
|
|
|
|
Calling DB2 Stored Procedures on the AS/400 from .NET |
|
|
By Joe Rattz on
2/25/2008 4:20:47 PM
|
|
|
|
Since I have several posts on interfacing between .NET and the AS/400, and because this type of information is scarce on the internet, I often receive emails from people asking how to do certain things. As I believe I have stated in every AS/400 related article I have posted, I actually know very little about the AS/400. I just try to share the little bits that I do know. Let this paragraph serve as my ongoing disclaimer concerning my AS/400 ignorance.
Recently, I received an email from James Wright asking about calling Stored Procedures on the AS/400. He was attempting to use the cwbx.dll to call them, but was having trouble. I informed him that I am not sure cwbx.dll can do that. I am not saying that it cannot, just that I don't know that it can since I have never done it. I recommended that instead he use either the ADO.NET DB2 native provider or one of the DB2 OleDb providers and try to call the DB2 stored p ...
|
 |
|
|
More...
|
|
|
Documentation for CWBX.DLL - iSeries ActiveX Automation Objects |
|
|
By Joe Rattz on
10/11/2007 3:49:55 PM
|
|
|
|
In googling for AS/400 and cwbx.dll information, I see what appears to be a pattern of developers unable to find the documentation for the iSeries ActiveX Automation Objects, the API implemented in cwbx.dll.
If you have installed iSeries Access For Windows, it should be on your machine (I think). In your IBM iSeries Access for Windows menu, select the Programmer's ToolKit/Programmer's ToolKit menu. When the help system opens, click on the Program Call node. Click on the ActiveX link for documentation for cwbx.dll.
There are also links in the Program Call node for C/C++ APIs and Java. I expect that these are equivalent APIs for those languages.
|
 |
|
|
|
|
|
You Know You Are a CSS Geek ... |
|
|
By Joe Rattz on
6/11/2007 2:26:32 PM
|
|
|
|
...when you create a site dedicated to a specific CSS property and value!
I was doing some reading about CSS and HTML layout when I stumbled on a CSS article that was discussing the float property. Specifically, it was dealing with float:left. Since I didn't know what this meant, I decided to google for it. Googling for "float:left", the third entry on the page caught my attention. It had a title of float:left at floatleft.com. I thought this must be the holy grail of float:left knowledge, so I click the link.
http://www.floatleft.com
Why would someone go to the trouble to register the domain and create the page that is there for absolutely nothing? Worse than that, the best I can tell it isn't even using float:left anywhere. Come on! If you are going to have a site for float:left, us ...
|
 |
|
|
More...
|
|
|
Calling AS/400 (AS400) RPG Programs/APIs From .NET |
|
|
By Joe Rattz on
1/19/2007 7:00:00 PM
|
|
|
|
Since posting my article titled "Calling AS/400 (AS400) RPG Programs From ASP.NET", I have gotten a good bit of feedback and questions. This is further evidence of how difficult it is to find good information about interfacing with the AS/400. Due to some of the questions and comments posted about that article, I thought I would do a little more research, and post a follow-up article.
There is a downloadable sample project at the end of this article.
Be sure to check out part 1 in this series by clicking here.
The Disclaimer
Again, I provide the disclaimer that I am very ignorant about the AS/400. I come from a C ...
|
 |
|
|
More...
|
|
|
How To Programmatically Cause a Breakpoint in C# and JavaScript |
|
|
By Joe Rattz on
1/9/2007 8:45:18 PM
|
|
|
|
Now would probably be a good time to point out that when I first started creating articles for NetSplore, my intent was not only to share information with others, but to share it with myself...in the future! I can't tell you how many times I have had to go scrambling trying to figure out what code did something I needed to do again. So, I thought that if there was something I was having trouble remembering how to accomplish, others may have the same problem, and I should create an article.
I explain all that as a disclaimer as to why this article seems so trivial. Frankly, I can never seem to remember how to programmtically trigger a breakpoint in my code. This article tells how.
C#
Add the following code to the location you want to break, and it's just that simple:
#if DEBUG &n ...
|
 |
|
|
More...
|
|