Hello, I am trying to send a SOAP request using a web form, and simply displaying the returned value as a label. This is my first time using SOAP and I am honestly not sure if I am even going about this the correct way. The web service is already in place and is a service reference in my web app. The web service method (getCounterData) pulls a value from the database based on input parameters and returns the value. The input parameters are:string user, string pwd, int system,Guid (CounterUId). I am also unsure if the way I am using the Guid is correct (The Guid was sourced from the database table) and I had to remove the hyphens from the Guid for it to work.
Here is what I have so far, I don't know if this is even remotely correct.
Any help would be greatly appreciated!
using System;
namespace WebApplication1
{
public partial class WebForm1 : System.Web.UI.Page
{
public Guid B744a97bc1524a17ae4e946f83524d2d { get; private set; }
protected void Page_Load(object send, EventArgs e)
{
Abacus.ServiceSystemSoapClient client = new Abacus.ServiceSystemSoapClient();
client.getCounterData(user: "User", pwd: "Password", system: 0, counterUId: B744a97bc1524a17ae4e946f83524d2d);
Label1.Text =