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.
Related
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".
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'm using a RateServiceWebReference Web Reference in one solution that I downloaded from FedEx's Rate Web Service. It's a console application and I have it wired up so that everything works nicely (including the proxy class and other model class types).
What I want to do now is to copy this web reference from the console application on to my development web application.
What I've tried so far:
I tried copying whatever was in the web references folder over from the console app to the web app.
The folder icon in my solution explorer is a regular folder icon under "Web References" instead of a web reference icon.
I need to tell it that the folder is actually a web reference.
I tried adding a web reference and I put in the TEST endpoint (https://wsbeta.fedex.com:443/web-services/rate) and it gives me an error 405 method not allowed.
I'm open to alternatives.
I found out how to do it. Instead of copying the Web Reference itself, I took the WSDL, created a test website that pointed to it, and added the web reference to the new solution. It works like a charm.
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
Im new to .net and I have my website solution and I added my database WCF service to the solution, how can i reference the service's interfaces? I will be making changes to the service as i develop, do I have to build/Deploy the service every time or can i just reference the .svc file somehow?
[nkvu - moving out of the comments & as an answer in case it needs to be found later...]
If your WCF service is a separate project in the same solution as your web project then you should be able to follow the instructions here under the "To add a reference to a service in the current solution" heading...After you make changes you can just use the instructions under "Update a Service Reference" to make sure your web project is in sync with the service changes