Cannot access Trading API WSDL from Command Line
Summary: mathman87vw4 reported an issue with accessing the Trading API WSDL using the command line. The original post and a follow-up response from the same author are both marked as "None," suggesting a lack of specific information on the problem or resolution. The subject indicates a technical issue but does not provide further details or insights into any troubleshooting steps.
I have a tool that downloads the eBay Trading API WSDL (https://developer.ebay.com/webservices/1379/ebaysvc.wsdl) and builds the associated Java classes (ie. I am trying to access it in code.). However, I am getting a HTTP 403 error. I was not experiencing 403 errors several months ago. Is there something I need to do to access the WSDL in a headless manner? Has something changed on the server that forbids programmatic access to the WSDL?
I am still able to download the Trading API WSDL from a Web browser without any credentials whatsoever.
I could reconfigure the tool use a local WSDL copy, but I would rather not.
Sample of errors I am receiving ...
First Example (JAX-WS Maven plugin)
[ERROR] Server returned HTTP response code: 403 for URL: https://developer.ebay.com/webservices/1379/ebaysvc.wsdl
Failed to read the WSDL document: https://developer.ebay.com/webservices/1379/ebaysvc.wsdl, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>.
Second Example (cURL)
$ curl https://developer.ebay.com/webservices/1379/ebaysvc.wsdl
<HTML><HEAD>
<TITLE>Access Denied</TITLE>
</HEAD><BODY>
<H1>Access Denied</H1>
You don't have permission to access "http://developer.ebay.com/webservices/1379/ebaysvc.wsdl" on this server.<P>
Reference #18.6ca71002.1777521620.2acf1a06
<P>https://errors.edgesuite.net/18.6ca71002.1777521620.2acf1a06</P>
</BODY>
</HTML>
mathman87vw4
OP2 months agoissue verified on the eBay side, and they have fixed the issue.