From 6200aff1f8db81e758359ef52dec88fab3b0d59e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Wed, 10 Aug 2005 08:53:08 +0000 Subject: [PATCH] Make it build --- org.glite.jp.primary/examples/jpps-test.c | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/org.glite.jp.primary/examples/jpps-test.c b/org.glite.jp.primary/examples/jpps-test.c index 857699c..20135c5 100644 --- a/org.glite.jp.primary/examples/jpps-test.c +++ b/org.glite.jp.primary/examples/jpps-test.c @@ -29,8 +29,9 @@ static void usage(const char *me) " RegisterJob jobid owner\n" " StartUpload jobid class commit_before mimetype\n" " CommitUpload destination\n" - " RecordTag jobid tagname sequence stringvalue\n" - " GetJob jobid\n" + " RecordTag jobid tagname stringvalue\n" + " GetJobFiles jobid\n" + " GetJobAttr jobid attr\n" " FeedIndex destination query_number history continuous\n" " FeedIndexRefresh feedid\n" ,me); @@ -156,19 +157,17 @@ int main(int argc,char *argv[]) struct _jpelem__RecordTag in; struct _jpelem__RecordTagResponse empty; struct jptype__tagValue tagval; + struct jptype__stringOrBlob val; int seq = 0; - if (argc != 6) usage(argv[0]); + if (argc != 5) usage(argv[0]); in.jobid = argv[2]; in.tag = &tagval; tagval.name = argv[3]; - seq = atoi(argv[4]); - tagval.sequence = &seq; - tagval.timestamp = NULL; - tagval.stringValue = argv[5]; - tagval.blobValue = NULL; + tagval.value = &val; + val.string = argv[4]; if (!check_fault(soap, soap_call___jpsrv__RecordTag(soap, server, "",&in, &empty))) { @@ -212,14 +211,14 @@ int main(int argc,char *argv[]) } } #endif - else if (!strcasecmp(argv[1],"GetJob")) { - struct _jpelem__GetJob in; - struct _jpelem__GetJobResponse out; + else if (!strcasecmp(argv[1],"GetJobFiles")) { + struct _jpelem__GetJobFiles in; + struct _jpelem__GetJobFilesResponse out; if (argc != 3) usage(argv[0]); in.jobid = argv[2]; - if (!check_fault(soap,soap_call___jpsrv__GetJob(soap,server,"", + if (!check_fault(soap,soap_call___jpsrv__GetJobFiles(soap,server,"", &in,&out))) { int i; @@ -235,6 +234,11 @@ int main(int argc,char *argv[]) } } + else if (!strcasecmp(argv[1],"GetJobAttr")) { + + if (argc != 4) usage(argv[0]); + /* TODO */ + } else usage(argv[0]); return 0; -- 1.8.2.3