0

我正在尝试将 quickbooks 网络连接器与我的 php 网站连接起来。我已经成功地将 QWC 文件与它集成。

这是 QWC 文件:

<QBWCXML>
    <AppName>QuickBooks Integrator</AppName>
    <AppID></AppID>
    <AppURL>https://domain.com/quick1/docs/example_web_connector.php</AppURL>
    <AppDescription>Test desktop quickbook</AppDescription>
    <AppSupport>http://domain.com/file.html</AppSupport>
    <UserName>mudit</UserName>
    <OwnerID>{90A44FB7-33D9-4815-AC85-AC86A7E7D1EB}</OwnerID>
    <FileID>{57F3B9B6-86F1-4FCC-B1FF-967DE1813D20}</FileID>
    <QBType>QBFS</QBType>
    <Scheduler>
        <RunEveryNMinutes>2</RunEveryNMinutes>
    </Scheduler>
    <IsReadOnly>false</IsReadOnly>
</QBWCXML>

当我从网络连接器运行它时,我得到了错误Last result: authentication failed

下面是一小段错误日志:

For backward compatibility of all webservers, QBWC will catch all errors under app-not-supporting-serverVersion.
20130628.20:14:55 UTC   : QBWebConnector.SOAPWebService.do_serverVersion() : This application does not contain support for serverVersion. Allowing update operation for backward compatibility.
20130628.20:14:55 UTC   : QBWebConnector.SOAPWebService.do_clientVersion() : *** Calling clientVersion() with following parameter:<productVersion="2.0.0.139">
20130628.20:14:56 UTC   : QBWebConnector.SOAPWebService.updateWS() : Actual error received from web service for clientVersion call: <The request failed with the error message:
      <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
      <html><head>
      <title>301 Moved Permanently</title>
      </head><body>
      <h1>Moved Permanently</h1>
4

1 回答 1

1

日志表明您的 AppURL 不正确:

20130628.20:14:56 UTC   : QBWebConnector.SOAPWebService.updateWS() : Actual error received from web service for clientVersion call: <The request failed with the error message:
      <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
      <html><head>
      <title>301 Moved Permanently</title>
      </head><body>
      <h1>Moved Permanently</h1>

Web 连接器正在访问您的服务器,并且您的服务器正在返回“301 永久移动”响应,而不是应有的“200 OK”响应。

您是否100% 肯定您的 AppURL 是正确的?

您是否可以实际发布您的 AppURL,以便我们验证它是否正确?

于 2013-07-01T01:40:27.463 回答