In order to do a basic authentication, with username and password, for your request to remote XML web-service you have to set Credentials property of request object.