locked
Metro Web Services Support RRS feed

  • Question

  • I see that I can build a Metro app and add a service reference.  It works but I see that a number of .NET 4.5 assembly references are added.  Does anyone know if WCF SOAP is supported in Metro, or must it be REST?

    Thank you!

    Shaun

    Friday, September 16, 2011 10:36 PM

Answers

  • SOAP is supported.  The references being added is known (and unnecessary because they are already implicitly included).  Keeping them in or removing them is fine.  If you find a service that isn't generating correct WCF proxy code, please post that service here!
    Tim Heuer | Program Manager, XAML | http://timheuer.com/blog/ | @timheuer
    Saturday, September 17, 2011 12:22 AM
  • Just on that, SOAP 1.1 is supported. SOAP 1.2 is not.
    Base Class Library Team (BCL) | My Blog: http://davesbox.com
    • Marked as answer by S Tonstad Saturday, September 17, 2011 10:04 AM
    Saturday, September 17, 2011 1:35 AM

All replies

  • SOAP is supported.  The references being added is known (and unnecessary because they are already implicitly included).  Keeping them in or removing them is fine.  If you find a service that isn't generating correct WCF proxy code, please post that service here!
    Tim Heuer | Program Manager, XAML | http://timheuer.com/blog/ | @timheuer
    Saturday, September 17, 2011 12:22 AM
  • Just on that, SOAP 1.1 is supported. SOAP 1.2 is not.
    Base Class Library Team (BCL) | My Blog: http://davesbox.com
    • Marked as answer by S Tonstad Saturday, September 17, 2011 10:04 AM
    Saturday, September 17, 2011 1:35 AM
  • I have an OData Service here, that I want to integrate in a Metro-style application. In the talk "Creating immersive data experiences with Entity Framework" the guys were showing exactly how to this now. I've used the DataSvcUtil Utility and got the expected proxy-code, but including it in a simple Metro application isn't working, because the various types from the System.Data.Services namespaces aren't found.

    Were they using a newer Version of the tools? I've installed the Visual Studio 11 Developer preview in addition to the express-edition, but it made no difference. Also Anders Heijlsberg did the communication with the Netflix OData feed completly manual using the HttpClient class and Linq-to-XML. I'm currently watching whatever talk that could be somehow related to this, for some information about that issue, but I couldn't get a definitive answer.

    While generating the query-strings wouldn't be that difficult, I'm currently not ready to do the XML mapping myself, if I don't have to. In the Object Browser I couldn't find any classes that match the existing DataServiceContext within Windows Runtime. So my guess it, that it isn't and will not be available, or I'm doing something wrong.


    /Edit:

    After watching Pablo Castro's talk, I found out that the necessary components exist, but are not ready for preview yet. Altough David DeWinter or Jeff Derstadt could have mention that in their demo.

    • Edited by Jonas Tihon Saturday, September 17, 2011 9:38 AM
    Saturday, September 17, 2011 8:07 AM
  • @Tim / @David

    Thank you for the insightful answers.  Does this mean that BasicHttpBinding WCF services are supported but NetTcpBinding services are not?

    Saturday, September 17, 2011 10:04 AM
  • Jonas - as you note OData support is not available in the preview via the "Add Service Reference" capability.
    Tim Heuer | Program Manager, XAML | http://timheuer.com/blog | @timheuer
    Saturday, September 17, 2011 11:53 PM
  • Although OData is used extensively in the Conference App.

    Could be a place for some inspiration on how to get OData going anyway.

    /peter

    Tuesday, September 20, 2011 9:16 AM
  • Hello Tim,

    We have a WCF service, which generates incorrect proxy:

    http://perpetuumsoft.com/demo/RSViewer_v2/demomsreportsservice.svc/mex

    if you add Service Reference in a MetroStyle Application (C#) you will see that most of the methods are missing.

    For example, if I add this ServiceReference in Visual Studio 10 I will be able to do the following:

    ServiceReference1.ReportServiceClient client = new ServiceReference1.ReportServiceClient();

    client.RenderWithCultureInfoAsync, client.GetDocumentInfoAsync, client.GetPageInfoAsync

    Methods mentioned above are not available in WinRT. They are generated in Silverlight and windows forms with no problems.

    Also I can't compile my app. I have to change generated code a little.

    Best Regards,
    Vitaliy Korney

    Friday, September 23, 2011 4:53 AM
  • Could you please send me the wsdl and the generated reference.cs at piyush dot joshi at microsoft.com? This could be a known issue in the preview build but I want to confirm. Also - you mentioned that you had to change the generated code a little - could you please describe what did you change? Thanks.
    - Piyush
    Friday, September 23, 2011 4:57 PM
  • >>Altough David DeWinter or Jeff Derstadt could have mention that in their demo.

     

    No kidding, I have been trying to get EF 4.2 working and just can't get there.  It would be nice if the team would come out and tell us "of what we saw in the videos, what does not work with the bits we have".

     


    Thanks, Terrence
    Wednesday, December 7, 2011 11:20 PM