'I have problems connection to Soap with Authentication

i'm trying to connect my project to SoapUI with an authentication. I am connected to my WS but after reading lots of documents I can´t understand how to connect to my Soap, with my authentication.

What i am trying to do is to send a value to the Soap, and then receive parameters from it. I have my WS connected, so what I am trying to do is to send the username, password and url to the Soap, and after that, send my parameters values to recover the ones that Soap returned.

ZWsCustomerInvoiceGetList zwCustomer = new ZWsCustomerInvoiceGetList();
ZfacturaMat zfacturaMats = new ZfacturaMat();
ZinvoiceList zinvoice = new ZinvoiceList();
zwsCustomerInvoiceGetList.Credentials = new NetworkCredential(userN, _pasw, _url);
var client = zwsCustomerInvoiceGetList.Credentials;

result = new SoapClient(cliente);

This is the line that I have problems

result = new SoapClient(client); 

I'm new with this connections, I have never used Soap before.

If you guys need something else i'm open to give it to you.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source