On Jan 10, 2008 3:55 PM, Frank Caruso <[EMAIL PROTECTED]> wrote:
> ** Has anyone written any Python code to call a Remedy web service that they
> would be willing to share?

The following code might be useful as a starting point (of course you
need to replace the XXX, YYY, ZZZ with the actual details of your
system and make other changes as needed), in this script the OpGetList
operation retrieves the details of a particular ticket (selected using
the Case_ID field).

Cheers,

Carlos

from SOAPpy import *

caseid="0000000000000001"

username="XXX"
password="XXX"

namespace = "urn:ZZZ"
url = "https://XXX/arsys/services/ARService?server=YYY&webService=ZZZ";

header = 
headerType(data={"AuthenticationInfo":{"username":username,"password":password}})

server = SOAPProxy(url,namespace)._hd(header)

for entry in server.OpGetList(Case_ID=caseid):
   for k in entry._keys():
      print k, " : ", entry.__getitem__( k )
   print

> Thank you
>
> Frank
>  __Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"
> html___

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Reply via email to