|
Within your code make two new instances:
The first instance is
used to send information to the service:
Dim IC As New IC_WebService.InfoCountry
' Note: The method to use is: SMSInfo
The second is to read from the service.
Dim ICprop As New IC_WebService.SMSInfoProperties
Now set the response values to the method
within the class
which is called:
ICprop = IC.SMSInfo( UserName As String,
Password As String, RequestType As String, RequestMsg As String, RequestRef as String)
Finally, use the class response properties
to view the result:
First! Check if the message has processed successfully,
then display the response messages:
If Not
ICprop.IsValid Then
MessageBox.Show(ICprop.ErrMsg)
' Error in message.
Else
lblResMsg.Text = ICprop.ResponseMsg
lblResDesc.Text = ICprop.ResponseDesc
End If
If the message was not processed successfully
then try to make a new request to the service. The way you
use the response properties is up to you. For those who do
not use VB, the principle to access the web service and to
use it in code is not much different. |