IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Web.WSBase Class Reference

Base class for IGLib webservices. More...

+ Inheritance diagram for IG.Web.WSBase:
+ Collaboration diagram for IG.Web.WSBase:

Public Member Functions

string TestService ()
 Tests whether the web service is alive. More...
 
string TestServiceArg (string commandlineArguments)
 Tests whether the web service is alive. More...
 
string TestServiceArgs (string[] commandlineArguments)
 Tests whether the web service is alive. More...
 
string TestCount ()
 Web service method example. Increments a static counter. More...
 
string TestCount ()
 Web service method example. Increments a static counter. More...
 
- Public Member Functions inherited from IG.Web.WSBaseClass
virtual string GetServiceName ()
 Returns name of the web service. More...
 
virtual void SetServiceName (string name)
 Sets name of the web service. More...
 
void SetOutputLevel (int level)
 Sets the level of output generated by the service. More...
 
int GetOutputLevel ()
 Returns the current level of output generated by the service. More...
 
string TestService ()
 Tests whether the web service is alive. More...
 
string TestServiceCmd (string commandlineArguments)
 Tests whether the web service is alive. More...
 
string TestServiceArgs (string[] commandlineArguments)
 Tests whether the web service is alive. More...
 
string TestCount ()
 Web service method example. Increments a static counter. More...
 

Static Public Member Functions

static void ExampleUseServiceWithSessions (object sender, EventArgs e)
 

Public Attributes

const string DefaultNamespace = "http://www2.arnes.si/~ljc3m2/igor/iglib/"
 
- Public Attributes inherited from IG.Web.WSBaseClass
const string DefaultNamespace = "http://www2.arnes.si/~ljc3m2/igor/iglib/"
 

Static Protected Member Functions

static int GetNextId ()
 Returns a new ID for a web service object. More...
 
- Static Protected Member Functions inherited from IG.Web.WSBaseClass
static int GetNextId ()
 Returns a new ID for a web service object. More...
 

Protected Attributes

const int CacheHelloWorldTime = 10
 
int _id = GetNextId()
 
const string VarNumTestCalls = "NumTestCalls__IGLib_Service_Base"
 
- Protected Attributes inherited from IG.Web.WSBaseClass
string _url
 
CookieContainer _cookieContainer
 
const int CacheDurationTimeBase = 10
 
int _id = GetNextId()
 
const string VarNumTestCalls = "NumTestCalls__IGLib_Service_Base"
 

Static Protected Attributes

static string _namespace = DefaultNamespace
 
static int _nextId = 0
 
static int _testCount
 
- Static Protected Attributes inherited from IG.Web.WSBaseClass
static string _namespace = DefaultNamespace
 
static int _nextId = 0
 
static string _name
 
static int _testCount
 

Properties

static string NameSpace [get, set]
 
static int NextIdToBeAssigned [get]
 Returns the next service object ID to be assigned. More...
 
virtual int Id [get, protected set]
 
object Lock [get]
 Object used for locking of the current object. More...
 
- Properties inherited from IG.Web.WSBaseClass
virtual string Url [get, set]
 URL of the web service. More...
 
virtual CookieContainer CookieContainer [get, set]
 Cookie container, for compatibility with proxy classes that are derived from the System.Web.Services.Protocols.HttpWebClientProtocol class. More...
 
static string NameSpace [get, set]
 
static int NextIdToBeAssigned [get]
 Returns the next service object ID to be assigned. More...
 
virtual int Id [get, protected set]
 
object Lock [get]
 Object used for locking of the current object. More...
 
int OutputLevel [get, set]
 Internal flag indicating the level of output the current object generates (e.g. output to the console). More...
 
- Properties inherited from IG.Web.IWSBase
string Url [get, set]
 URL of the web service. More...
 
System.Net.CookieContainer CookieContainer [get, set]
 Cookie container, for compatibility with proxy classes that are derived from the System.Web.Services.Protocols.HttpWebClientProtocol class. More...
 
- Properties inherited from IG.Lib.IIdentifiable
int Id [get]
 Returns unique ID (in the scope of a given type) of the current object. More...
 
- Properties inherited from IG.Lib.ILockable
object Lock [get]
 

Private Attributes

readonly object _lock = new object()
 

Additional Inherited Members

- Static Public Attributes inherited from IG.Web.WSBaseClass
static string VarNameOutputLevel = "OutputLevel"
 

Detailed Description

Base class for IGLib webservices.

Base class for webservices.

Member Function Documentation

static int IG.Web.WSBase.GetNextId ( )
inlinestaticprotected

Returns a new ID for a web service object.

References IG.Lib.Util.LockGlobal.

string IG.Web.WSBase.TestService ( )
inline

Tests whether the web service is alive.

Returns a string identifying web service' class and object ID.

To test, right-click the Web Service's .asmx file and select View in a browser.

Returns

Implements IG.Web.IWSBase.

string IG.Web.WSBase.TestServiceArg ( string  commandlineArguments)
inline

Tests whether the web service is alive.

Returns a string identifying web service' class and object ID.

To test, right-click the Web Service's .asmx file and select View in a browser.

Returns

References IG.Lib.UtilStr.GetArgumentsArray().

string IG.Web.WSBase.TestServiceArgs ( string[]  commandlineArguments)
inline

Tests whether the web service is alive.

Returns a string identifying web service' class and object ID.

To test, right-click the Web Service's .asmx file and select View in a browser.

Returns

Implements IG.Web.IWSBase.

string IG.Web.WSBase.TestCount ( )
inline

Web service method example. Increments a static counter.

To test, right-click the Web Service's .asmx file and select View in Browser

Returns

Implements IG.Web.IWSBase.

static void IG.Web.WSBase.ExampleUseServiceWithSessions ( object  sender,
EventArgs  e 
)
inlinestatic
string IG.Web.WSBase.TestCount ( )
inline

Web service method example. Increments a static counter.

To test, right-click the Web Service's .asmx file and select View in Browser

Returns

Implements IG.Web.IWSBase.

Member Data Documentation

const string IG.Web.WSBase.DefaultNamespace = "http://www2.arnes.si/~ljc3m2/igor/iglib/"
string IG.Web.WSBase._namespace = DefaultNamespace
staticprotected
const int IG.Web.WSBase.CacheHelloWorldTime = 10
protected
int IG.Web.WSBase._nextId = 0
staticprotected
int IG.Web.WSBase._id = GetNextId()
protected
readonly object IG.Web.WSBase._lock = new object()
private
const string IG.Web.WSBase.VarNumTestCalls = "NumTestCalls__IGLib_Service_Base"
protected
static int IG.Web.WSBase._testCount
staticprotected

Property Documentation

string IG.Web.WSBase.NameSpace
staticgetset
int IG.Web.WSBase.NextIdToBeAssigned
staticget

Returns the next service object ID to be assigned.

virtual int IG.Web.WSBase.Id
getprotected set
object IG.Web.WSBase.Lock
get

Object used for locking of the current object.


The documentation for this class was generated from the following files: