-//gsoap egeesec schema namespace: urn:calc
-//
-//gsoap egeesec service name: calc
-//gsoap egeesec service port: http://localhost:9999/
-//gsoap egeesec service namespace: urn:calc:wscalc
+//gsoap wscalc service name: CalcService
+//gsoap wscalc service type: Calc
+//gsoap wscalc service port: https://localhost:19999/
+//gsoap wscalc service namespace: urn:calc:wscalc
+//gsoap wscalc service documentation: Calculator service
-//gsoap egeesec service method-style: add rpc
-//gsoap egeesec service method-action: add ""
-int wscalc__add(double a, double b, double *result);
+//gsoap wscalc service method-documentation: add Adds two numbers
+int wscalc__add(double a, double b, struct wscalc__addResponse {
+double result; } * );
-//gsoap egeesec service method-style: sub rpc
-//gsoap egeesec service method-action: sub ""
-int wscalc__sub(double a, double b, double *result);
+//gsoap wscalc service method-documentation: sub Subtracts two numbers
+int wscalc__sub(double a, double b, struct wscalc__subResponse {
+double result; } * );
#include <glite_gsplugin.h>
#include "GSOAP_H.h"
-#include "wscalc.nsmap"
+#include "CalcService.nsmap"
static const char *server = "http://localhost:9999/";
#include <glite_gsplugin.h>
#include "GSOAP_H.h"
-#include "wscalc.nsmap"
+#include "CalcService.nsmap"
static struct option long_options[] = {
exit(1);
}
- if ( soap_bind(&soap, NULL, 9999, 100) < 0 ) {
+ if ( soap_bind(&soap, NULL, 19999, 100) < 0 ) {
soap_print_fault(&soap, stderr);
exit(1);
}
return 0;
}
-int wscalc__add(struct soap *soap, double a, double b, double *result)
+int wscalc__add(struct soap *soap, double a, double b, struct wscalc__addResponse *result)
{
- *result = a + b;
+ result->result = a + b;
return SOAP_OK;
}
-int wscalc__sub(struct soap *soap, double a, double b, double *result)
+int wscalc__sub(struct soap *soap, double a, double b, struct wscalc__subResponse *result)
{
- *result = a - b;
+ result->result = a - b;
return SOAP_OK;
}
#include <glite_gsplugin.h>
#include "GSOAP_H.h"
-#include "wscalc.nsmap"
+#include "CalcService.nsmap"
static struct option long_options[] = {
return 0;
}
-int wscalc__add(struct soap *soap, double a, double b, double *result)
+int wscalc__add(struct soap *soap, double a, double b, struct wscalc__addResponse *result)
{
- *result = a + b;
+ result->result = a + b;
return SOAP_OK;
}
-int wscalc__sub(struct soap *soap, double a, double b, double *result)
+int wscalc__sub(struct soap *soap, double a, double b, struct wscalc__subResponse *result)
{
- *result = a - b;
+ result->result = a - b;
return SOAP_OK;
}