1、检查你的Namespace
2、如果在asp.net页里使用,你需要先编译。
In Web.config, you must use the dll name as the top level namespace. Thus, myObj.myNamespace.myObj should be used instead of just myNamespace.myObj. Notice that the first myObj is the name of my dll (myObj.dll). By the way, on the client side, the appname (the IS virtual directory name) must be used as the top level namespace, i.e. <vdir>.myNamespace.myObj. One more thing I learned, do not use http://localhost/ with soapsuds.