SoapFault Unauthorized - Connecting to Purolator Web Services

When I try to call an external web service, I get intermittent error messages "Unauthorized". When I get this message, if I constantly reload the page, it will eventually work.

Has anyone encountered a similar problem? Do you think this is a server problem? I'm a little surprised if this is a poorly balanced server or something like that.

The web service is called via HTTPS.

+3
source share
1 answer

Thanks for your question.

The "401 Unauthorized" error can be caused by the following problems:

  • / /. , , , , - , Purolator, . , . , Purolator, . ( , , ":", "$" .., escape-)

  • . , . , "DEV" () URL- : , PHP: "location" = > "https://devwebservices.purolator.com/PWS/V1/ShippingDocuments/ShippingDocumentsService.asmx" ( )

Production: "location" = > "https://webservices.purolator.com/PWS/V1/ShippingDocuments/ShippingDocumentsService.asmx" ( )

Purolator (-) : http://purolatorwebservices.com

, - Purolator E-Ship webservices@purolator.com

+1

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


All Articles