# { sleep 4 ; ${gsoap_prefix}/bin/wsdl2h -c -t ${top_srcdir}/src/ws_typemap.dat -o $@ ${stagedir}${prefix}/interface/LB.wsdl; } || \
# { sleep 16 ; ${gsoap_prefix}/bin/wsdl2h -c -t ${top_srcdir}/src/ws_typemap.dat -o $@ ${stagedir}${prefix}/interface/LB.wsdl; }
-LB.xh: ws_typemap.dat ${stagedir}${prefix}/interface/LB.wsdl
- ${gsoap_bin_prefix}/wsdl2h -c -t ${top_srcdir}/src/ws_typemap.dat -I${stagedir}${prefix}/interface -o $@ ${stagedir}${prefix}/interface/LB.wsdl
+LB.xh: ws_typemap.dat ${stagedir}${prefix}/share/wsdl/glite-lb/LB.wsdl
+ ${gsoap_bin_prefix}/wsdl2h -c -t ${top_srcdir}/src/ws_typemap.dat -I${stagedir}${prefix}/share/wsdl/glite-lb -o $@ ${stagedir}${prefix}/share/wsdl/glite-lb/LB.wsdl
test.xml: test_xml
LD_LIBRARY_PATH=${cares_prefix}/${libdir}:${classads_prefix}/${libdir}:${LD_LIBRARY_PATH} ./test_xml
#define KEY_APP "application/x-dglb"
#define KEY_AGENT "User-Agent"
+#define WSDL_PATH "share/wsdl/glite-lb"
static const char* const response_headers_dglb[] = {
"Cache-Control: no-cache",
if (!(location = getenv("GLITE_LB_LOCATION")))
if (!(location = getenv("GLITE_LOCATION")))
{
- if (stat("/opt/glite/interfaces", &info) == 0 && S_ISDIR(info.st_mode))
+ if (stat("/opt/glite/" WSDL_PATH, &info) == 0 && S_ISDIR(info.st_mode))
location = "/opt/glite";
else
- if (stat("/usr/interfaces", &info) == 0 && S_ISDIR(info.st_mode))
+ if (stat("/usr/" WSDL_PATH, &info) == 0 && S_ISDIR(info.st_mode))
location = "/usr";
}
#define WSDL_LB4AGU "lb4agu.wsdl"
} else if (strncmp(requestPTR, "/?wsdl", strlen("/?wsdl")) == 0) {
char *filename;
- asprintf(&filename, "%s/interface/%s", glite_location(), WSDL_LB);
+ asprintf(&filename, "%s/" WSDL_PATH "/%s", glite_location(), WSDL_LB);
if (edg_wll_WSDLOutput(ctx, &message, filename))
ret = HTTP_INTERNAL;
free(filename);
/* GET /?types */
} else if (strncmp(requestPTR, "/?types", strlen("/?types")) == 0) {
char *filename;
- asprintf(&filename, "%s/interface/%s", glite_location(), WSDL_LBTYPES);
+ asprintf(&filename, "%s/" WSDL_PATH "/%s", glite_location(), WSDL_LBTYPES);
if (edg_wll_WSDLOutput(ctx, &message, filename))
ret = HTTP_INTERNAL;
free(filename);
/* GET /?agu */
} else if (strncmp(requestPTR, "/?agu", strlen("/?agu")) == 0) {
char *filename;
- asprintf(&filename, "%s/interface/%s", glite_location(), WSDL_LB4AGU);
+ asprintf(&filename, "%s/" WSDL_PATH "/%s", glite_location(), WSDL_LB4AGU);
if (edg_wll_WSDLOutput(ctx, &message, filename))
ret = HTTP_INTERNAL;
free(filename);
rm -rvf .libs LB.xh *.xml ${GSOAP_FILES_PREFIX}* *.o *.lo *.nsmap soap_version.h ${CEXAMPLES} ${TESTS}
rm -rvf log.xml rpmbuild/ RPMS/ tgz/ debian/
-LB.xh: ws_typemap.dat ${stagedir}${prefix}/interface/LB.wsdl
- ${gsoap_bin_prefix}/wsdl2h -c -t ${top_srcdir}/examples/ws_typemap.dat -I${stagedir}${prefix}/interface -o $@ ${stagedir}${prefix}/interface/LB.wsdl
+LB.xh: ws_typemap.dat ${stagedir}${prefix}/share/wsdl/glite-lb/LB.wsdl
+ ${gsoap_bin_prefix}/wsdl2h -c -t ${top_srcdir}/examples/ws_typemap.dat -I${stagedir}${prefix}/share/wsdl/glite-lb -o $@ ${stagedir}${prefix}/share/wsdl/glite-lb/LB.wsdl
soap_version.h:
${gsoap_bin_prefix}/soapcpp2 /dev/null