Guest User

Untitled

a guest
Mar 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. namespace ServidorWCF
  2. {
  3. [ServiceContract]
  4. public interface IWCFServicio
  5. {
  6. [OperationContract]
  7. string ObtenerCursos(string cliente);
  8.  
  9. [OperationContract]
  10. string ObtenerPreguntas(int curso, string cliente);
  11.  
  12. [OperationContract]
  13. string ObtenerRespuestas(int pregunta, string cliente);
  14.  
  15. [OperationContract]
  16. void IngresarCurso(string curso, string cliente);
  17.  
  18. [OperationContract]
  19. int IngresarPregunta(string pregunta, int curso, string cliente);
  20.  
  21. [OperationContract]
  22. void EliminarPreguntas(int curso, string cliente);
  23.  
  24. [OperationContract]
  25. void IngresarRespuesta(string respuesta, int pregunta, int correcta, string cliente);
  26. }
  27. }
  28.  
  29. <?xml version="1.0" encoding="utf-8" ?>
  30.  
  31. <system.serviceModel>
  32. <behaviors>
  33. <serviceBehaviors>
  34. <behavior name="comportamientoServicio">
  35. <serviceMetadata />
  36. </behavior>
  37. </serviceBehaviors>
  38. </behaviors>
  39. <services>
  40. <service behaviorConfiguration="comportamientoServicio" name="ServidorWCF.WCFServicio">
  41. <endpoint address="http://localhost:9999/ServicioWCF" binding="basicHttpBinding"
  42. bindingConfiguration="" name="WCFEndPoint" contract="ServidorWCF.IWCFServicio" />
  43. <endpoint address="http://localhost:9998/met" binding="mexHttpBinding"
  44. bindingConfiguration="" name="MetadataServicio" contract="IMetadataExchange" />
  45. <host>
  46. <baseAddresses>
  47. <add baseAddress="http://localhost:9999/" />
  48. </baseAddresses>
  49. </host>
  50. </service>
  51. </services>
  52. </system.serviceModel>
Add Comment
Please, Sign In to add comment