Web Page Design and Hosting

December 30, 2006

cache:www.microsoft.comdaterange: Using this option, your search can be

Filed under: professional development with web apis — webmaster @ 4:28 pm

cache:www.microsoft.comdaterange: Using this option, your search can be limited to a particular date or date range during which a page Note that this search is not based on when a page was created, but when it was indexed byGoogle. Unfortunately, daterange:works with Julian dates instead of the calendar dates, so you mustuse a Julian date conversion tool to calculate the Julian date. SAT daterange:2453253-2453283filetype: This option allows you to limit your search results to files of a particular type. Suppose, for example, you want to limit your search results of learn Spanishto only those files that are in PDF format. You the following search: learn Spanish filetype:pdfUpon executing the previous search on www.google.com, you might see results similar to those shownin Figure 2-2. Figure 2-217Using

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Adult Web Hosting services


cache:www.microsoft.comdaterange: Using this option, your search can be

Filed under: professional development with web apis — webmaster @ 4:28 pm

Notice that the primary search results now include only links to PDF documents that match the searchcriteria. inanchor: This option allows you to search for items that appear in the descriptive text of a link. The descriptivetext of a link is what gets displayed to the user, and it is often different from the underlying URLaddressto which the link points. inanchor: traffic info: This option allows you to retrieve links to more information about a particular URL. For example, youcan obtain links to the list of pages that link to or are related to that URLas well as a link to the URL scache. After it executes the info:command, Google returns a page that allows you to select from multi- ple link categories to retrieve this additional information. info:www.microsoft.comintext: This option enables you to limit your search to body text only. In other words, the URLs, titles, and linksare ignored. This option is great for running searches that involve words that are common in titles orURLs. intext: asp intitle: This option allows you to limit your search to Web page titles. Allintitle:is a variation that findsWeb pages where all the words specified make up the title of the Web page. intitle: George Bush allintitle: election day vote inurl: This option allows you to limit your search to the URLs of Web pages. AllinURL:is a variation thatfinds all the words listed in the URL. inURL:aboutusallinURL:contact us18Chapter

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Adult Web Hosting services

Using the Google APIAlot of attention has surrounded

Filed under: professional development with web apis — webmaster @ 8:44 am

Figure 2-1In the example of Figure 2-1, the search returns pages that have content related to the search phraselearn Spanish. Google s default Boolean type of search is AND, which means that it looks for pagesthat contain both words. If you want to specify that either word is acceptable, you type the following: learn OR Spanish. In addition to traditional search results based on Google s page-ranking index, Google also displayslinks to related sponsor pages. Because the Google search engine is free to Internet users, Google makesmoney by selling advertising. If you are like most people, you already know how to use Google to do simple searches such as the oneshown in Figure 2-1. However, what you may not know is that Google also allows a user to performmore advanced searching by limiting the search results in various ways. Google has various searchoptions that can be used to further limit the searching and it also offers features such as language trans- lation, spell checking, and more. Let s look briefly at some of these advanced features that you can include as part of your Google searchquery. cache: Using this option, you can retrieve a copy of a specified Web page from the Google cache if, for example, the Web page is no longer available at the original location or it has changed and you want to see an ear- lier version. Google returns a copy of the page from the last time the page was indexed by Google. 16Chapter

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Clan Web Hosting services

Using the Google APIAlot of attention has surrounded

Filed under: professional development with web apis — webmaster @ 8:44 am

Using the Google APIAlot of attention has surrounded Google and the services it provides, especially with media atten- tion focused on Google as a new publicly held company. Google has made several of its popularfeatures available in an API to developers to use in their own applications. This chapter covers theGoogle API in great detail and is the first of several API-specific chapters in which I explore a par- ticular API in detail. The following topics will be covered: .Introduction to Google as a search engine .How to obtain license keys for the Google API .The syntax of Google API queries .How to call the Google API from Visual Studio .NET .How to call the Google API from the .NET Framework .Five detailed examples of how to use the Google API .Additional ideas for how you might use the Google API .Third-party uses of the Google APIGoogle 101Before jumping into the Google API, take a moment to review some of the features that Googleoffers in general. You are no doubt already aware that Google is a search engine that enables youto retrieve a list of Web sites that match search criteria you enter. For example, if you navigate towww.google.comand type some key words, you can get a list of potential Web pages of interest. An example of a search result in Google is shown in Figure 2-1.05_

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Clan Web Hosting services


First, you declared various Amazon Web service objects

Filed under: professional development with web apis — webmaster @ 2:18 am

This is just one example of the many ways you can use the Amazon Web service. For more informationon the Amazon Web API, consult Chapter 4, which is dedicated exclusively to the Amazon Web API. SummaryIn this chapter, you explored the world of Web APIs and Web services. You learned about the variousways to call a Web service, such as using HTTP-GET, HTTP-POST, and SOAP. Web services are growing in popularity every day. Now that major players such as Google, Amazon, eBay, and others have released Web APIs, Web services will pick up even more steam. By using theWebservice APIs of these leading vendors, you can enhance your own applications tremendously. Theremaining chapters are dedicated to illustrating several different Web service APIs in detail and to pro- viding you with some real-world examples of using those APIs alone and in combination from mobiledevices, Microsoft Office, and in various other ways. Let s turn to the next chapter, which focuses on the Google API. 14Chapter

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Clan Web Hosting services

First, you declared various Amazon Web service objects

Filed under: professional development with web apis — webmaster @ 2:18 am

First, you declared various Amazon Web service objects that are required in order to execute an itemsearch. Dim AmazonProductData As New TestAmazonWebService.Amazon. AWSECommerceServiceDim AmazonSearch As New TestAmazonWebService.Amazon.ItemSearchDim AmazonResponse As New TestAmazonWebService.Amazon.ItemSearchResponseDim AmazonRequest(1) As TestAmazonWebService.Amazon.ItemSearchRequestYou then supplied an Amazon Subscription ID. Developer/Subscription CodeAmazonSearch.SubscriptionId = YOUR ID GOES HERE Because only one request is being made to the Web service, as opposed to a batch with multiple requests, element 0 of the array is used and assigned the search parameter values. We are only making one request, not batching multiple requests Thus element 0 of the array is all we need to assign and work withAmazonRequest(0) = New TestAmazonWebService.Amazon.ItemSearchRequestAmazonRequest(0).SearchIndex = Books AmazonRequest(0).Keywords = Denise Gosnell You then assign the search object to the request object so that the search object will have the requiredparameters. assign the search object to the request object with the assignedparametersAmazonSearch.Request = AmazonRequestNext, you called the ItemSearchmethod and assigned the results to the AmazonResponsevariable. run the search and populate the responseAmazonResponse = AmazonProductData.ItemSearch(AmazonSearch) Finally, you looped through the items in the response to build an output string for display to the user. Dim item As New TestAmazonWebService.Amazon.ItemDim strOutput As StringstrOutput = Search results for keyword(s): & AmazonRequest(0).Keywords in & AmazonRequest(0).SearchIndex & : & vbCrLf & vbCrLf loop through the resultsFor Each item In AmazonResponse.Items(0).ItemstrOutput = strOutput & item.ItemAttributes.Title & vbCrLf & vbCrLfNext display the results in a message boxMsgBox(strOutput) End Sub13Anatomy

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Clan Web Hosting services

December 29, 2006

Figure 1-510.Add the following code to the Form1_Loadevent

Filed under: professional development with web apis — webmaster @ 9:15 pm

loop through the resultsFor Each item In AmazonResponse.Items(0).ItemstrOutput = strOutput & item.ItemAttributes.Title & vbCrLf & vbCrLfNext display the results in a message boxMsgBox(strOutput) End SubNote that you must specify your own Associate ID for the Associate ID value in the previous code orthe example will not run for you. 11.Run the program by pressing F5 or by selecting Debug.Start. You should see results similar tothose shown in Figure 1-6. Figure 1-6Also note that if you receive an error message when running the program stating that CustomerReviews1cannot be reflected, please consult Chapter 4 for specific instructions on how to resolve the error. Let s briefly review what just happened. You added a Web reference to the Amazon Web service (youpointed to the Amazon WSDLfile). Visual Studio .NET used the WSDLfile to create the objects thatenable you to use the IntelliSense feature as you type and to refer to the Web services in your code justasyou do other objects. You then added code to the Form_Loadevent of Form1 to call one of the available Amazon Web servicesand to display a message box illustrating part of the search results. Review the VB code in more detail tosee exactly how that works. 12Chapter

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Clan Web Hosting services

Figure 1-510.Add the following code to the Form1_Loadevent

Filed under: professional development with web apis — webmaster @ 9:15 pm

Figure 1-510.Add the following code to the Form1_Loadevent of Form1. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles MyBase.LoadDim AmazonProductData As New _ TestAmazonWebService.Amazon.AWSECommerceServiceDim AmazonSearch As New TestAmazonWebService.Amazon.ItemSearchDim AmazonResponse As New _ TestAmazonWebService.Amazon.ItemSearchResponseDim AmazonRequest(1) As _ TestAmazonWebService.Amazon.ItemSearchRequest Developer/Subscription CodeAmazonSearch.SubscriptionId = YOUR ID GOES HERE We are only making one request, not batching multiple requests Thus element 0 of the array is all we need to assign and work withAmazonRequest(0) = New _ TestAmazonWebService.Amazon.ItemSearchRequestAmazonRequest(0).SearchIndex = Books AmazonRequest(0).Keywords = Denise Gosnell assign the search object to request object with the assigned parametersAmazonSearch.Request = AmazonRequest run the search and populate the responseAmazonResponse = AmazonProductData.ItemSearch(AmazonSearch) Dim item As New TestAmazonWebService.Amazon.ItemDim strOutput As StringstrOutput = Search results for keyword(s): & AmazonRequest(0).Keywords in & AmazonRequest(0).SearchIndex & : & vbCrLf & vbCrLf11Anatomy

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Clan Web Hosting services

Figure 1-26.In the URLfield, type or paste the

Filed under: professional development with web apis — webmaster @ 1:19 pm

Figure 1-3Figure 1-410Chapter

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Clan Web Hosting services

Figure 1-26.In the URLfield, type or paste the

Filed under: professional development with web apis — webmaster @ 1:19 pm

Figure 1-26.In the URLfield, type or paste the URLwhere the WSDLfile of the API you want to work located. Alternatively, you can search for Web services using the links indicated. In this exam- ple, specify the location of the Amazon API (version 4.0 or higher), which is currently located http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.After specifying the URLfor the location of the WSDLfile, click Go. Alist of the methods avail- able for that Web service is then displayed, as shown in Figure 1-4.8.Change the Web reference name to Amazonand click the Add Reference button indicated onFigure 1-4.9.You will notice that multiple references are added to the project, as shown in Figure 1-5, alongwith a Web reference called Amazon. This name is the Web reference name that was specified Add Reference dialog box.

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Clan Web Hosting services

« Previous PageNext Page »

Powered by Java Web Hosting