Any help would be greatly appreciated!! I have scoured the web trying to find an answer. I am writing a UWP app that will be deployed to the Xbox platform. I need to access a web service written in .Net 2.0. In earlier versions of .Net / Visual Studio the Add Web Reference Button was hidden in a panel accessed through ->Add Service Reference ->Advanced ->Add Web Reference. With latest build of VS2015 the Add Web Reference Button is missing. Did this completely go away or is it hidden even deeper in the environment somewhere?
XML Web Services, also known as ASMX services, were the predecessor of Windows Communication Foundation (WCF). You can access Web Services by adding a service reference just as you would for any other WCF service.
A service reference enables a project to access one or more Windows Communication Foundation (WCF) services. Use the Add Service Reference dialog box to search for WCF services in the current solution, locally, on a local area network, or on the Internet.
For more info, please How to: Add, Update, or Remove a Service Reference.
Related
I've created a project of type "gRPC Service C#" in Visual Studio 2019. Can I add (and host) web pages to that project? or should I create another one (and what type of project)?
I want to use these web pages as interface with gRPC services (not call them directly from a web browser). Thank you in advance for your help.
Looks like it's possible by using a Worker but it's a lot of pain. Good practice is having a worker or IIS to host gRPC service and a web application on another project.
I know there are a lot of questions like this, but none of them solved my problem.
I have a Windows Phone project, with some associated projects. I need to create a new project with the service reference, but I can't add it.
I found a link where they said to install a component from Add Connected Service > find other services > WCF Services but it says that my project is not supported.
Which kind of project must I create? I have in the same solution a project which has the right-click > add service reference but I was not the creator and I don't know what kind of project it is.
PS:
- I can't right click > Add service reference, I tried it in both project name and reference name.
- I need a Windows Phone Stuff. I link what i mean with a picture:
PSS: The destination version of windows phone is not the reason. I tryed changing the WP8.0 into WP8.1 and I can still add the ref
Does anyone know which kind of project I have to add for being able to add service ref?
Thanks
Instead of using Service Reference would suggest you to switch to the Windows recommended REST API endpoints instead. As now Windows is focusing more on REST service consumption than adding service reference that was available earlier.
Sadly now Windows Phone Store apps in Windows Phone 8.1 do not support the System.ServiceModel namespace generated by the Add Service Reference menu. Hence they have removed the option Add Service Reference.
To be able to use it you will have to create a Silverlight application and use this Workaround of using a WCF service.
You can find a MSDN Forum discussion of the same.
I am currently trying to set up a WCF Data Service Client using Visual Studio 2013 Desktop. The following guide shows how to set it up as a console application, but every-single-time I try to add a Service Reference VS says:
Unable to add a service reference to the specified OData feed because
WCF Data Services is not installed for this target framework. To install
a supported version of WCF Data Services, see
http://go.microsoft.com/fwlink/?LinkId=253653.
Is there something I am missing or is it even possible? I've added and tried multiple different different References for the WCF data to no avail. Suggestions?
Though op question has been resolved, I am adding this answer so that it can help any other with the same problem.
The solution is to to download and install WCF Data Service RTM Tools as suggested in link provided by Microsoft in error itself.
More more details refer:
http://www.microsoft.com/en-us/download/details.aspx?id=39373
http://msdn.microsoft.com/en-us/jj658961
I'am new to Mono and currently working on Mono for Android. I want to re-use the core or services layer so I created a separate project for services layer so I can use it later for iPhone and Windows mobile apps. In the services project there are some references to the web services which are call for various transactions.
When I try to call the the web service by referencing the services project from a Mono Android application I revived "System.TypeLoadException: Could not load type xxxx" exception.
The web services and the service project are working fine when tried it with a simple windows app.
Is there any way to achieve this.
I tried to link classes as mentioned in following article .
http://docs.xamarin.com/Android/Guides/Application_Fundamentals/Building_Cross_Platform_Applications/Sharing_Code_Options
Bit I found that web service referenced and resource file references, etc are not referring when you link a class. Example if I link a class in project B from Project A, if the class has web service calls and referenced resource files, once you linked to project A you'll get build errors. Saying the web services and resource files are can not be found. I linked the resource files as well. But still I revived the same errors.
Any help on these issues are greatly appropriated. Thanks.
If you are any good at French... then the sample at http://www.e-naxos.com/Blog/post/Strategie-de-developpement-Cross-Platform-Partie-2.aspx (and http://www.e-naxos.com/Blog/post/Strategie-de-developpement-Cross-Platform-Partie-3.aspx) has some good information on sharing web service references between windows, windowsphone and monodroid
The key thing the author does is to import the web references separately for the two different paltforms - and to then use one #if to separate the different code.
I did start translating it... https://docs.google.com/document/d/1UQsy80qmXkVO7BRUb3f3vUxO2uQz9af1_PIQykAGzJA/edit - but pigeon English at best I'm afraid!
I have some web services that I need to reference in a Windows 8 Metro style application, normally you can just add a reference to the service via VS2012, but the services are behind a security layer.
I have downloaded the .WSDL file to my local PC, and now I need to generate the class file for this service.
The WSDL.exe that I have found on my local PC is for .NET 4.0 and produces code that is not suitable for the .NETCore framework. Is there a WSDL.exe equivalent for Windows 8 apps?
Visual Studio 2012 can obviously add a reference to non-secure asmx WSDL web services, so the functionality must be somewhere.
As per little investigation, the original .NET 1.x asmx-based Web Reference proxies are not supported in Metro style apps.
Web Service with SOAP 1.1 end point is supported by Add Service Reference (right-click on a project and choose Add Service Reference) in Metro style apps.
A workaround should be remove the offending constructor that fails to build (unfortunately, you'll need to do that everytime you regenerate the code), and to pass an instance BasicHttpBinding and EndpointAddress to one of the constructors of the WSFTerminalsSoapClient.
Have a look at following references, which might help you in this regard:
Web Services from WinRT Metro
WCF in Windows 8 Metro styled apps? Absolutely supported
I found out how to do this if anyone is interested.
You simply download the XML WSDL file from the site via a normal browser.
Then in VS2012, you can add a service reference to that file directly (i.e. put in the full path to the file c:\tmp\mywsdl.xml) and it will be able to generate the proxy for you.