Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

C# web services and wsdl files

  • 11-03-2010 04:21PM
    #1
    Registered Users, Registered Users 2 Posts: 872 ✭✭✭


    Hi,

    I need to add contact enquiries from a website in a clients CRM system.

    I have a wsdl file that i need to incorporate into my VS project somehow.

    Do i need to make a web service and add the wsdl file to it ?

    Will this enable me to communicate with the web service on the other end ?

    Sorry, i'm totally lost on this one !

    Thanks for any tips.


Comments

  • Registered Users, Registered Users 2 Posts: 872 ✭✭✭grahamor


    Ah, found a solution, turns out it's easy.

    Just add a web reference ,point to the wsdl file and everything is automatically created.


  • Registered Users, Registered Users 2 Posts: 515 ✭✭✭NeverSayDie


    Off the top of my head; use the "Add web reference" tool in VS (it's in the Project menu or the context menu where the regular binary references are), point it towards the web service (ie, to the WSDL) and it'll generate proxy classes and references so you can access the web service's interface programatically.

    Edit; yeah, that's it :)


  • Registered Users, Registered Users 2 Posts: 627 ✭✭✭rossc007


    Hello Mate,

    If you add the wsdl to your project you'll be able to make use of the methods exposed by the clients web service. You should have a URL for the location of the wsdl e.g. http://testuri.com/someservice.asmx?wsdl

    Im assuming your building an application in VS, so in your IDE goto Project\Add Web reference, bang in the address of the wsdl in the URL box and Bob's your uncle.

    Let me know if you have any problems.

    Regards
    Ross


Advertisement