WCF using C#: Using metadata exchange

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

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

  • @majordan9747
    @majordan9747 4 ปีที่แล้ว

    thanks a lot.
    look to your sharing more programming experience.

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

    Thanks Nice Explanation

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

    do you know how to get the metadata from a song(can be a file mp3) in c?

  • @steph8804
    @steph8804 8 ปีที่แล้ว +1

    same as others...it doesn't work as its shown in the video...have tried what others have suggested and its still not working properly
    UPDATE: OK, I have it working properly exactly as he has it setup...the key was to listen to what he said before running it--he said you had to run it "Not in Debug Mode" which means you have to use CTRL+F5 instead of F5. Then while its still open you go and right click on ProductsClient and then Add Service Reference...type in localhost:9999/mex and it works exactly as shown.

  • @welingtonws
    @welingtonws 9 ปีที่แล้ว

    It does not work. After trying to add service reference I get this error: There was an error downloading 'localhost:9999/mex/_vti_bin/ListData.svc/$metadata'.
    The request failed with HTTP status 400: Bad Request.
    Attribute 'contract' is required on element 'endpoint'.
    If the service is defined in the current solution, try building the solution and adding the service reference again.

    • @welingtonws
      @welingtonws 9 ปีที่แล้ว

      +welingtonws Just found the solution.... I had to create a base address and reconfig Mex and ServiceProduct endpoints do agree with that base address (replacing to /mex for ex, instead of the complete address). In the serviceMetadata behavior I set HttpGetEnabled to True and HttpGetUrl to the absolute address (localhost:9999/mex). On my client app.config, I had to create the attribute contract on endpoint node like this: contract="*". Only then I could reference the service.

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

      can you show your code...your description is pretty vague...

  • @parkromanson906
    @parkromanson906 9 ปีที่แล้ว

    It doesn't work , can you please share your code.

  • @BDMSydney
    @BDMSydney 10 ปีที่แล้ว

    Hi Jesse,
    Many thanks for your videos, there are very practical and useful.
    I've done everything exactly same as your video but when I want to add service refrence to client I get this error :
    There was an error downloading 'localhost:9999/mex/_vti_bin/ListData.svc/$metadata'.
    The request failed with HTTP status 400: Bad Request.
    Metadata contains a reference that cannot be resolved: 'localhost:9999/mex'.
    Metadata contains a reference that cannot be resolved: 'localhost:9999/mex'.
    If the service is defined in the current solution, try building the solution and adding the service reference again.
    I've checked my config file it's exactly same as yours, my service and VS are running as administrator.

    • @PATHAKROHIT08
      @PATHAKROHIT08 10 ปีที่แล้ว

      Have you set httpGetEnabled=true ?