The post shows you on of the ways to resolve “The type name ‘ServiceReference1’ does not exist in the type ‘someclass'” error.
Not sure for what reason Visual Studio having this problem lately. When you reference a Service Reference, for example, http://ucustomsintgstg.customs.gov.my/IL_VesselRegistration/VesselRegistration.svc. Then you keep getting the type name does not exist error. I actually found this article http://bursjootech.blogspot.com/2008/06/wcf-type-name-servicereference1-does.html. But where to change.
I changed in my asmx cs code behind file, for example, the namespace from WSTestPriority to WSTestPrioritySvc.
Then you need to change in the asmx mark up as well.