Skip to main content
Published: July 19 2006, 11:30:00 AMUpdated: July 29 2022, 3:55:56 AM

I am using the .NET SDK in Python and I am getting errors such as this:

File "<COMObject eBay.Service.Call.GetUserCall>", line 2, in GetUser
pywintypes.com_error: (-2147024809, 'The parameter is incorrect.', None, None)

How can I resolve this?

The .NET SDK is meant to be used with the .NET programming languages and it is recommended that you do not use it with even languages such as VB6 or VBA.   The COM support is weak since there are no interfaces defined.  Therefore, although the classes are available, the methods and properties are not visible in the object browser.  This means that you cannot use intellisense. In essence, this defeats the purpose of Rapid Application Development and you may run into other interop issues.  Our recommendation is to use Schema XML - make the XML request over https directly.  Take a look at the article Visual Basic 6 Sample Code for AddItem call which demonstrates how to make an AddItem call using VB6.

However, if you have a good reason to use the .NET SDK with other programming languages, then the best practice is to make all your calls using the Execute method.  This method takes no parameters and does not return any objects.  To access the object that gets returned by the call, you can get to it via a property of the call.  Here is a sample VB6 code to illustrate this:

Dim apicall As GetUserCall
Dim myUser As UserType
Set apicall = New GetUserCall
Set apicall.apiContext =context
apicall.DetailLevelList.Add (DetailLevelCodeType_ReturnAll)
apicall.itemID = "110001902998"
apicall.userid = "dts2"
'Access the user object
Set myUser = apicall.User

For a complete sample, take a look at the VB6 SoapApiDemo project that ships with the .NET SDK.

How well did this answer your question?
Answers others found helpful

Got thoughts? Click the feedback button – your insights help us improve!