<div dir="ltr">Jim, the GUI behind VisualStudio is wsdl.exe. And that generates the proxy classes. You can do this by hand, if this VisualStudio black magic scares you. :)<br><br>wsdl.exe <your_wsdl_file><br><br>Create that in c# and compile it as a class library. Then use it from python like so:<br>
<br>clr.AddReference("WhatYouHave")<br>from ws.lists import lists<br><br>wsClient = lists()<br># setup network credentials the way you would<br># setup URL endpoint liket<br>wsClient.Url = "<a href="http://foo.com">http://foo.com</a>"<br>
wsClient.GetListItems(args)...<br><br>I have not compiled it, but it should work.<br><br>Hope that helps,<br> Miha.<br><br><div class="gmail_quote">2008/9/11 O'Leary, Jim <span dir="ltr"><<a href="mailto:Jim.O%27Leary@vancouver.ca">Jim.O'Leary@vancouver.ca</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">I'm pasting the vb.NET code.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">--------------------------vb.NET code
BEGINS-------------------------------------</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Dim aWebService As New ws.lists.lists' Web service<br>Dim
myCredentials As New System.Net.NetworkCredential<div class="Ih2E3d"><br>myCredentials =
System.Net.CredentialCache.DefaultCredentials<br></div>aWebService.Credentials =
myCredentials<br></font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">aXMLnode =
aWebService.GetListItems(args)</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">--------------------------vb.NET code
ENDS--------------------------------------</font></span></div>
<div><font color="#0000ff" size="2" face="Arial"></font> </div>
<div><span><font color="#0000ff" size="2" face="Arial">The
reason I want to do it in IronPython is to see how it can be done if you do not
use the GUI that Visual Studio provides for connecting a web service provider
and consumer. I think it will work if I can add the SOAPAction header, but how
do I do that? If I write:</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> <br></div></div></blockquote></div><br></div>