Skip to main content
Published: January 03 2007, 3:00:00 PMUpdated: November 28 2020, 3:09:09 PM

Why am I getting "An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in system.web.services.dll" in my SOAP response as follows?
 

<soapenv:Fault>

      <faultcode>soapenv:Server.userException</faultcode>

      <faultstring>com.ebay.app.pres.service.hosting.WebServiceDisabledException: The web service eBayAPI is not properly configured or not found and is disabled.</faultstring>

      <detail/>

</soapenv:Fault>


Summary

You get this error if you do not configure the Server URL correctly.  If you use SOAP,  you need to use a URL in the following format:
Sandbox:
https://api.sandbox.ebay.com/wsapi?callname=<callName>&siteid=<siteId>&appid=<appId>&version=<version>&routing=default
Production:
https://api.ebay.com/wsapi?callname=<callName>&siteid=<siteId>&appid=<appId>&version=<version>&routing=default

where the paramaters are as follows:
<callName> is the API call that you need to invoke
<siteId> is the numeric value for eBay site to which you target the call
<appId> is your AppID which is a part of your keys
<version> is the compatibility level with which you make the call



Detailed Description

Here are examples of how you need to set the URL for making a request on Sandbox:

Notes:
If you use the .NET or the Java SDK:
- you just need to set the ServerURL.  The SDK will set the parameters in the url automatically.  
- if you want to make the request to a non US site, you need to set the SiteID either at the Context level or the call level as per this knowledge base article:


Version Info

The code example above was based on the versions specified below:

API Schema Version 491


Additional Resources

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