dongmi4809 2010-12-06 13:48
浏览 45
已采纳

SoapFault未经授权 - 连接到Purolator Webservices

I am getting intermittent "Unauthorized" error messages, when attempting to call an external web service. When I get this message, if I continually reload the page, it will eventually work.

Has anyone ever encountered a similar problem? Do you think it is a server issue? I am kinda wondering if it is a bad load balanced server or something.

The web service is being called via HTTPS.

  • 写回答

1条回答 默认 最新

  • dongliping003116 2010-12-06 19:00
    关注

    Thank you for your question.

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

    1. Wrong development / production key or wrong development / production password. Please double check that the credentials you are providing are the ones given by Purolator when you applied for the keys. If five consecutive requests are sent to the server with a wrong password, the key automatically gets locked. You will either have to apply for another key or contact Purolator to unlock your key. (Note there are special characters that are part of the passwords like ":", "$" etc, you might need to use single cotes or the escape character)

    2. Pointing to the wrong server. If you are using the example codes on the Resource Center in your development stage, these are pointing to the production server. In order to fix this, you just need to add "DEV" (development) as a prefix for the location URL: For example in PHP: 'location' => "https://devwebservices.purolator.com/PWS/V1/ShippingDocuments/ShippingDocumentsService.asmx" (in this case for Shipping Documents Service)

    To point to the Production server use: 'location' => "https://webservices.purolator.com/PWS/V1/ShippingDocuments/ShippingDocumentsService.asmx" (in this case for Shipping Documents Service)

    Feel free to post any Purolator specific questions (web services) on our Technical Support Forum for a prompt response: http://purolatorwebservices.com

    Thank you, Purolator E-Ship Web Services Team webservices@purolator.com

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 ogg dd trandata 报错
  • ¥15 高缺失率数据如何选择填充方式
  • ¥50 potsgresql15备份问题
  • ¥15 Mac系统vs code使用phpstudy如何配置debug来调试php
  • ¥15 目前主流的音乐软件,像网易云音乐,QQ音乐他们的前端和后台部分是用的什么技术实现的?求解!
  • ¥60 pb数据库修改与连接
  • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错