pythoncom + set property

Discussion in 'Python' started by Fabien SK, Aug 22, 2003.

  1. Fabien SK

    Fabien SK Guest

    Hi,

    I am using "MSSOAP" as COM object and I would like to put a property to
    an object, but I can not make it work. My code looks like that:

    obj = win32com.client.Dispatch("MSSOAP.SoapClient30")
    obj.MSSoapInit("http://server/wsdl");
    obj.ClientProperty("ServerHTTPRequest") = 1

    But it doesn't work. "ClientProperty("ServerHTTPRequest")" should return
    a COM property that I should be able to get or set.
    I know that for simpler problem the work around is:

    obj.SetSomeProperty(123)
    print obj.SomeProperty(

    The problem is that I get the property by a function call, and win32com
    converts it directly to the value:
    print obj.ClientProperty("ServerHTTPRequest")

    >>> print type(obj.ClientProperty("ServerHTTPRequest"))

    <type 'bool'>

    If you have any idea...

    Fabien
     
    Fabien SK, Aug 22, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joshua Beall
    Replies:
    1
    Views:
    705
    Bertilo Wennergren
    Dec 10, 2003
  2. Noozer
    Replies:
    10
    Views:
    3,130
    Mitja
    Oct 13, 2004
  3. Hannes Grund

    Pythoncom shutdown problems

    Hannes Grund, Jul 27, 2003, in forum: Python
    Replies:
    1
    Views:
    462
    Michael Porter
    Jul 27, 2003
  4. Marc ENGEL
    Replies:
    0
    Views:
    542
    Marc ENGEL
    Jul 30, 2003
  5. Paul
    Replies:
    3
    Views:
    727
  6. Ashley

    PythonCOM help needed

    Ashley, Oct 22, 2003, in forum: Python
    Replies:
    0
    Views:
    475
    Ashley
    Oct 22, 2003
  7. John J. Lee

    pythoncom.connect()

    John J. Lee, Nov 21, 2003, in forum: Python
    Replies:
    2
    Views:
    700
    Peter Hansen
    Nov 23, 2003
  8. KJ
    Replies:
    0
    Views:
    244
Loading...