Marlene Carranza
IT Solutions for Business / Networks and Servers Administrator / Sap NetWeaver Administrator
Microsoft Certified Systems Engineer - CCNA - NSP Cisco Certified
Mail: mbcar...@gmail.com
P Think before Print :)
Hola Marlene.
Te iba a aconsejar lo mismo q Mauricio. Él lo puede hacer mejor q yo dado q es muy bueno en esto.
Estuve mirando x el SoapUI tu link de acceso al WS y en ningún lado figura p enviar el usuario y password, así q en el código debajo adjuntado x Mauricio debes enviarlo seguramente en un SetRequestHeader.
Es raro q no te hayan dado algún pdf de documentación sobre este WS.
Busca en internet ayuda sobre “'Msxml2.ServerXMLHTTP.6.0'” p entender como pasar el usuario y password junto con el xml.
Saludos
Esteban
Michaelis.MockService service = new Michaelis.MockService();
// Create the network credentials and assign
// them to the service credentials
NetworkCredential netCredential = new NetworkCredential("Inigo.Montoya", "Ykmfptd");
Uri uri = new Uri(service.Url);
ICredentials credentials = netCredential.GetCredential(uri, "Basic");
service.Credentials = credentials;
// Be sure to set PreAuthenticate to true or else
// authentication will not be sent.
service.PreAuthenticate = true;
// Make the web service call.
service.Method();