$ serviceUrl: Caught Exception: Missing serviceUrl configuration value

I am creating a RequestReport in a PHP script.

I seem to be stuck in a problem for $ serviceUrl - which gives me a good moth

"Caught Exception: ServiceUrl configuration value is missing. Get a list of valid MWS URLs by contacting the MWS Developers Guide or by viewing a sample code published next to this library. Response status code: -1 Error code: InvalidServiceUrl Error type: Request Id: XML: ResponseHeaderMetadata: "

Am I using the correct URL below? $ serviceUrl = " http://mws.amazonaws.com ";

I have this several times and I have seen one thing: $ serviceUrl = " http://mws.amazonaws.com/Orders/10-01-2011 ";

Maybe I'm using it the wrong way ... but still not.

This works in MWS Scratchpad, but cannot use the correct endpoint for my script.

+4
source share
1 answer

Your urls do not work:

http://mws.amazonaws.com/Orders/10-01-2011

http://mws.amazonaws.com/

Try with this URL:

https://mws.amazonservices.com/

// Use the endpoint for your marketplace String serviceUrl = "https://mws.amazonservices.com/"; 

See here for a more detailed explanation:

http://docs.developer.amazonservices.com/en_US/dev_guide/DG_ClientLibraries.html

Pdf Guide: ( https://images-na.ssl-images-amazon.com/images/G/01/mwsportal/doc/en_US/BDE/MWSDeveloperGuide.V327338404.pdf )

0
source

Source: https://habr.com/ru/post/1497894/


All Articles