Results 1 to 4 of 4

Thread: Consume a WCF or Web Service

  1. #1
    dmarkus100 is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.5
    Join Date
    Jul 2010
    Posts
    15
    Reputation
    84

    Consume a WCF or Web Service

    How can I consume a web service in VS2010 WP7? I try to use a WCF but can not get it to call the function - only offers functionAsync or similar? Have googled to my hearts content but can not find a solution. Thanks!

  2. #2
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    15,086
    Reputation
    2803
    WCF in Windows Phone only supports asynchronous methods, use a WithEvents variable or add event handlers with AddHandler statement. Each service method has an async method and a corresponding event that returns the result.
    How to format posts with code blocks etc - present the problem/post properly

    Visual Studio Community 2017

  3. #3
    dmarkus100 is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.5
    Join Date
    Jul 2010
    Posts
    15
    Reputation
    84
    that's great but can I use an existing Web Service as I did on a WM6 app?

  4. #4
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    15,086
    Reputation
    2803
    You can use a WCF client (service reference) with old soap service, if that is what you meant.
    How to format posts with code blocks etc - present the problem/post properly

    Visual Studio Community 2017

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •