[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Condor web service through java



Johnson koil Raj wrote:
Hi,

 While creating Condor Web service API using WSDL files..

 I have changed the setting in condor_config files as below..

ENABLE_SOAP               = TRUE
ENABLE_WEB_SERVER       = TRUE
WEB_ROOT_DIR              = $(RELEASE_DIR)/web
ALLOW_SOAP                = *
QUEUE_ALL_USERS_TRUSTED = TRUE

SCHEDD_ARGS             = -p 9661


My client file looks like this.

import java.net.*;
//import java.rmi.*;
import birdbath.ClassAd;
import birdbath.Schedd;

public class condorQueue {

  public static void main(String[] arr) throws MalformedURLException {
    try {

        int cluster = 203;
        int job = 2;
        URL url = new URL("http://10.201.42.242:9661";);

        Schedd schedd = new Schedd(url);
        ClassAd ad = new ClassAd(schedd.getJobAd(cluster,job));

         int status = Integer.valueOf(ad.get("JobStatus"));
          System.out.println(status);

       }catch (Exception e) { System.out.println(e);  }
       }

 }

 I got following errors in SchedLog File.

8/11 17:55:17 Received HTTP POST connection from <10.201.42.242:60495>
8/11 17:55:17 Current Socket bufsize=85k
8/11 17:55:17 Current Socket bufsize=49k
8/11 17:55:17 About to serve HTTP request...
8/11 17:55:17 SOAP entered getJobAd(), transaction: 0
8/11 17:55:17 SOAP call rejected, no permission for user
NULL/<10.201.42.242:0>
8/11 17:55:17 SOAP leaving getJobAd() result=1
8/11 17:55:17 Completed servicing HTTP request


 I am running the client code as root only. the client code is in side
the submitter  host only.

what went wrong, what i had to change.

 THANKS IN Advance.

by
Johnson

What's the output of condor_version?

ALLOW_SOAP should only define who is allowed access the SOAP interface, once you have access the standard ALLOW_READ/WRITE permissions are required for different operations.

Of course, it seems your Schedd and program are run on the same machine.

Best,


matt