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.15. Setup.Add Method in ASP.NET C# codebehind<br />

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

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

// Add business object.<br />

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

//Parameters:<br />

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

//BusObject:- business object used to do update<br />

//XmlParam:- The parameter xml to be used in update<br />

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

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

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

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

string <strong>Syspro</strong>Add(string Uid, string BusObject, string \<br />

XmlParam, string XmlIn) {<br />

string xmlOut;<br />

Encore.Setup EncoreAdd = new Encore.Setup();<br />

xmlOut = EncoreAdd.Add(Uid, BusObject, XmlParam, XmlIn);<br />

EncoreAdd = null;<br />

return xmlOut;<br />

}<br />

10–27

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

Saved successfully!

Ooh no, something went wrong!