20.01.2015 Views

Teach Yourself e.net - Syspro

Teach Yourself e.net - Syspro

Teach Yourself e.net - Syspro

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Sample Applications<br />

Example 10.21. Query.Fetch Method in ASP.NET C# codebehind<br />

//*******************************************************<br />

//- <strong>Syspro</strong>Fetch does the actual call to the specified<br />

// Fetch Query.<br />

//*******************************************************<br />

//Parameters:<br />

//[Uid:- GUID returned by Logon<br />

//XmlIn:- The input xml to be used in fetch<br />

//*******************************************************<br />

//Returns:- The XML returned by the business object.<br />

//*******************************************************<br />

string <strong>Syspro</strong>Fetch(string Uid, string XmlIn) {<br />

string xmlOut;<br />

Encore.Query EncoreFetch = new Encore.Query();<br />

xmlOut = EncoreFetch.Fetch(Uid, XmlIn);<br />

EncoreFetch = null;<br />

return xmlOut;<br />

}<br />

10–33

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!