Bug 55884 - MetadataExchangeClient fails to process faults for Google AdWords web services
Summary: MetadataExchangeClient fails to process faults for Google AdWords web services
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: WCF assemblies (show other bugs)
Version: 5.0 (2017-02)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-05-02 11:38 UTC by Alexey Skalozub
Modified: 2017-09-06 16:55 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 55884 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Alexey Skalozub 2017-05-02 11:38:29 UTC
When processing metadata for Google AdWords web services, it fails with error:

System.InvalidOperationException: Metadata contains a reference that cannot be resolved : https://adwords.google.com/api/adwords/cm/v201607/AdGroupAdService?wsdl ---> System.ServiceModel.CommunicationException: Received an invalid SOAP Fault message ---> System.Xml.XmlException: Reason is missing in the Fault message
  at System.ServiceModel.Channels.MessageFault.CreateFault12 (System.ServiceModel.Channels.Message message, System.Int32 maxBufferSize) [0x0014e] in <727ba4b068ab428bafcc805884918f1b>:0 
  at System.ServiceModel.Channels.MessageFault.CreateFault (System.ServiceModel.Channels.Message message, System.Int32 maxBufferSize) [0x0001c] in <727ba4b068ab428bafcc805884918f1b>:0 

Minimal code to reproduce issue:

  using System;
  using System.ServiceModel;
  using System.ServiceModel.Description;

  class Untitled
  {
    static void Main(string[] args)
    {	
      var metadataBinding = new BasicHttpsBinding()
      {
        MaxReceivedMessageSize = int.MaxValue,
        TransferMode = TransferMode.Streamed
      };
      var metadataClient = new MetadataExchangeClient(metadataBinding);
      metadataClient.GetMetadata(new Uri("https://adwords.google.com/api/adwords/cm/v201607/AdGroupAdService?wsdl"), MetadataExchangeClientMode.HttpGet);
    }
  }

The code above works on Windows/.NET framework, but fails on Mono.