code_junkie

.Net webservice, how to access…?

Nov 11th, 2011
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public class foobar : System.Web.Services.Protocols.SoapHttpClientProtocol
  2.  
  3. public interface foobarSoap
  4.  
  5. [ServiceContract]
  6. public interface IFooService
  7. {
  8. [OperationContract] // This is not allowed, it will not compile
  9. string Name { get; set; }
  10. }
  11.  
  12. [WebService(Namespace = "http://tempuri.org/")]
  13. public class FooService : System.Web.Services.WebService
  14. {
  15. [WebMethod] // This is not allowed, it will not compile
  16. string Name { get; set; }
  17. }
  18.  
  19. http://www.xmlme.com/WSShakespeare.asmx
Add Comment
Please, Sign In to add comment