How to use WSDL and XSD in .net RRS feed

  • Question

  • Hi,

    I have added external WSDL file to my .net application. I am able to see the functions in the WSDL. My question is how to use those functions. For eg: I have GetRequest and GetResponse functions and i am not sure how to use this both....

    GetRequest req = new GetRequest();

    Getresponse res = (GetResponse) ..... Im struck here... Im not sure of how to use and access these functions....

    Kindly explain me about these. Any help would be appreciated... thanks

    Thursday, September 16, 2010 3:33 PM

All replies

  • you need to declare object of class first then through object you can access it's methods

    Form exmpla ABC is the class name in external wsdl


    ABC.GetRequest(); //autointelligence will show you parameters list if there is any for GetRequestion

    Mahain : http://mahenderpal.wordpress.com
    Friday, September 17, 2010 7:20 AM
  • Hi Mahendar,

    Thanks for your reply.

    The WSDL doesnt have any classes to declare it as object.  I have added it as Web reference and added to the class using the statement "using exterenalService;" 

    Now when I try using the methods and run the webservice, it is throwing error saying

    Line 1: <%@ WebService Language="C#" CodeBehind="exterenalService.asmx.cs" Class="ABC.XYZ.exterenalService" %>    :( :(

    Can anyone help me on this please

    Monday, September 20, 2010 11:23 AM