question

rjmodelships avatar image
0 Likes"
rjmodelships asked ·

Sample API Usage Failing

Using a fresh download of eBaySOAP after earlier identical issues with our existing copy, I am attempting to simply run any of the sample exercises, without success. We have current, active eBay developer credentials, verified in their portal. Error message returned by any/all samples: Fatal error: SOAP-ERROR: Parsing Schema: unexpected <any> in complexType in eBaySOAP/ eBaySOAP.php on line 87 Line 87 is where the SOAP call is initiated (parent::__construct()) I'd like to be able to view the SOAP call, however this fatal error seems to not allow the call to be retrieved. As I have been seeing this error with eBaySOAP consistently, and for several days with different attempts both provided by eBay and custom, while using either our sandbox or production account, I assume this is not unusual, and may already have been addressed by some developer. I appreciate any thoughts on overcoming this error. Thanks in advance for any help.
apierrorsoapcomplextype
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

rjmodelships avatar image
0 Likes"
rjmodelships answered ·
By changing the WSDL version number from 753 (as suggested in numerous locations around the web) to 901 (current latest version shown in the HTTP Headers section in the API Test Tool), and updating the compatibility level in ebay.ini from 551 (what it came with) to 901, I am now getting results returned. I'm guessing the issue is that the WSDL version needs to be the latest ... whatever that is ... and the "latest" redirect keyword, as is included in the eBaySOAP file paths, is not functioning, so this needs to be hard-coded. It would be awesome if eBay could prominently display the latest version number on the developer portal, for those of us who need to find that info. So, mark this as solved.
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

davidtsadler avatar image
1 Like"
davidtsadler answered ·
The current API version is shown at the top of the [Call Reference]( http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/index.html) for each service. In addition there are [release notes]( http://developer.ebay.com/DevZone/XML/docs/ReleaseNotes.html) available for each service that shows the [lowest support version]( http://developer.ebay.com/DevZone/xml/docs/HowTo/eBayWS/eBaySchemaVersioning.html#VersionSupportSchedule). *This explains why using 753 resulted in an invalid URL as that version was dropped some time ago*. Admittedly the API version is not shown on the [main documentation]( https://go.developer.ebay.com/api-documentation) but at least it's available. ![alt text][1] [1]: /storage/temp/494-api-version.jpg

api-version.jpg (19.2 KiB)
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

rjmodelships avatar image
0 Likes"
rjmodelships answered ·
Adding one more error, when the WSDL is not the default: Default: developer.ebay.com/webservices/latest/eBaySvc.wsdl Suggested Mod: developer.ebay.com/webservices/753/eBaySvc.wsdl Changing the WSDL location produces this error, reliably: Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from ' http://developer.ebay.com/webservices/753/eBaySvc.wsdl' : Extra content at the end of the document in eBaySOAP/ eBaySOAP.php on line 87 Same __construct() method as the issue noted, above. I just have to think that the SOAP call is being malformed, to produce both errors. Still seeking thoughts and advise on overcoming these errors. Thanks.
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.