2017-08-15 40 views
0

編輯 - 有人可以張貼結果soapUI測試在哪裏GetFolderItems的請求顯示標籤FolderItems的返回值?我真的不明白爲什麼或如何回到空虛。如果我改變FOLDERPATH或FolderID是空的,我得到:GetFolderItems不返回FolderItems和EnvelopeID

<soap:Body> 
     <soap:Fault> 
     <faultcode xmlns:q0="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">q0:Security</faultcode> 
     <faultstring>Security requirements are not satisfied because the security header is not present in the incoming message.</faultstring> 
     <faultactor>https://demo.docusign.net:7801/api/3.0/api.asmx</faultactor> 
     </soap:Fault> 

原題:

我使用的soapUI 5.3.0使來自一個名爲「標準測試文件夾」文件夾中的GetFolderItems請求在我的沙箱帳戶中。在響應中是空的。我有一個簽名的文件,我可以在這個文件夾中看到,那麼爲什麼信封ID不會回到soapUI中?

原始請求敏感數據屏蔽:

POST https://demo.docusign.net/api/3.0/api.asmx HTTP/1.1 
Accept-Encoding: gzip,deflate 
Content-Type: text/xml;charset=UTF-8 
SOAPAction: "http://www.docusign.net/API/3.0/GetFolderItems" 
Content-Length: 2367 
Host: demo.docusign.net 
Connection: Keep-Alive 
User-Agent: Apache-HttpClient/4.1.1 (java 1.5) 

<soapenv:Envelope xmlns:ns="http://www.docusign.net/API/3.0" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> 
    <soapenv:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsse:UsernameToken wsu:Id="UsernameToken-username-token-here"><wsse:Username>[my-integrator-key-here]my-username-here</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">my-password-here</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">aNWMeSvYyYaRVcgymLdaCQ==</wsse:Nonce><wsu:Created>2017-08-15T18:35:55.981Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header> 
    <soapenv:Body> 
     <ns:GetFolderItems> 
     <!--Optional:--> 
     <ns:FolderFilter> 
      <!--Optional:--> 
      <ns:AccountId>my-account-id-here</ns:AccountId> 
      <!--Optional:--> 
      <ns:FolderOwner> 
       <!--Optional:--> 
       <ns:UserName>my-username-here</ns:UserName> 
       <!--Optional:--> 
       <ns:Email>my-email-ID-here</ns:Email> 
      </ns:FolderOwner> 
      <!--Optional:--> 
      <ns:FolderTypeInfo> 
       <!--Optional:--> 
       <ns:FolderType>Normal</ns:FolderType> 
       <!--Optional:--> 
       <ns:FolderName>Standard Test Folder</ns:FolderName> 
       <!--Optional:--> 
       <ns:FolderPath/> 
       <!--Optional:--> 
       <ns:FolderId>d9ac99ca-64d4-4a06-8344-4db12f89a502</ns:FolderId> 
      </ns:FolderTypeInfo> 
      <!--Optional:--> 
      <ns:StartPosition>0</ns:StartPosition> 
      <!--Optional:--> 
      <ns:FromDate>2017-08-08T06:00:00</ns:FromDate> 
      <!--Optional:--> 
      <ns:ToDate>2017-08-16T06:00:00</ns:ToDate> 
      <!--Optional:--> 
      <ns:SearchText>?</ns:SearchText> 
      <!--Optional:--> 
      <ns:Status>Any</ns:Status> 
     </ns:FolderFilter> 
     </ns:GetFolderItems> 
    </soapenv:Body> 
</soapenv:Envelope> 

原始響應:

HTTP/1.1 200 OK 
Cache-Control: private, max-age=0 
Content-Type: text/xml; charset=utf-8 
X-RateLimit-Reset: 1502823600 
X-RateLimit-Limit: 1000 
X-RateLimit-Remaining: 987 
Date: Tue, 15 Aug 2017 18:35:56 GMT 
Content-Length: 677 
Vary: Accept-Encoding 
Strict-Transport-Security: max-age=31536000; includeSubDomains 
Content-Encoding: gzip 
Connection: Keep-Alive 

<?xml version="1.0" encoding="utf-8"?> 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> 
<soap:Header> 
<wsa:Action>http://www.docusign.net/API/3.0/GetFolderItemsResponse</wsa:Action> 
<wsa:MessageID>urn:uuid:e7ad7be0-de1d-4286-9d6b-ef18353e39d3</wsa:MessageID> 
<wsa:RelatesTo>urn:uuid:994f2eb3-9c00-49f5-a28d-ff91a139190a</wsa:RelatesTo> 
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> 
<wsse:Security> 
<wsu:Timestamp wsu:Id="Timestamp-ce8081d4-80a8-45c1-8344-ac94d83eefa2"> 
<wsu:Created>2017-08-15T18:35:56Z</wsu:Created> 
<wsu:Expires>2017-08-15T18:40:56Z</wsu:Expires> 
</wsu:Timestamp> 
</wsse:Security> 
</soap:Header> 
<soap:Body> 
<GetFolderItemsResponse xmlns="http://www.docusign.net/API/3.0"> 
<GetFolderItemsResult> 
<ResultSetSize>0</ResultSetSize> 
<StartPosition>0</StartPosition> 
<EndPosition>0</EndPosition> 
<FolderTypeInfo> 
<FolderType>Normal</FolderType> 
<FolderName>Standard Test Folder</FolderName> 
</FolderTypeInfo> 
<FolderItems /> 
</GetFolderItemsResult> 
</GetFolderItemsResponse> 
</soap:Body> 
</soap:Envelope> 

回答

0

從您的要求刪除

<!--Optional:--> 
<ns:SearchText>?</ns:SearchText> 

,它會告訴你的envelopeIds在響應

+0

太棒了!這固定了它。我現在得到了 的回覆我猜這裏學到的教訓是,在示例請求中注意那些>?<! - 非常感謝! –

0

使第一API調用來GetFolderList獲取文件夾列表,然後確保你使用相同的文件夾名稱因爲它出現在GetFolderList響應中。

+0

因爲我得到了下面的調用GetFolderItems我使用的是完全相同的值: 普通 標準測試文件夾 d9ac99ca-64d4-4a06-8344-4db12f89a502

+0

那些高於c ame從第一次調用GetFolderList,然後我使用相同的值調用GetFolderItems –