Is there a way that I can see the XML generated by Tessitura when someone generates an email order confirmation from the application? All the calls I see in the API that would give me that information require a session key...
Sure in your aspx page you can access the raw xml via "OrderData.CartDocument". I do this a lot with our templates, and even append to the document before it gets transformed.
Thanks, Jon.
Could you give me a little more detail on how I view the data? I looked in both order_email_sample templates and found no reference to orderdata.cartdocument. I'm still kind of a noob when it comes to XSL transformations, but I'm updating our templates as a learning project.
Thanks for your help!
You're right it is not documented. Its like an easter egg. I have attached one of our templayes you can see how it is used. Basically I am getting the raw xml in an from the OrderData.CartDocument object, then I make some tessitura calls to get extra information. Then I append it to the xml object, so that it is there when the transform is called. You can write the xml data out to the web page as well.
I forgot to add if you just want the xml data dumped to the web page to view you could use the following code in your aspx page:
Response.Write(OrderData.CartDocument.InnerXml);
That's very helpful. Is there a way to view the data without having to send the email? Not really a big deal, just curious.
Thanks much!
Take a look at the "Testing" section on page 364 of the web Api_documentation.pdf . It tells how to test these.