OpenLink Software Server 4.5 Manuel d'utilisateur Page 22

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 28
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 21
Virtuoso 4.5 Application and Integration Reviewers Guide
Copyright ©2006 OpenLink Software
22
member (method) to calculate the distance between points. Note that
"Point" class is computing the distance between two arbitrary points and the
arbitrary values 1 & 2 as input parameters for the Stored Procedure
"distance" whose definition is show below in Figure 28 – Distance Stored
Procedure.
Figure 28 – Distance Stored Procedure
CREATE procedure clr..distance (in x1 integer, in y1 integer, in x2
integer, in y2 integer)
returns float
{
return new DB.DBA.Point(x1, y1).distance (new DB.DBA.Point (x2, y2));
}
Step 8. Once the distance stored procedure has been created, we then publish the
procedure as a web service using the method previously shown in the section
Publishing SQL Stored Procedures as Web Services.
Step 9. Using the Virtuoso generated vsmx page, a SOAP Service can be invoked for
the procedure for testing as seen Figure 29 – Testing CLR UDT and
distance stored procedure and Figure 30 - Testing the SOAP
Operation, Distance.
Vue de la page 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 28

Commentaires sur ces manuels

Pas de commentaire