.NET-Web-Service
Additionally to the abovementioned request methods, ASP.NET developers, for example, are able to use a .NET-Webservice,
wich delivers the data over the SOAP protocol.
The webservice is accessible over following URL:
http://www.agentarius.net/service/useragentinfo.asmx
Using the menu entry 'Add Service Reference...' in Microsoft Visual Studio 2005, for example, the service can be bind to
personal ASP.NET projects.
GetUseragentInfo2
Determine all information about an User-Agent-String and stores the IP-Address if the request belongs to a robot.
Parameter
Return
The method returns a DataSet object named
UserAgentData. This DataSet contains a DataTable named UserAgent with following columns:
Error handling
The DataSet, wich the method returns, contains in case of an error a DataTable named Error.
An error will occure also, if the requested User-Agent-String is not yet listed in the database. The new
string will be stored in the database as 'new/unknown'.
GetUseragentInfo
Determine all information about an User-Agent-String without storing the IP-Address
Parameter
The return value und the error handling is equivalent to the method GetUseragentInfo2.
GetUseragentInfoMulti
Determine information about multiple User-Agent-Strings.
Parameter
The parameter UserAgentInfoParameter expects a generic list of data structures named
UserAgentInfoParamStruct, as defined as follows:
(Example in Visual Basic .NET)
Public Structure UserAgentInfoParamStruct
Public UserAgentString As String
Public IPAddress As String
End Structure
...
Dim lst As New List(Of UserAgentInfoParamStruct)
Dim stc As New UserAgentInfoParamStruct
stc.UserAgentString = "This_Is_A_UserAgent"
stc.IPAddress = "192.168.0.1"
lst.Add(stc)
...
Return
The method returns a DataSet object named
UserAgentData. All User-Agent-String, wich could be detected successfully, are stored inside the DataSet in
a DataTable named UserAgent (definition see method GetUseragentInfo2).
Error handling
The DataSet, wich the method returns, contains in case of an error a DataTable named Error.
An error will occure also, if the requested User-Agent-String is not yet listed in the database. The new
string will be stored in the database as 'new/unknown'.