YOUR FEEDBACK
udaykiran wrote: Really Excellent Information. But i have some doubts. initially i have some aver...

SYS-CON.TV
TOP MICROSOFT .NET LINKS


Publishing .NET Web Services Using SQL Anywhere 10.0.1
Take a database and create a mini version of an "Amazon-like" item lookup

Creating a Web Services Client in Visual Studio
To test our Web Service, we're going to write a simple client in Visual Studio. To get things started, create a new C# Windows application. This can be done by going to File->New->Project and selecting Windows Application. In the Solution Explorer for this project (usually shown on the right), right-click on references and you'll have the option of adding a new Web Reference. Select this and you'll be presented with the screen shown in Figure 18. Here you must specify the location of the WSDL. Building on what we've already done, the address you want to type in is http://localhost:8080/ItemLookupWSDL. Type this in and click on the Go button. Visual Studio should find your OurAmazonItemLookup method we defined earlier in this exercise. Click on the Add Reference button to add it to your project.

Now that we have a reference to our service, we'll need to write some code to go about using it. But first we'll have to set up some GUI elements. In the toolbox (usually shown on the left) drag four label controls onto your form. Name them labelItemID, labelTitle, labelAuthor, and labelManufacter. Next add a text box and name it textBoxItemID. Finally add a button. Your finished layout should look something like Figure 19.

Now that we have our GUI designed, we can write some code to make our call to the OurAmazonIItemLookup method. Copy the code in Listing 3 to the clicked event of your form's button. If you study this code, you'll notice that we're getting a reference to our Web Service and then making a call by passing it the value the user typed in the text box. Finally, we use the result set to assign the text property of the respective label controls. Note: error checking has been omitted for clarity.

The Finished Product
To use our Web Services client simply type in a UPC corresponding to an item that you've already entered in your SQL Anywhere database, click the OK button and through the magic of SQL Anywhere Web Services your title information is returned to the client. The finished product is shown in Figure 20.

Conclusion
Building your own "Amazon-like" ItemLookup Web Services is a piece of cake when you use SQL Anywhere's Sybase Central wizard to create them. Moreover, consuming them in Visual Studio is just as easy. Take a few minutes to familiarize yourself with these powerful development tools and you too will be publishing and consuming Web Services in no time!

References

-  SQL Anywhere Documentation www.ianywhere.com/developer/product_manuals/sqlanywhere.
-  SQL Anywhere Developer Edition http://eshop.sybase.com/eshop/try_buy.
-  Visual C# and Visual Studio IDE http://msdn2.microsoft.com/en-us/vcsharp/aa336807.aspx.
-  Inside SOAP www.xml.com/pub/a/2000/02/09/feature/index.html.

About Deanne M. Chance
Ms. Chance graduated in 1996 with a degree in computer science from the University of Illinois. She has been a frequent contributor to the PowerBuilder Developer's Journal and gave a key presentation at Sybase TechWave 2005 entitled "A Real-Time Physical Inventory Solution Using PocketBuilder ASA and a WiFi Connection." She has held several engineering positions, starting a career at Motorola where she focused on mobile I.P. by doing real-time embedded programming for the base radio controller group as part of the iDEN/Nextel project.

YOUR FEEDBACK
mukesh wrote: Hay Friends !! Are you looking for beautiful, sweet, innocent cat pictures ?? I have found a very good site for cat pictures..!! here it is... http://sweetcatpictures.blogspot.com
AJAX News Desk wrote: There's a couple of things that I like about his sample, and a couple of things that worry me. First, I like the idea that there's an Ajax controller. I hope in the final bits it's simply called Controller and they don't make you distinguish between an Ajax controller and a regular controller - you should be able to pick and choose the functionality you want, and, well, quite frankly, I'm just sick and tired of seeing the word Ajax embedded in code. The Ajax controller should give you, as he demonstrates, the ability to render small bits of HTML. What I dislike about the Ajax nomenclature is that this functionality is useful even outside the realm of Ajax rendering and I think it should be included in the default controller.
MICROSOFT .NET LATEST STORIES
VMware’s ESX hypervisor has become the first third-party hypervisor accredited under Microsoft’s months-old Server Virtualization Validation Program (SVVP). The validation applies to VMware ESX 3.5 update 2 (ESX 3.5u2) and means VMware customers who run Windows Server and Microsoft...
We are seeing more being written about Cloud computing and cloud platforms today, and there is strong validation that the future of computing will include significant innovation and value in web/cloud platforms. Microsoft’s Cloud strategy is materializing, and as part of our overall ...
Nth Penguin has released WW.DataServices to the public and is available for immediate download at: www.nthpenguin.com. WW.DataServices, the first system of the WebWidgetry engine, removes all the work from accessing your data. You simply point it to a database location, push a button,...
Gizmox announced the release of a fully functional beta version of its Visual WebGui (VWG) with support for Microsoft Silverlight. For the first time, VWG enables Silverlight for enterprise applications by providing a RAD like Windows Forms development experience with drag & drop desig...
Google will come out from behind the Firefox browser that it’s been pumping money into – and profiting royally from – and take direct aim at Microsoft with a browser of its very own. The widgetry is called Google Chrome and Google Chrome, like all of Google’s non-search widgetr...
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON FEATURED WHITEPAPERS

ADS BY GOOGLE
BREAKING NEWS FROM THE WIRES
Neverfail, a leading global software company providing affordable continuous availability and disast...