Omnis Studio and Python

Derek Delpero derek.delpero at gmail.com
Mon Dec 22 12:53:51 EST 2014


Hi,

Here's an example using a get request:

import httplib
conn = httplib.HTTPConnection("172.16.25.133:5921")
conn.request("GET","/Ultra?OmnisLibrary=TestLibrary&OmnisClass=TestRemoteTask&test_parameter=1")
res = conn.getresponse()
data = res.read()
conn.close()

Hope that helps,

Derek


On Mon, Dec 22, 2014 at 10:54 AM, Grzegorz (Greg) Pasternak <
grzegorz at niagara.com> wrote:
>
> Hello;
> I am looking for some help re: Omnis Studio 4.x and up with Python.
> Specifically I would like to run Python script against Omnis library using
> HTTP ultra approach.
> In archives I found reference to
> Integrating Python With Omnis
> http://omniscentral.com/integrating-python-with-omnis
> but I can't seem to get more information.
> I think this is the line in Python script that needs additional info about
> Omnis library and Remote task class name:
>
> resp = requests.post(url=URL,data=request, auth=(USERNAME,PASSORD))
>
> Is anybody out there who has some experience with this and can help?
> Please let me know,
> Regards;
> Greg
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
>



More information about the omnisdev-en mailing list