Yes, this should work no differently than it does from a C# app. Just import the web service ('Add Web Reference...') and use it. e.g. in you python code for a page, you could have:
from localhost import *
def Page_Load():
ws = WebService()
Response.Write(ws.HelloWorld())
Just adapt 'localhost' and 'WebService' to your specific scenario.
davidmontgom...
0 Points
2 Posts
web service client with IronPython
Jan 06, 2007 01:10 AM|LINK
The main asp.net/ironpython page says that IronPython cannot be used for developing web services.
Can it be easily used for a webservice client? That is, is there an easy way to take the wsdl to generated callable web methods?
Thanks much,
David
davidebb
Contributor
7006 Points
1366 Posts
Microsoft
Re: web service client with IronPython
Jan 08, 2007 02:58 AM|LINK
Hi David,
Yes, this should work no differently than it does from a C# app. Just import the web service ('Add Web Reference...') and use it. e.g. in you python code for a page, you could have:
from localhost import *
def Page_Load():
ws = WebService()
Response.Write(ws.HelloWorld())
Just adapt 'localhost' and 'WebService' to your specific scenario.
thanks,
David
davidmontgom...
0 Points
2 Posts
Re: web service client with IronPython
Jan 11, 2007 07:53 PM|LINK