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

Re: [Condor-users] wsdl and python examples



Carny,

There where once some Python examples that used the ZSI soap library, but they have long since rotted away. At the time (4 years ago?) the ZSI output had to be patched to work properly. I don't know what library you are using below, but you might try ZSI these days. Though I'd hope any built-in Python SOAP library would work fine.

Best,


matt

Carny Cheng wrote:
Hello,

I have 2 questions.
1. I have found many Java examples of connecting to condor via the web service. Are there any python examples?

2. The condorSchedd wsdl enter this infinite loop of initialization from the definition of the type "Status" in condorSchedd_types.py. Using both the condorSchedd.wsdl from the lib/webservices directory and the condorSchedd-6.7.5.wsdl from the website both give me the following error (the following is just an excerpt, it just continues on with the line 71 error). Is there something that I might be missing?

Traceback (most recent call last):
  File "condorSchedd_server.py", line 17, in <module>
    getVersionStringResponse = GED("urn:condor", "getVersionStringResponse").pyclass
  File "/usr/lib/python2.5/site-packages/ZSI/schema.py", line 15, in _get_global_element_declaration
    return SchemaInstanceType.getElementDeclaration(namespaceURI, name, **kw)
  File "/usr/lib/python2.5/site-packages/ZSI/schema.py", line 186, in getElementDeclaration
    typecode = cls.element_typecode_cache[key] = tcls()
  File "/home/carny/birdbath2/condorSchedd_types.py", line 407, in __init__
    TClist = [GTD("urn:condor","StringAndStatus",lazy=False)(pname=(ns,"response"), aname="_response", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
  File "/home/carny/birdbath2/condorSchedd_types.py", line 191, in __init__
    TClist = [GTD("urn:condor","Status",lazy=False)(pname=(ns,"status"), aname="_status", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns,"message"), aname="_message", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded"))]
  File "/home/carny/birdbath2/condorSchedd_types.py", line 71, in __init__
    TClist = [GTD("urn:condor","StatusCode",lazy=False)(pname=(ns,"code"), aname="_code", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns,"message"), aname="_message", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), GTD("urn:condor","Status",lazy=False)(pname=(ns,"next"), aname="_next", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded"))]
  File "/home/carny/birdbath2/condorSchedd_types.py", line 71, in __init__
    TClist = [GTD("urn:condor","StatusCode",lazy=False)(pname=(ns,"code"), aname="_code", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns,"message"), aname="_message", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), GTD("urn:condor","Status",lazy=False)(pname=(ns,"next"), aname="_next", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded"))]


Thanks,
Carny


-----------------
Carny Cheng
carny@xxxxxxx
_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at: https://lists.cs.wisc.edu/archive/condor-users/