How To Call & Use a Webservice in .NET (C#)

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ย. 2024

ความคิดเห็น • 52

  • @nicholasfaz3793
    @nicholasfaz3793 ปีที่แล้ว

    Great video! Very quick example with all the information needed. How to create, initialize and call a wsdl, great stuff my guy!

  • @szghasem
    @szghasem 5 ปีที่แล้ว

    Thanks for your demo. The endpoint error fix you did in the config file saved my butt :)

  • @diwanbisht7079
    @diwanbisht7079 7 ปีที่แล้ว +2

    Very nice video...

  • @edwinfriasvlog
    @edwinfriasvlog 8 ปีที่แล้ว +2

    Excelente video, me ayudo bastante gracias.

  • @oleggut1989
    @oleggut1989 5 ปีที่แล้ว

    Very useful video. Thank you!

  • @letsplaydnd9575
    @letsplaydnd9575 5 ปีที่แล้ว

    thanks, works like a charm

  • @DukensteinA1
    @DukensteinA1 5 ปีที่แล้ว

    Great video!

  • @nelsonrivers8546
    @nelsonrivers8546 6 หลายเดือนก่อน

    Can you create a video on how to consume a SOAP-based Java Web Service from Visual Studio 2022 ?

  • @huckelberryfizzle
    @huckelberryfizzle 7 ปีที่แล้ว +1

    Thank you! I had that error and couldn't figure it out

  • @Amolrangg
    @Amolrangg 2 ปีที่แล้ว

    Thank you

  • @renemarais8887
    @renemarais8887 6 ปีที่แล้ว

    I like the simple version of a weather forecast you have made, but if only URL/Webservice was working in South Africa... I've tried SA weather services but still cannot recognize. In terms of getting the City/Coutry textboxes to link.

  • @Raigolill
    @Raigolill 7 ปีที่แล้ว

    Very nice and clear video. Unfortunately I am getting "Data not Found". You have any ideas what can be wrong?

  • @imdaboogyman815
    @imdaboogyman815 7 ปีที่แล้ว

    Great Video. Do you have one on how to parse the responce by using an xml doc?

  • @adrianotcc5663
    @adrianotcc5663 ปีที่แล้ว

    Hi.
    ACTUAL URL of global weather please. Thanks

  • @TheVallanes
    @TheVallanes 6 ปีที่แล้ว

    i made my own service, but when I use it my "client" variable doesn`t have the methods I created (like Add). It has methods with "Async" added instead (like AddAsync). Anyone has an idea why?

  • @ProperComment
    @ProperComment 7 ปีที่แล้ว

    Brilliant Introduction, but lot much information is missing.

  • @benhassineamira9569
    @benhassineamira9569 6 ปีที่แล้ว

    Comment résoudre" data not found " s'il vous plait???

  • @aymenmustapha4914
    @aymenmustapha4914 8 ปีที่แล้ว

    Merciii

  • @marcvandesandt7520
    @marcvandesandt7520 7 ปีที่แล้ว

    Thank you for the video, my application worked, although my result always returned "No Data Found"

    • @MrBalu711
      @MrBalu711 6 ปีที่แล้ว

      can u tell me changes in app

  • @olivervv5905
    @olivervv5905 7 ปีที่แล้ว

    Hallo :) Bei mir steht die ganze zeit "Data not Found" hast du eine Idee woran das liegen könnte ?

    • @olivervv5905
      @olivervv5905 7 ปีที่แล้ว

      Und wenn ich es auf der Webseite versuche (www.webservicex.com/globalweather.asmx?op=GetWeather) dann öffnet sich ein neuer tab mit dem Inhalt:
      Data Not Found

    • @DevChannelVideos
      @DevChannelVideos  7 ปีที่แล้ว

      +Oliver van Velzen hallo, vielleicht liegt es am WS selbst. Über den anderen www.webservicex.com/globalweather.asmx?op=GetCitiesByCountry funktioniert die Abfrage mit "Austria" zB.

    • @olivervv5905
      @olivervv5905 7 ปีที่แล้ว

      jedoch brauche ich das wetter von Berlin :)

    • @olivervv5905
      @olivervv5905 7 ปีที่แล้ว

      vielleicht eine andere Idee wie ich das lösen kann ?

    • @DevChannelVideos
      @DevChannelVideos  7 ปีที่แล้ว +1

      +Oliver van Velzen ok :-) versuche es sonst mit einem anderen Anbieter. ZB den hier: openweathermap.org/current . Da gibt es eine free Version mit 60 Aufrufe/Minute.

  • @MrBalu711
    @MrBalu711 6 ปีที่แล้ว

    returns data not found for me also

    • @MrBalu711
      @MrBalu711 6 ปีที่แล้ว

      replaced GetCitiesByCountry instead of GetWeather now works fine rply to mail balaram711@gmail.com

  • @marianpogor7786
    @marianpogor7786 6 ปีที่แล้ว +1

    return "Data not found"

    • @DevChannelVideos
      @DevChannelVideos  6 ปีที่แล้ว

      Hey, the webservice seems to be no longer available.

    • @DevChannelVideos
      @DevChannelVideos  6 ปีที่แล้ว

      You may want to look there too www.patrickschadler.com/calling-a-webservice-with-c/

    • @MrBalu711
      @MrBalu711 6 ปีที่แล้ว

      getting same not found message

  • @maishabotejue7112
    @maishabotejue7112 7 ปีที่แล้ว

    How can I call a web service using mvc?

    • @DevChannelVideos
      @DevChannelVideos  7 ปีที่แล้ว +1

      It's basically the same procedure. Try to add a service reference and then make the call in your data layer or wherever you want to do it :)

    • @maishabotejue7112
      @maishabotejue7112 7 ปีที่แล้ว

      DevChannel thnx ill try :-)

    • @maishabotejue7112
      @maishabotejue7112 7 ปีที่แล้ว

      an error is given when I try to add octopart.com/api/v3/parts/match as my service reference

    • @DevChannelVideos
      @DevChannelVideos  7 ปีที่แล้ว

      Hello, I have researched a bit and found out that octopart is using a rest webservices - which is not compatible as a service reference in vs. But they have a really good example on their homepage - just use this link octopart.com/api/docs/v3/overview#search and select csharp. You can also considering using RestSharp by adding this reference via nuget restsharp.org/

    • @maishabotejue7112
      @maishabotejue7112 7 ปีที่แล้ว

      DevChannel what i want to do is create a small form to insert the manufacturer part number and the supplier name and take some of the data.I have implemented this using ajax.But had problems when using c# for the same purpose.Thank you for your time :-) the C# code worked.Now Im changing it a bit to get the data that I need.

  • @peterrochard5607
    @peterrochard5607 6 ปีที่แล้ว

    What's the point of speaking English in the video when you have your Visual Studio in another language?

    • @DevChannelVideos
      @DevChannelVideos  6 ปีที่แล้ว +1

      Hi Peter, thanks for your question. The point is as simple as it could be - to reach out to as much people as possible. And don’t worry about the IDE Language, the main part is the code itself!

  • @bouletmarc
    @bouletmarc 7 ปีที่แล้ว +3

    put your visual studio in english, and redo the video .....

    • @DevChannelVideos
      @DevChannelVideos  7 ปีที่แล้ว +1

      hello, have a look at my blog entry about this topic. Completely in english for you sir :)
      www.patrickschadler.com/calling-a-webservice-with-c/