Advertisement
Guest User

Untitled

a guest
Nov 8th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.06 KB | None | 0 0
  1. Imports System.Web.Services
  2. Imports System.Web.Services.Protocols
  3. Imports System.ComponentModel
  4. Imports System.Configuration.ConfigurationManager
  5. Imports CLC.CUENTASCORRIENTES.COMUN
  6. <System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _
  7. <System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
  8. <ToolboxItem(False)> _
  9. Public Class Main
  10.     Inherits System.Web.Services.WebService
  11.  
  12.     Public Structure WSRespuesta
  13.         Public Men_Retorno As String
  14.     End Structure
  15.  
  16.     <WebMethod()> _
  17.     Public Function Respuesta_WF(Cod_Trans As String, Nro_ID As String, Nro_Sin As String, Cod_Res As String, Men_Res As String) As String
  18.  
  19.         Dim Respuesta As Main.WSRespuesta
  20.         Dim login As String() = AppSettings("UsuarioExterno").Split(";")
  21.  
  22.         Dim Usr As New Usuario
  23.         Usr.Login(login(0), login(1))
  24.         Dim Clase_WF As New BLMain(Usr)
  25.         Respuesta = Clase_WF.Registra_Respuesta(Cod_Trans, Nro_ID, Nro_Sin, Cod_Res, Men_Res)
  26.  
  27.         Return Respuesta.Men_Retorno
  28.     End Function
  29.  
  30. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement