2013-08-29 56 views
0

我試圖通過他們所提供的OData服務發佈到SAP新的項目,但我收到以下錯誤,當我嘗試通過RESTClient實現附加在Firefox:SAP服務返回415不支持的媒體類型

Status Code: 415 Unsupported Media Type 
Content-Length: 291 
Content-Type: application/xml 
Server: SAP NetWeaver Application Server/ABAP 731 
dataserviceversion: 1.0 

,這裏是我使用過帳數據的XML:

<?xml version="1.0" encoding="utf-8"?> 
<entry> 
<content type="application/xml"> 
<m:properties> 
<d:zz_region>E</d:zz_region> 
<d:pf_changed_by>FDK538</d:pf_changed_by> 
<d:pf_hier_explanation/> 
<d:fiw_uname/> 
<d:pf_period_type>00</d:pf_period_type> 
<d:zzhouse_num/> 
<d:fcw_g/> 
</m:properties> 
</content> 
</entry> 

任何想法可能會導致這個錯誤?

回答

0

嘗試添加標題Content-Type: text/xml您的要求。

相關問題