2017-01-17 23 views
0

在我構建的應用程序中,通過打開文檔顯示BO報告,BO服務器在執行REST服務調用時似乎沒有響應opendocument url。你能提供任何線索爲什麼?SAP BO Rest服務調用不返回opendocument url

在開發環境休息服務調用"http://server/biprws/infostore/<doc_id>"在下面響應HTTP頭返回登錄令牌(最後一行,你應該看到鏈接,打開文檔,該報告)

響應

<entry xmlns="http://www.w3.org/2005/Atom"> 
    <author> 
    <name>Administrator</name> 
    <uri>http://server/biprws/infostore/12</uri> 
    </author> 
    <id>tag:sap.com,2010:bip-rs/<ID></id> 
    <title type="text">Blah Blah Blah</title> 
    <updated>Updated_Date</updated> 
    <link href="http://server/biprws/infostore/<doc_Id>" rel="up" /> 
    <link href="http://server/biprws/infostore/<doc_Id>/scheduleForms" rel="http://www.sap.com/rws/bip#schedule" title="Scheduling forms" /> 
    <content type="application/xml"> 
    <attrs xmlns="http://www.sap.com/rws/bip"> 
     <attr name="id" type="int32"><doc_Id></attr> 
     <attr name="cuid" type="string"><doc_CUID></attr> 
     <attr name="description" type="string">Blah Blah Blah</attr> 
     <attr name="name" type="string">Blah Blah Blah</attr> 
     <attr name="type" type="string">Webi</attr> 
    </attrs> 
    </content> 
    <link href="http://SERVER/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&amp;iDocID=<doc_id>" rel="http://www.sap.com/rws/bip#opendocument" title="OpenDocument" /> 
</entry> 

但當我對QA環境進行相同的調用時,Open document url不會被返回(xml reponse中的最後一行)。有沒有我缺少的配置?

注意:爲了安全起見,我在xml中替換了幾個鏈接和文本。

+0

由於doc_Id在不同的CMS之間不一樣,您是否在開發環境和QA環境之間更新了?我們只保證文件保持不變。 –

+0

@ArnaudDevelay感謝您的回覆。是的,不同的cms系統已經用不同的''更新過 – Deeptechtons

回答

0

我通過重新啓動SAP BO服務器軟件託管其Web服務以及SAP Bo服務器軟件本身的Apache Web服務器來解決此問題。這使更改生效並正確應用設置。