Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace ServidorWCF
- {
- [ServiceContract]
- public interface IWCFServicio
- {
- [OperationContract]
- string ObtenerCursos(string cliente);
- [OperationContract]
- string ObtenerPreguntas(int curso, string cliente);
- [OperationContract]
- string ObtenerRespuestas(int pregunta, string cliente);
- [OperationContract]
- void IngresarCurso(string curso, string cliente);
- [OperationContract]
- int IngresarPregunta(string pregunta, int curso, string cliente);
- [OperationContract]
- void EliminarPreguntas(int curso, string cliente);
- [OperationContract]
- void IngresarRespuesta(string respuesta, int pregunta, int correcta, string cliente);
- }
- }
- <?xml version="1.0" encoding="utf-8" ?>
- <system.serviceModel>
- <behaviors>
- <serviceBehaviors>
- <behavior name="comportamientoServicio">
- <serviceMetadata />
- </behavior>
- </serviceBehaviors>
- </behaviors>
- <services>
- <service behaviorConfiguration="comportamientoServicio" name="ServidorWCF.WCFServicio">
- <endpoint address="http://localhost:9999/ServicioWCF" binding="basicHttpBinding"
- bindingConfiguration="" name="WCFEndPoint" contract="ServidorWCF.IWCFServicio" />
- <endpoint address="http://localhost:9998/met" binding="mexHttpBinding"
- bindingConfiguration="" name="MetadataServicio" contract="IMetadataExchange" />
- <host>
- <baseAddresses>
- <add baseAddress="http://localhost:9999/" />
- </baseAddresses>
- </host>
- </service>
- </services>
- </system.serviceModel>
Add Comment
Please, Sign In to add comment