How to Get a Page Populate Data from XML and Web Service

Topics: General, XSLT
Aug 1, 2011 at 7:38 PM


I like to create a page that holds a container. Inside that container, it populates News and products information from a Web Service and then format the layout using XSLT.  Is this possible in C1?

Thank you

Aug 1, 2011 at 9:53 PM

Here is how to

  1. On the Functions perspective, add a new "Inline C# Function" - this create a new "C1 Function" that you can later call from the XSLT's 'Functions' tab.
  2. Define parameters and write the code that does the service calling - see for documentation on Inline C# Functions
  3. Let your function return XElement, IEnumerable<XElement> or XDocument - these are types you can easily consume from XSLT Function
  4. Save and then go to your XSLT Function and call your new C1 Function


Aug 1, 2011 at 10:13 PM

Thank you. I'll give it a try