If you are simply learning it as a tutorial to grasp the functional aspect of web services, you can relax the security configuration of the web service by allowing Annoymous Access for the web service's virtual directory properties in IIS.
You are probably facing failed credentials because the user account in the client machine B does not exists in server A, or the password defers, or the user does not have NTFS permissions to access the directory where the web service is located.
The melody of logic will always play out the truth. ~ Narumi Ayumu, Spiral
thanks icelava for the prompt reply.
Hmm.. so now there are possibly 3 situations in which the credential failed. How can i edit the codes or do adjustments to make it work?
Thanks a lot