public GetSingleItemResponseType getsingleitemdetails(string item_id)
 {
     Shopping svc = new Shopping();
     // set the URL and it's parameters
     // Note: Since this is a demo appid, it is very critical to replace the appid with yours to ensure the proper servicing of your application.
     svc.Url = "http://open.api.ebay.com/shopping?appid=Rocheste-4cbc-41a0-bbd8-01b751a3b855&version=523&siteid=0&callname=GetSingleItem&responseencoding=SOAP&requestencoding=SOAP";
     // create a new request type
     GetSingleItemRequestType request = new GetSingleItemRequestType();
     // put in your own item number
     request.ItemID = item_id;
     // we will request Details
     // for IncludeSelector reference see
     // http://developer.ebay.com/DevZone/shopping/docs/CallRef/GetSingleItem.html#detailControls
     request.IncludeSelector = "Details";
     // create a new response type
     GetSingleItemResponseType response = new GetSingleItemResponseType();
     try
     {
         // make the call
         response = svc.GetSingleItem(request);
     }
     catch (Exception ex)
     {
         // catch generic exception
         //Console.WriteLine(ex.Message);
         return null;
     }
     return response;
 }
Esempio n. 2
0
 /// <remarks/>
 public void GetSingleItemAsync(GetSingleItemRequestType GetSingleItemRequest, object userState) {
     if ((this.GetSingleItemOperationCompleted == null)) {
         this.GetSingleItemOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSingleItemOperationCompleted);
     }
     this.InvokeAsync("GetSingleItem", new object[] {
                 GetSingleItemRequest}, this.GetSingleItemOperationCompleted, userState);
 }
Esempio n. 3
0
 /// <remarks/>
 public void GetSingleItemAsync(GetSingleItemRequestType GetSingleItemRequest) {
     this.GetSingleItemAsync(GetSingleItemRequest, null);
 }