Returns the current status of the Validate web service.
Syntax:
serviceStatus(string keycode)
Returned data
A string containing two consecutive, lower case characters.
ok
Supported Versions
Validate Web Service Version 1.x
Errors
None
Example
Code
c#
The following sample show how to use the serviceStatus function using
c#.
As wilth all examples,
please see the section Adding a reference to the
Validate Web Service .
c# Example 1
string keycode = "qwerty";
validate.validate wsObject = new validate.validate();
string response =
wsObject.serviceStatus(keycode);
c# Example 2 using
using
System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void
Main(string[] args)
{
string keycode = "qwerty";
validate.validate wsObject = new
validate.validate();
string response =
wsObject.serviceStatus(keycode);
Console.WriteLine(response);
Console.ReadLine();
}
}
}
Visual Basic .net
The following sample show how to use the serviceStatus function
using Visual Basic.net.
As wlth all examples,
please see the section Adding a reference to the
Validate Web Service .
Visual Basic.net Example 1
Dim wsobject
As New
validate.validate()
Dim response As
String =
wsobject.serviceStatus("qwerty")
Visual Basic.net Example 2 Module Module1 Sub Main() ' define the keycode as a string.Dim keycode As String = "qwerty" 'define a string for the response Dim response As String = "" ' Create a web service object Dim wsobject As New validate.validate() ' Call the web service function response = wsobject.serviceStatus(keycode) ' display the status Console.WriteLine(response) Console.ReadLine() End Sub End Module
|
Java
The following sample show how to use the validateBic
function using Java
Java Example 1 public class Main { public static void main(String[] args) { com.bemac.vtest.Validate service =
new
com.bemac.vtest.Validate(); |
![]() |
©Copyright 2023 Paygate Solutions Limited |