Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

C# web services and wsdl files

  • 11-03-2010 3: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