0

I have a WSDL file and I want to consume that.
I have added the reference of that file in a window application ServiceReference1.
Now there are two different classed one for request and another for response. I am not getting any method inside the request or response class.

Can any one guide me is there any thing I am doing wrong.

शेखर
  • 17,236
  • 13
  • 56
  • 110

2 Answers2

0

Don't look for the methods in the request or response. Look for them in the client.

Scott Hannen
  • 24,583
  • 3
  • 41
  • 53
0

You can use Reflection to get the methods of the Soap client like

Type type = obj.GetType();
var method = type.GetMethod("yourMethodName");
var attr = method.GetCustomAttributes(typeof(WebMethodAttribute), true);

Look at the SoapExtension Class and the article: Efficient Tracing Using SOAP Extensions in .NET

Also you can look at WebServiceStudio

Web Service Studio is a tool to invoke webmethods interactively. The user can provide a WSDL endpoint. On clicking button Get the tool fetches the WSDL, generates .NET proxy from the WSDL and displays the list of methods available.

Rahul Tripathi
  • 161,154
  • 30
  • 262
  • 319