2016年10月8日 星期六

C#敏感資料遮蔽

參考資料:
http://stackoverflow.com/questions/5015593/how-to-replace-part-of-string-by-position

COMException 未處理:擷取元件 (CLSID為....) 的COM Class Factory 失敗,因為發生下列錯誤...類別未登錄

電腦Visual Studio新專案預設的.NET Framewrok是4.6.1
把專案的.NET Framewrok改成3.5就可以執行了
沒注意到廠商的SampleCode也是用3.5

2016年10月4日 星期二

Apache CXF 3.X已經移掉XMLUtils

http://cxf.apache.org/docs/30-migration-guide.html
Move ALL XML parsing and writing to StaxUtils and DOM based utilities to DOMUtils. The XMLUtils class that used SAX based parsing and Transformer based writing has been eliminated. This simplifies the code as well as increases security as we can provide better limits and have more control with the StAX based IO.

XMLUtils (Apache CXF Bundle Jar 2.7.0 API)
https://cxf.apache.org/javadoc/latest-2.7.x/org/apache/cxf/helpers/XMLUtils.html