SOAP and wsdl
-
I have a .wsdl file and I want to get information from it. I have tried the following:
[System.Web.Services.Protocols.SoapRpcMethod( RequestNamespace = "somehttp", ResponseNamespace = "somehttp")] [return: System.Xml.Serialization.SoapElementAttribute("return")] public className get_attr(string username, string password) { object[] me = new object[] { username,password }; object[] results = this.Invoke("get_attr",me); return ((className)(results[0])); }
Of course, somehttp is a valid http:// address, and get_attr is an operation name inside the .wsdl. When I run this, the "className" object I return is empty (not null, just empty). What would be the simplest way to get information from the .wsdl and also, is C# (without ASP.Net) able to accomplish this. Thanks for all the help. Mike - I love to program! -- modified at 17:27 Thursday 16th March, 2006