Esempio n. 1
0
        public void getComment(int locationId)
        {
            /*
            string uri = baseWebServer + "SpeechWebServices/sendLastCommentFromIdLocation?idLocation=" + locationId + "&code=wonders";

            HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);

            var webRequest = (HttpWebRequest)HttpWebRequest.Create(uri);
            webRequest.BeginGetResponse(new AsyncCallback(requestCallBackSoundComment), webRequest);
            */

            WebService1SoapClient webService = new WebService1SoapClient();
            webService.getSoundCommentFromLocationAsync(locationId, "wonders");
            webService.getSoundCommentFromLocationCompleted += new EventHandler<getSoundCommentFromLocationCompletedEventArgs>(webService_getSoundCommentFromLocationCompleted);
        }