Your original one does:
C:\>type ws.py
from SOAPpy import WSDL
wsdlFile = '
http://www.xmethods.net/sd/2001/TemperatureService.wsdl'
server = WSDL.Proxy(wsdlFile)
print server.getTemp('90210')
C:\>python ws.py
-999.0
C:\>wsdl /language:cs
http://www.xmethods.net/sd/2001/TemperatureService.wsdl
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation. All rights reserved.
Warning: This web reference does not conform to WS-I Basic Profile v1.1.
R2706: A wsdl:binding in a DESCRIPTION MUST use the value of "literal"
for the use attribute in all soapbind:body, soapbind:fault,
soapbind:header and soapbind:
headerfault elements.
- Input element soapbind:body of operation 'getTemp' on portType
'TemperatureBinding' from namespace
'
http://www.xmethods.net/sd/TemperatureService.wsdl'.
- Output element soapbind:body of operation 'getTemp' on portType
'TemperatureBinding' from namespace
'
http://www.xmethods.net/sd/TemperatureService.wsdl'.
For more details on the WS-I Basic Profile v1.1, see the specification
at
http://www.ws-i.org/Profiles/BasicProfile-1.1.html.
Writing file 'C:\TemperatureService.cs'.
C:\>type ws.cs
using System;
public class Test
{
public static void Main(string[] args)
{
TemperatureService ts = new TemperatureService();
Console.WriteLine(ts.getTemp("90210"));
}
}
C:\>csc ws.cs TemperatureService.cs
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
C:\>ws
-999
Arne