20.01.2015 Views

Teach Yourself e.net - Syspro

Teach Yourself e.net - Syspro

Teach Yourself e.net - Syspro

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example 10.14. Setup.Add Method in ASP.NET VB 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 />

Function <strong>Syspro</strong>Add(ByVal Uid As String, ByVal BusObject \<br />

As String, ByVal XmlParam As String, ByVal XmlIn As \<br />

String) As String<br />

Dim xmlOut As String<br />

Dim EncoreAdd As New Encore.Setup()<br />

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

EncoreAdd = Nothing<br />

Return xmlOut<br />

End Function<br />

10–26

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

Saved successfully!

Ooh no, something went wrong!