I've got web service http://www.mcommunicator.ru/m2m/m2m_api.asmx?WSDL
And I've got a problem with connecting to it from Visual Studio 2015
in my Web API project
There is no "Add web reference" anymore
I've tried to add is with:
References-> Add connected Service -> WCF Service - Preview
It finds 1 web service by my address, but I get an error when click finish.
I guess it's not a WCF service, that's why I get an error.
But I don't see any other ways to add it. Please, help me.
To add the SOAP service references for clients built on top of WCF for .NET Core 1.0 install the extension Visual studio WCF Connected Service via the “Extensions and Updates” dialog box.
After installed, In Solution Explorer, right-click on the References project item and then click on the Add Connected Service option.
The Add Connected Service dialog box appears and you should have a new option "WCF Service - Preview".
Related
I have a VB.NET Core app I'm trying to connect to a remote WCF service. When I try going through the "Add Connected Service" routine, no services are listed and a message shows up saying that:
no connected service is supported for the current project type.
I tried installing the WCF Web Service Reference Provider extension - which IIUC shouldn't be required anymore since 15.5 - but it made no difference.
What am I doing wrong here?
First, Uninstall the "WCF Web Service Reference Provider" by going into through Tools -> Extensions and Updates menu in VS. This has been in VS since the release of VS 15.5.5. So if you have 15.5.7 then having the extension installed could be causing issues.
I created a .Net core application and when I click on the "Connected Services" link I get the following screen.
Then when I click the "Microsoft WCF Web Services Reference Provider" link I get the following screen.
I am running VS 15.5.7, so you should see the same screens. What do you get when you do the same steps? Can you post some screen shots?
Sorry I could not go past this screen, I did not have a WCF web service I could access to see what the next steps are. If you have issues following the steps above, please post more details about what you are seeing (screenshots would help). Also, if you have a URL to a public WCF service please post it so I can see if I have the same issue you are having.
So it looks like when the .NET Core project is in VB.NET the WCF Web Service Reference Provider isn't available. Quite disappointing if you ask me. :(
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.
I'm working through an example on a website to create and consume a WCF service. I've created the service which is hosted in a windows application.
As per the instructions on the site I've created a ClientApp console app within in the same Visual Studio solution. Now the problem is that I cannot create a service reference to the WCF host project.
If I run the host project the Service is switched on and I can verify this by visiting the url in my browser. However, I cannot add a service reference to my client project while another project is running. The "Add Service Reference" option is greyed out. Presumably this is since they're in the same solution in Visual Studio.
If I try and add the reference when the host project is not running then I can get into the "Add Service Reference" screen but no services can be found (presumably because the WCF service is no longer running
How can I get around this?
The solution explorer is as in the image:
You could also try to start the WCF service in Visual Studio, then select "Detach All" from the Debug menu. This should let the service continue to run in the background, yet open Visual Studio to let you add service references.
In the Add Service Reference dialog, click the Discover button and select Services in Solution:
I have a solution which contains :
- a website hosted on my local IIS
- a project that defines a WCF web service
- 2 other projects which are assemblies used by the website
I added a console application to quickly test the webservice but when I right click on the project, context menu doesn't contains the "add service reference" entry (but it's present when I right click on the website).
I had done this in the past without problem, why doesn't it work anymore ?
Edit :
If I create a new console project in an empty solution, I can add a service reference.
I have an issue consuming the webservice, basically i have the following webservice which i would like to consume in my web application, but everytime i try in my solution to add it i get an error.
Here is the link to service: http://www.webservicex.net/ConvertAcceleration.asmx?WSDL
Here is the website of the service: http://www.webservicex.net/WS/WSDetails.aspx?WSID=39&CATID=13
In my solution I click on "Service References" with the right mouse button and choose for "Add Service Reference" I fill in the link and click on "GO".
But I can't add it it just say "The HTML document does not contain Web service discovery information."
And it is in VS2008 Framework .NET 3.5
So any idea?
As far as I remember in Visual Studio 2008.
You needed to
click Advanced
Add Web Reference...
enter the wsdl
add reference