• Non ci sono risultati.

Appendice B: Web Service ReportGenerator

N/A
N/A
Protected

Academic year: 2021

Condividi "Appendice B: Web Service ReportGenerator"

Copied!
3
0
0

Testo completo

(1)

96

Appendice B: Web Service

ReportGenerator

using System; using System.Collections; using System.ComponentModel; using System.Configuration; using System.Data; using System.Diagnostics; using System.Web; using System.Web.Services; namespace Statini.Admin { /// <summary>

/// Generate reports for registered exams. /// </summary>

[WebService(Namespace="http://di.unipi.it/webservices/")]

public class ReportsGenerator : System.Web.Services.WebService { public ReportsGenerator() {

InitializeComponent(); }

#region Component Designer generated code //Required by the Web Services Designer private IContainer components = null;

(2)

97 /// <summary>

/// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary>

private void InitializeComponent() { }

/// <summary>

/// Clean up any resources being used. /// </summary>

protected override void Dispose( bool disposing ) { if(disposing && components != null) {

components.Dispose(); }

base.Dispose(disposing); }

#endregion

/// <returns>the number of generated reports</returns>

[WebMethod(Description="Generate and email to teacher report of recent grades")]

public int GenerateForProfessors() {

Report rep = new Report(this.Server.MapPath("")); try {

return rep.GenerateForProfessors(Global.esami); } catch (Exception ex) {

string email =

(3)

98 if (email != "")

rep.Send(email, "Error on generation", ex.ToString()); } return 0; } /// <summary> /// /// </summary>

/// <returns>the number of generated reports</returns> [WebMethod(Description="Generate and upload to admin server file with recent grades")]

public int GenerateForSecretary() {

Report rep = new Report(this.Server.MapPath("")); try {

return rep.GenerateForSecretary(Global.esami); } catch (Exception ex) {

string email =

(string)ConfigurationSettings.AppSettings["helpMail"]; if (email != "")

rep.Send(email, "Error on generation", ex.ToString());

}

return 0; }

Riferimenti

Documenti correlati

In questa appendice sono riportate le tavole da disegno dei componenti degli stampi, che sono stati utilizzati per creare i pezzi della camera d'aria e della

Concentriamoci meglio su come sono state settate queste variabili nel caso dei web service: nel percorso di default (cioè quello iniziale quando si apre la pagina per

In order to enhance fault management in complex services, we propose to add a diagnoser Web Service that receives information about the execution of all the orchestrated services,

In order to enhance fault management in complex services, we propose to add a diagnoser Web Service that receives information about the execution of all the orchestrated services,

Web-service definitions-interface Web-service providers Web-service access UDDI Planner XML Schemas XML return Schemas Business Process specification Domain Model

We may discern between two streams in web service matching for the purpose of web service discovery: those based on WSDL using classical information re- trieval techniques, such as

Un progetto più ambizio- so, BPEL4WS (Business Process Execution Language for Web Service), definisce un lin- guaggio di composizione tra servizi che può anche essere utilizzato

• Linked Open Data: (usually large) data repositories available on the web (for free or not), expressed using the RDF model. • Interoperability between these repositories (how to