DEBUG:=-g -O0 -DDEBUG
-CFLAGS:=${DEBUG} -I. -I${gsoap_prefix}/include -I${stagedir}/include
+CFLAGS:=${DEBUG} -I. -I${top_srcdir}/src -I${gsoap_prefix}/include -I${stagedir}/include
LDFLAGS:=-L${stagedir}/lib
LINK:=libtool --mode=link ${CC} ${LDFLAGS}
ps_prefix:=jpps_
is_prefix:=jpis_
+gsoap_version=`${gsoap_prefix}/bin/soapcpp2 -version 2>&1 | cut -d' ' -f4 | perl -F\\\\. -nae '$$F[2] =~ s/\D*$$//; print $$F[2]+100*$$F[1]+10000*$$F[0]'`
+
+CFLAGS+=-DGSOAP_VERSION=${gsoap_version}
+
+
SRCS:= simple_server.c soap_ops.c \
ftp_backend.c \
feed.c tags.c\
+ is_client.c \
${ps_prefix}ServerLib.c \
${is_prefix}ClientLib.c \
env_C.c
compile: ${daemon} ${example}
${daemon}: ${OBJS}
- ${LINK} -o $@ ${OBJS} ${COMMONLIB} ${GLOBUS_LIBS}
+ ${LINK} -o $@ ${OBJS} ${COMMONLIB} ${GLOBUS_LIBS}
${example}: ${EXA_OBJS}
- ${LINK} -o $@ ${EXA_OBJS}
+ ${LINK} -o $@ ${EXA_OBJS}
JobProvenanceIS.xh JobProvenancePS.xh: %.xh: %.wsdl JobProvenanceTypes.wsdl typemap.dat
cp ${jpproject}/JobProvenanceTypes.wsdl .
#
+simple_server.o: ${is_prefix}H.h ${ps_prefix}H.h
check:
-echo nothing yet
#include "jpps_H.h"
#include "jpps_.nsmap"
+#include "jptype_map.h"
+
static void usage(const char *me)
{
fprintf(stderr,"%s: [-s server-url] operation args \n\n"
fputs(reason,stderr);
putc(10,stderr);
assert(detail->__type == SOAP_TYPE__GenericJPFault);
+#if GSOAP_VERSION >=20700
+ f = ((struct _GenericJPFault *) detail->fault)
+#else
f = ((struct _GenericJPFault *) detail->value)
+#endif
-> jptype__GenericJPFault;
while (f) {
Revision history:
$Log$
+ Revision 1.1.1.1 2004/10/15 09:49:24 akrenek
+
+
Revision 1.1 2004/09/14 12:33:31 ljocha
*** empty log message ***
globus_prefix=${with.globus.prefix}
expat_prefix=${with.expat.prefix}
ares_prefix=${with.ares.prefix}
+gsoap_prefix=${with.gsoap.prefix}
thrflavour=${with.globus.thr.flavor}
nothrflavour=${with.globus.nothr.flavor}
cppunit=${with.cppunit.prefix}
#include "feed.h"
#include "jpis_H.h"
+#include "jpis_.nsmap"
int glite_jpps_single_feed(
glite_jp_context_t ctx,
printf("feed to %s, job %s\n",destination,job);
/* FIXME: check fault */
- soap_call_jpsrv__UpdateJobs(ctx->other_soap,destination,"",
+ // soap_call_jpsrv__UpdateJobs(ctx->other_soap,destination,"",
return 0;
--- /dev/null
+#if GSOAP_VERSION >= 20700
+#define INPUT_SANDBOX jptype__UploadClass__INPUT_SANDBOX
+#define OUTPUT_SANDBOX jptype__UploadClass__OUTPUT_SANDBOX
+#define JOB_LOG jptype__UploadClass__JOB_LOG
+
+#define OWNER jptype__AttributeType__OWNER
+#define TIME jptype__AttributeType__TIME
+#define TAG jptype__AttributeType__TAG
+
+#define EQUAL jptype__QueryOp__EQUAL
+#define UNEQUAL jptype__QueryOp__UNEQUAL
+#define LESS jptype__QueryOp__LESS
+#define GREATER jptype__QueryOp__GREATER
+#define WITHIN jptype__QueryOp__WITHIN
+#endif
+
#include "glite/jp/context.h"
#include "jpps_H.h"
-#include "jpps_.nsmap"
-#include "jpis_.nsmap"
+
+extern SOAP_NMAC struct Namespace jpis__namespaces[],jpps__namespaces[];
int main() {
struct soap soap;
#include "feed.h"
#include "jpps_H.h"
+#include "jpps_.nsmap"
+
+#include "jptype_map.h"
static struct jptype__GenericJPFaultType *jp2s_error(struct soap *soap,
const glite_jp_error_t *err)
f->jptype__GenericJPFault = jp2s_error(soap,ctx->error);
detail->__type = SOAP_TYPE__GenericJPFault;
+#if GSOAP_VERSION >= 20700
+ detail->fault = f;
+#else
detail->value = f;
+#endif
detail->__any = NULL;
soap_receiver_fault(soap,"Oh, shit!",NULL);