S
S
shitware2013-02-11 18:52:07
Computer networks
shitware, 2013-02-11 18:52:07

web service client in WinRT

We have:

company.com/services/service.wsdl service, login and password.

Required:

Log in and read the data.

Windows RT platform.

Service.PortTerminalOperationServiceClient client = new Service.PortTerminalOperationServiceClient(); public void ServiceConnect() { HlagDataService.credentials login = new HlagDataService.credentials(); login.userId = "11"; login.password = "12"; login.organisation = "FBI"; Task<Service.readAllPortsResponse> x = client.readAllPortsAsync(login); Service.readAllPortsResponse Ports = x.Result;

We get an error:

The HTTP request was forbidden with client authentication scheme 'Anonymous'.

Perhaps the task is simple, but I did not find any information. I would appreciate your help!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question