

PReader->Load((IUnknown*)pConnector->OutputStream, "") PReader.CreateInstance(_uuidof(SoapReader)) PSerializer->Init((IUnknown*)pConnector->InputStream) Hr = pSerializer.CreateInstance(_uuidof(SoapSerializer)) _variant_t(CString(BASE_SOAP_ACTION_URI) + pMethodName) ProductInfo pi = srvc.AuthorSearchRequest(req) įor (int i = 0 i Property = _variant_t(EndPointURL) ObjProxy.Credentials = new NetworkCredential (user, password, WebProxy objProxy = new WebProxy (proxyAddr,proxyPort)

Private void button1_Click(object sender, System.EventArgs e)ĪmazonSearchService srvc = new AmazonSearchService() Now, it’s time to take a look at the actual search code. Finally, we have a form to enter the author name and display search results Until now, all we’ve done is absolutely similar to desktop application development. A WSDL file describing its API can be found here. So, now, let’s add a Web Reference to our project to get a wrapper class for the Web Service. The last thing is to apply fora Developer’s token, and you’re completely set up. Well, to be ready to start using Amazon Web Services, you should download Amazon Web Service Developer’s Kit from. Our sample is simple, so all such details will be left out of this article’s scope. The last case may become relevant when you need to achieve high performance benchmarks for example, when developing an application that performs barcode scanning and then gets item details from a remote server. If you’ve used C++, you may either consider using the SOAP toolkit available in WinCE 4.x or, as the most complicated case, write a similar wrapper for SOAP classes for previous versions of Windows CE to assemble SOAP messages manually. That’s the simpliest way to develop Web Services-related applications. The only option actually relevant for Windows CE is to create a C# project. So, let’s create a new “Smart Device Application” using Visual Studio.NET.

Creation of a C# Sample ProjectĪs a test sample, we will create a simple client application that will use Amazon’s Web Services to query information about available books. What we’ll be focused on is what does it all mean in the case of Windows CE. Also, we won’t touch Web Services or Visual Studio.NET basics. I have no intention to discuss the theory or concept of this technology here you may freely find a lot of articles on the Web. Thus, recently mobile developers are also able to use most of Web Services’ cake. A couple of months ago, Microsoft finally re-released SP2 for CE.NET, promising significant performance improvements.

Windows CE-based devices, as usual, were several steps behind desktop systems. Web Services today have became a common technique.
