I opened C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE
I added http://localhost:44652/MyService.svc
It says added successfully but I see absolutely nothing in the test client, it looks the same as if I first opened it.
Not sure why it would do that. Here's my PC setup:
Windows 7 64 bit
VS 2012
WCF 4
I am using WebGet and WebInvoke for the REST portion but we want to also support wsdl
Web endpoints (aka REST) do not expose metadata that the WCF Test Client can understand. There's a similar issue discussed here.
1) Please go to your browser and go to
http://localhost:44652/MyService.svc
You should see a web page that says "There is a service here."
2) Then you can use advanced rest service client by google chrome to test your service
Maybe a version thing, but I got this to work in VS 2017 as follows:
Highlight the appropriate svc.cs for the REST service in Solution Explorer.
Start debugging (F5).
When WCF Test Client pops up, if you still don't see methods listed there, remove (temporarily) any REST <service> elements from web.config and then try again. Reportedly, WCF Test Client does not work with the webHttpBinding that might be present in the <service> element. Removal is not really a solution, but perhaps a good workaround for some scenarios where a quick test is needed.
Related
I am unable to add a connected service reference to a WCF endpoint in VS 2019. I used to be able to do it in VS2017 with an extension. Now I can't find the extension anywhere, and when I try to add a connected service, I get lots of options but nothing for a WCF service.
Just to clarify, I am not trying to develop a WCF service, just trying to create a service reference to act as a client to a remote WCF service.
There is an article on how to use such a tool, here, but absolutely no information on where to find the tool or how to install it. I even found what may be the source code for the tool, but again with no installation instructions.
My project is a .NET Core project, targeting NetStandard 1.6.
.Net Core is still supporting client-side. You can use hosted service in it and add the ip:port/wcfinterface from the connected services.
You can try it by following this link.
I was able to resolve this issue by simply creating a new class library targeting NetStandard2.0. Right-clicking on Dependencies -> Managed Connected Services now showed an additional item below the Service Dependencies item, called Service References. Adding a new Service Reference, you are then presented with a WCF option.
I tried re-targeting this class lib back to NetStandard1.6, and all is still working. My original class lib was very old, and had some old stuff like dnxcore50 in the .csproj file, so maybe something there was screwing it up.
Thanks all for the suggestions.
I have just little background in web and I need to do this task by myself so I will be most grateful for your help
this is what my boss told me to do (as far as I understand) - I have to write a web service server which gets some parameters, check their validity and then insert/update them in a database. All the parameters are delivered together as a packet written in SOAP - WSDL file. I have to do it using vb.NET in Visual Studio 2010. I read a bit about it and if I understand correctly .NET takes care already of the SOAP an WSDL issue, it is transparent to me, isn't it? or should I install or implement anything concerning that? I saw some examples in the net that all you have to do is to implement web_method in the asmx file, is it so? if yes, which parameters will my method get - the whole bunch of 20 parametres supposed to be in the packet? anything I need to declare or to update in order to connect to the DB? Any help will be appreciated - uf the answer is too long I will be happy just to get a pointer to some relevant material I can read and learn.
Thanks a lot
Try reading this MSDN article: it describes how to write a simple Web service by using Visual Basic .NET
Here are the main steps from the linked MSDN article:
Start Visual Studio .NET or Visual Studio.
Create a new Active Server Pages (ASP) .NET Web service project. Name the Web service MathService and point the location to an
appropriate Web server that is running ASP.NET if necessary.
Change the name of the Solution file to MathService for consistency.
Change the name of the default Web service that is created from Service1.asmx to MathService.asmx.
Click Click here to switch to code view in the designer environment to switch to code view.
Change the name of the class from Public Class Service1 to Public
Class MathService.
Define methods that encapsulate the functionality of your service. Each method that will be exposed from the service must be flagged with
a WebMethod attribute in front of it. Without this attribute, the
method will not be exposed from the service.
Click Build on the Build menu to build the Web service.
Browse to the MathService.asmx Web service page to test the Web service. If you set the local computer to host the page, the URL is
http://localhost/MathService/MathService.asmx.
I have never worked with SOAP but now i need to use it to get a XML file or CSV file with a lot of products.
I have searched the internet for some examples and found some but i still don't understand how to use it.
Am i wright that it just sends a XML file to a server and you get back a XML file with the data.
Do i really need to install this so that it works: http://www.microsoft.com/en-us/download/details.aspx?id=11413
And i need to implement it in a windows forms application.
Hope someone can help me with a good tutorial.
You don't need to manually write all the code to do the SOAP communication yourself. The .NET framework and visual studio provide tools to automatically build custom client classes that mimic the interface of the SOAP service, and perform all of the SOAP communication for you. You don't need to install anything special, you just need to right-click on your project in the IDE and choose to add a Web Reference, or a Service Reference.
I am using pollingDuplexHttpBinding and it is working fine as long as i copy paste the web.config from msdn article :- MSDN article
However when i try to manually configure my service using WCF configuration editor, it doesn't work. The option pollingDuplexHttpBinding doesn't show up under endpoints in Binding drop down box. How do i solve this problem? I already have a reference to the required assembly of pollingduplexhttpbinding.
Thanks in advance:)
Just because it doesn't show up in config intellisense, doesn't mean that the binding won't work when you run your application. Make sure that you have the latest version of Silverlight Tools for Visual Studio installed; Even then, it may still not show up (config intellisense unfortunately always seems to be an afterthought at Microsoft, especially for server-side config for Silverlight scenarios).
I know I've had this problem when I started working with Silverlight, but I can't for the life of me remember how to fix it.
I created a new RIA service application using the standard tutorial, added a table from the database and added a grid to display the results. Works great. Now I pull open the Web properties and change the web project to "use local IIS Web server". Suddenly the application will load up and give me the friendly "NotFound" error.
Please, someone remind me what I'm missing here.
I ran into this problem recently, and resolved it with help from this post on the silverlight.net forums.
Basically, I had Windows authentication and annonymous access enabled at the same time, and I need to disable windows authentication and restart IIS.
John
Not sure what the missing part is but I always start with Fiddler as will show the messages going across the wire. The actual messages can contains far more useful that the browser is hiding from the Silverlight plugin