【问题标题】:QuickBooks Web Connector - Can't find SOAP responseQuickBooks Web 连接器 - 找不到 SOAP 响应
【发布时间】:2020-02-26 20:12:27
【问题描述】:

我正在尝试构建一个 SOAP 服务器以与 QuickBooks Web 连接器进行交互,但找不到任何示例来说明 SOAP 对其对authenticate 的请求的响应应该是什么。

我们如何回应?

我试图找到一种方法来响应此操作,但没有文档或示例。

{'soapaction': '"http://developer.intuit.com/authenticate"', 'host': 'api:3000', 'user-agent': 'Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 4.0.30319.42000)', 'content-type': 'text/xml; charset=utf-8', 'cookie': None, 'content-length': '382', 'ssl-client-verify': 'NONE', 'x-forwarded-for': '12.34.567.89', 'x-real-ip': '12.34.567.89', 'anvil-host': 'Jeremiah.QB.app'}

【问题讨论】:

    标签: soap quickbooks


    【解决方案1】:

    WSDL

    您可以在下面的链接中找到此服务的WSDL,这可能会帮助您开发:

    示例 SOAP 请求

    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope
     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
     SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
     xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
        <SOAP-ENV:Body>
            <authenticate xmlns="http://developer.intuit.com/">
                <strUserName xsi:type="xsd:string">username</strUserName>
                <strPassword xsi:type="xsd:string">password</strPassword>
            </authenticate>
        </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    

    示例 SOAP 响应 VALID 登录

    HTTP/1.1 200 OK
    Date: Sat, 02 May 2009 17:45:48 GMT
    Server: Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7l DAV/2 PHP/5.2.9
    X-Powered-By: PHP/5.2.9
    Content-Length: 416
    Connection: close
    Content-Type: text/xml
    
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://developer.intuit.com/">
        <SOAP-ENV:Body>
            <ns1:authenticateResponse>
                <ns1:authenticateResult>
                    <ns1:string>15c9ce293bd3f41b761c21635b14fa06</ns1:string>
                    <ns1:string></ns1:string>
                </ns1:authenticateResult>
            </ns1:authenticateResponse>
        </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    

    示例 SOAP 响应无效登录

    HTTP/1.1 200 OK
    Date: Sat, 02 May 2009 17:43:09 GMT
    Server: Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7l DAV/2 PHP/5.2.9
    X-Powered-By: PHP/5.2.9
    Content-Length: 387
    Connection: close
    Content-Type: text/xml
    
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://developer.intuit.com/">
        <SOAP-ENV:Body>
            <ns1:authenticateResponse>
                <ns1:authenticateResult>
                    <ns1:string></ns1:string>
                    <ns1:string>nvu</ns1:string>
                </ns1:authenticateResult>
            </ns1:authenticateResponse>
        </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    

    来源:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-28
      • 2021-12-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多