Python....

2013-03-28 Thread richard....@bwc.state.oh.us
Has anyone created/used a Python interface to a Remedy system? If so, could
you contact me offlist? Thanks.
Portions of this message may be confidential under an exemption to Ohio's 
public records law or under a legal privilege. If you have received this 
message in error or due to an unauthorized transmission or interception, please 
delete all copies from your system without disclosing, copying, or transmitting 
this message.

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Python and Web Services

2008-01-10 Thread Carlos Ungil
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="0001"

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"


Python and Web Services

2008-01-10 Thread Frank Caruso
Has anyone written any Python code to call a Remedy web service that they
would be willing to share?

Thank you

Frank

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