[英]Translate xml content using web service API from Ektron CMS400.Net
First of all: I'm on Ektron CMS v8.1 首先:我正在使用Ektron CMS v8.1
I'm having a problem with dynamicly adding translated content to the cms via the Webservice API. 我通过Webservice API将翻译后的内容动态添加到cms时遇到问题。 I can perfectly add xml content by using the following object and method:
我可以使用以下对象和方法完美地添加xml内容:
ContentSoapClient csc = new ContentSoapClient("ContentSoap"); ContentSoapClient csc =新的ContentSoapClient(“ ContentSoap”); csc.AddContent3(...);
csc.AddContent3(...);
I specify a language and the xml content gets inserted. 我指定一种语言,然后插入xml内容。 But now I want to add a translated version of the xml to the cms.
但是现在我想将xml的翻译版本添加到cms。 So I want it to have the same contentId!
所以我希望它具有相同的contentId!
Anyone has an idea on this? 有人对此有想法吗? The only method in the csc object that recieves a contentId is 'csc.AddContent2(..)' But that doesn't import anything and just gives me an error saying my xml is incorrect.
csc对象中唯一可接收contentId的方法是“ csc.AddContent2(..)”,但这不会导入任何内容,只会给我一个错误,指出我的xml不正确。 While my xml is correct..I checked it!
虽然我的xml是正确的..我检查了它!
Thanks! 谢谢!
Found the answer.. 找到了答案。
Ektron apparantly uses alot of asmx files and I only checked the "/workarea/webservices/WebServiceAPI/Content/Content.asmx" webservice. Ektron显然使用了许多asmx文件,而我只检查了“ /workarea/webservices/WebServiceAPI/Content/Content.asmx”Web服务。 I found the method 'AddTranslatedXMLContent()' I need in the "/Workarea/webservices/ContentWS.asmx" webservice.
我在“ /Workarea/webservices/ContentWS.asmx”Web服务中找到了所需的方法“ AddTranslatedXMLContent()”。
I wish they just cleaned up their API... Would save us a lot of trouble. 希望他们只是清理API ...可以为我们省去很多麻烦。
Firstly, I haven't used the ContentSoapClient class and can't find any documentation on it. 首先,我没有使用ContentSoapClient类,也找不到关于它的任何文档。
Ektron often takes a language id when you create the API object. 创建API对象时,Ektron通常采用语言ID。 See if the ContentSoapClient contructor can take a Language Id.
查看ContentSoapClient构造函数是否可以使用语言ID。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.