News Stay informed about the latest enterprise technology news and product updates.

Part II: Rushing to the .NET

Just returning from a MS Developer Days event, it looks like a lot of MS Shops are going to be switching to Visual Studio.NET. In the audience of a more than a thousand developers, most have already begun playing around with the new languages and features of the .NET Framework. Surprisingly, most had not yet tried to develop a Web Service.

Continued from Page One

 

Our .NET Web Service
Fortunately, we recently had the opportunity to develop a .NET web service. We support an online e-tailer and a new partner asked that they be able to submit sales orders from their site to our clients system in an automated way. At first our client and partner's expectations were fairly low (we can send you a file, post a message, maybe post an XML message). This partner is a large content providing company.

Giving it about 10 minutes of thought, our development team came to conclusion that it would be faster and easier to develop a Web Service using Visual Studio.NET to let the Partner interact with the system. A big question was "Will the Partner agree?". It took about 5 minutes to get a response from the Partner to say "Sure, let's do it". The Partner's developers were actually surprised that another firm would offer developing a Web Service for them.

Our payment web service allows the client to create and populate Order and Customer objects, then pass these objects as parameters if a Web Method to our server via SOAP. Most of the properties of these objects are String and Double data types and the order line items are in a String Array.

Reusing some code and logic from the website and creating about five VB.NET classes, it took about a week to put a prototype together and within another two weeks we were ready for testing. Orders are passed into our order processing web service from the partner. Credit card information is validated and authorized if needed, and a status object or nice error message is being passed back. We did have some problems with an array we were passing but switching from the old-style VB 'UBound' function to the new OOP style 'Length' property solved most of the problem regarding this issue. In the process I rebuilt our test client using C#. A rather simple task, but it was the first time I had to use this new language and the biggest problem was finding information and sample code for a Web Service Client in C# (which we never found but after a couple of hours had everything working).

Since the code is object oriented and compiled, we have run into a few very minor bugs but other than that, things have gone very smooth. We also hope to offer order status, shipping and possibly an order tracking web methods as well to provide the partner with greater functionality.

Eventually, the e-tailers own web site and accounting programs can use this Web Service and all order processing can be done in one place or at least with one code base. For stability and performance issues the .NET services are running on another server not to tie up the regular web servers with additional processes. Security, authentication to be precise, is still an issue but with strong application security and SSL, I feel our application is very secure and scalable, offering partners a means of submitting orders without worrying about the 3,000 anonymous visitors browsing the web site.

Go to Page One 

Dig Deeper on Topics Archive

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchSoftwareQuality

SearchAWS

SearchCloudComputing

TheServerSide.com

Close