How can I extract the data by consuming a webservice from PHP
and return me in datagridview
of Visual Basic
as they can observe in a query several data
Imports System.Data
Imports System.Data.SqlClient
Imports DESCARGAPEDIDO.WsSurtioficce
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
If My.Application.CommandLineArgs.Count > 0 Then
Operador = My.Application.CommandLineArgs(0).ToString()
NombreBD = My.Application.CommandLineArgs(4).ToString()
ServidorBD = My.Application.CommandLineArgs(5).ToString()
For N_PARAMETRO = 0 To My.Application.CommandLineArgs.Count - 1
If N_PARAMETRO >= CAMPOFINAL Then
G_CONEXIONBIROBIDSA += My.Application.CommandLineArgs(N_PARAMETRO).ToString.Trim + " "
End If
Next
End If
If String.IsNullOrEmpty(Operador) Then
Operador = "ADM"
End If
ObtieneConexion()
'configuraGrid()
'configuraGrid2()
BuscaCabecera()
End Sub
Private Sub ObtieneConexion()
cn = con.ConexionSQL(NombreBD, ServidorBD, UserBD, PasswordBD)
G_CONEXIONBIROBIDSA = cn.ConnectionString
cn.Dispose()
cn.Close()
End Sub
Private Sub BuscaCabecera()
Dim Array As Char
Array = ObjWsSurt.orden_pedido(fecha.Text)
DataGridView1.DataSource = Array
End Sub