pythoncom + set property

F

Fabien SK

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")
<type 'bool'>

If you have any idea...

Fabien
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top