开发者

Translate xml content using web service API from Ektron CMS400.Net

First of all: I'm on Ektron CMS v8.1

I'm having a problem with dynamicly adding translated content to the cms via the Webservice API. I can perfectly add xml content by using the following object and method:

ContentSoapClient csc = new ContentSoapClient("ContentSoap"); csc.AddContent3(...);

I specify a language and the xml content gets inserted. But now I want to add a translated version of the xml to the cms. So I want it to have the same 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 erro开发者_JAVA百科r saying my xml is incorrect. While my xml is correct..I checked it!

Thanks!


Found the answer..

Ektron apparantly uses alot of asmx files and I only checked the "/workarea/webservices/WebServiceAPI/Content/Content.asmx" webservice. I found the method 'AddTranslatedXMLContent()' I need in the "/Workarea/webservices/ContentWS.asmx" webservice.

I wish they just cleaned up their API... Would save us a lot of trouble.


Firstly, I haven't used the ContentSoapClient class and can't find any documentation on it.

Ektron often takes a language id when you create the API object. See if the ContentSoapClient contructor can take a Language Id.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜