locked
Failing to add Web Reference to WCF Service RRS feed

  • Question

  • User291891 posted

    Hello, everyone.

    I'm trying to get a proxy to my WCF Service online. Actually, it could also be an asmx web service, all I want is to consume it from my MacOS

    Anyway, the thing is, whenever I try to "Add Web Reference" by the URL, the Reference comes empty (it doesn't read the WSDL properly) Unless I explicitly point to the "?singleWSDL" option - in such a case I get an error when I try to build it:

    Error CS0234: The type or namespace name IClientChannel' does not exist in the namespaceSystem.ServiceModel'. Are you missing an assembly reference? (CS0234)

    Well, actually this is just one of the many similar errors.

    Is there something missing from my installation? What is going on?

    Monday, February 20, 2017 7:50 PM

All replies

  • User12211 posted

    @eapacheco said: Unless I explicitly point to the "?singleWSDL" option - in such a case I get an error when I try to build it:

    Error CS0234: The type or namespace name IClientChannel' does not exist in the namespaceSystem.ServiceModel'. Are you missing an assembly reference? (CS0234)

    Make sure you have added references to System.Runtime.Serialization, System.ServiceModel, and System.ServiceModel.Web.

    Monday, February 20, 2017 8:48 PM
  • User291891 posted

    Thank you, @DaveHunt that makes perfect sense. Now, it seems that those packages are only available in the .Droid and .IOS project. How could I use the Web Reference (and those packages) in the portable project?

    Monday, February 20, 2017 9:18 PM