Hi all,
When I try to get information about submitted job in condor pool via SOAP
API (getJobAds) with condorSchedd.wsdl, i received an error "permission
denied" but my getVersionString still work well.
This is my code (use gSOAP lib)
#include "stdio.h"
#include "soapH.h"
#include "condorSchedd.nsmap"
int main(int argc, char* argv[])
{
struct soap soap;
struct _ns1__getVersionString ns1__getVersionString;
struct _ns1__getVersionStringResponse
ns1__getVersionStringResponse;
struct _ns1__getJobAds ns1__getJobAds;
struct _ns1__getJobAdsResponse ns1__getJobAdsResponse;
soap_init(&soap);
char *myProxyHost = "192.168.50.130";
int myProxyPort = 1134;
soap.proxy_host = myProxyHost;
soap.proxy_port = myProxyPort;
if (soap_call___ns1__getVersionString(&soap,
NULL,
NULL,
&ns1__getVersionString,
&ns1__getVersionStringResponse
) == SOAP_OK)
{
printf("Response for getVersionString: %s\n",
ns1__getVersionStringResponse.response->message);
}
else
{
soap_print_fault(&soap, stderr);
}
if (soap_call___ns1__getJobAds(&soap,
NULL,
NULL,
&ns1__getJobAds,
&ns1__getJobAdsResponse
) == SOAP_OK )
{
struct ns1__Status* sp = ns1__getJobAdsResponse.response->status;
printf ("getJobAdsResponse.response->status: %s\n", sp->message);
}
else
{
soap_print_fault(&soap, stderr);
}
soap_destroy(&soap);
soap_end(&soap);
soap_done(&soap);
return 0;
}
This is something like my output:
Response for getVersionString: $CondorVersion: 6.8.5 May 17 2007 $
getJobAdsResponse.response->status: Permission denied
Please help me as soon as you can.
Thanks in advance!