ECMA ,Call-Based-Export. Working with Webservices.
Hi i have a call-based ECMA that currently is used for import only (pulls an XML from a web service) ,but i want to extend the functionality to include export of some single attributes back to the web service using HTTP PUT. having trouble finding information on what i need to do and where in the extension to put the code. If anyone can explain what i need to do during the BeginExport ,ExportEntry EndExport steps ,that would be great. Or even better share a code example(or just some snippets) for a ECMA that works with a web service. Thomas Larsen
April 26th, 2012 3:25am

Hi, Here's some explanation: In the BeginExport method, you can initialize the connection to your target system. You won't always need this method, but if you need an open connection to the target system, open it here. The method is called before exporting objects. The ExportEntry method is called for each CSEntry object that has a changed attribute value, but only if the BeginExport method does not throw an exception. The modificationType attribute contains 'Add', 'Delete' or 'Replace', depending on the type of change. Therefore, the first thing you should do in this method is create a switch-statement to split up these three options. Next, you can determine which attributes changed (in the case of a 'Replace'). The CSEntry argument contains the actual object. Finally, the EndExport is called at the end of the export (only once). You can use this method to close your connection to the target system. I have written a lot of these custom connectors, so if you have any more questions, please don't hesitate to ask! Best regards, Pieter.Pieter de Loos - Consultant at Traxion (http://www.traxion.com) http://fimfacts.wordpress.com/
Free Windows Admin Tool Kit Click here and download it now
April 26th, 2012 5:42am

Have a look at some of the code in this - http://sharepointlistma.codeplex.com/releases/view/23548Regards, Soren Granfeldt blog is at http://blog.goverco.com | twitter at https://twitter.com/#!/MrGranfeldt
April 30th, 2012 3:47pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics