Skip to content

Calling any WCF service Task-based Async methods from Xamarin fails #2463

Open
@PhilPJL

Description

@PhilPJL

I have hit the same issue noted here https://bugzilla.xamarin.com/show_bug.cgi?id=51959

To reproduce

  1. Using VS 2017 15.5.2
  2. Create a Xamarin cross platform app and select '.NET standard option' and 'Android'
  3. Since it's not possible to add a web service reference to the shared assembly (will open separate bug) add a .NET standard 2.0 class library project to host the web service reference.
  4. Create a reference to a WCF service from the class library. Using basicHttpBinding will do.
  5. All methods in the service are async, which is fine, except calling one (called GetVersion in this case) results in:

Error in deserializing body of request message for operation 'GetVersion'. OperationFormatter encountered an invalid Message body. Expected to find node type 'Element' with name 'GetVersion' and namespace 'hexcel.com'. Found node type 'Element' with name 'GetVersionAsync' and namespace 'hexcel.com'

Metadata

Metadata

Assignees

Labels

BlockedIssues blocked from completion for some specific reason.XamarinIssues pertaining to Xamarin.toolingAn issues related to any tool shipped from this repo.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions