For full functionality of this site it is necessary to enable JavaScript.
Here are the instructions how to enable JavaScript in your web browser.

Knowledge base

Find the answer to your question

Advanced Search PView

Search terms
Search Type
Product
Category
Language
Format
SDK
Sort by
Direction

I am getting "Web Service framework internal error. execute exception." when calling GetAttributesCS or using AttributesXmlDownloader.DownloadXml

  • Answer ID 617
  • Published 08/15/2006 03:54 PM
  • Updated 10/20/2013 06:41 AM
  • Permalink https://ebaydts.com/eBayKBDetails?KBid=617
Product
I am getting "Web Service framework internal error. execute exception." when calling GetAttributesCS or using AttributesXmlDownloader.DownloadXml
or
I am getting this error when I call
attributesXmlDownloader.DownloadXml(context)

An unhandled exception of type 'eBay.Service.Core.Sdk.ApiException' occurred in ebay.service.dll
Additional information: Error in the application.

What is going on? I can't get this to work in the Sandbox, it fails all of the time!


You're not doing anything wrong.
These exceptions are due to out of memory conditions on the GetAttributesCS call in the Sandbox.

This problem can happen on occasion in Production.
If you get this problem on Production, please retry according to the guidelines set forth in this Knowledge Base article:
https://ebay.custhelp.com/cgi-bin/ebay.cfg/php/enduser/std_adp.php?p_faqid=464

As for the Sandbox, this problem can linger.
The recommendation for the Sandbox is to break the single call for the entire data set into smaller calls for specific AttributeSetID values.
Here is an example of such a call that will get back the data set for Golf Clubs (1901) and Digital Cameras (1787):

  <?xml version="1.0" encoding="utf-8"?>
  <GetAttributesCSRequest xmlns="urn:ebay:apis:eBLBaseComponents">
    <RequesterCredentials>
      <eBayAuthToken>token</eBayAuthToken>
    </RequesterCredentials>
    <DetailLevel>ReturnAll</DetailLevel>
    <Version>473</Version>
    <AttributeSetID>1787</AttributeSetID>
    <AttributeSetID>1901</AttributeSetID>
  </GetAttributesCSRequest>

In the situation where you are trying to use the AttributesDemo sample in the .NET SDK, the problem is that the actual GetAttributesCS call is made by the DownloadXml method in the AttributesMaster.cs file of the eBay.Service.SDK.Attribute project.

You can change the code and rebuild the SDK just to get this going by putting in explicit AttributeSetIDs in the DownloadXml method located in the AttributesMaster.cs file as the lines in bold show:

  public void DownloadXml(ApiContext asn)
  {
    this.mASK = asn;
    //
    
    GetAttributesCSCall api = new GetAttributesCSCall(asn);
    // let's ask for the attributes for Golf Clubs and Digital Cameras
    api.AttributeSetIDList = new Int32Collection(new int[] {1901,1787});
    ...
  }

This will cause the DownloadXml method to load only the metadata for the AttributeSetIDs that you specify, and the call will likely return successfully every time.

Follow the directions in C:\Program Files\eBay\eBay SDK v465.0 for .NET\Source\HowToBuild.htm in order to rebuild the SDK (the file path will vary depending on the exact location you installed the SDK to, and the version of the SDK installed).

How well did this answer your question?

Answers others found helpful

Print Email This Page Delicious Digg Facebook Reddit StumbleUpon Twitter