Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Able to find the feature Add Service Reference #728

Closed
leena-v opened this issue Jan 20, 2016 · 16 comments
Closed

Not Able to find the feature Add Service Reference #728

leena-v opened this issue Jan 20, 2016 · 16 comments

Comments

@leena-v
Copy link

leena-v commented Jan 20, 2016

Hi,

I created a new solution on the new Visual Studio 2015 and created a dll Library(Package).
When I try to add a reference to a webservice(wsdl), I am unable to add the service reference the right click on the references only has the following options:

  1. Add Reference
  2. Add Connected Service
  3. ManageNuget Package
  4. Restore Packages
    Has anyone faced the same issue?
    Is there anyway to configure the application to display this feature(add service reference)?
    Could you please suggest which is the best way to add a third party WSDL api reference to a .net core dll? is this feature available?

Thanks,

@roncain
Copy link
Contributor

roncain commented Jan 21, 2016

This thread originated at dotnet/core#49. I copied the reply here so we can continue the discussion in this repo.

Hi @leena-v . A blog describing this up-coming feature is at http://blogs.msdn.com/b/webdev/archive/2015/12/15/wcf-connected-service-visual-studio-extension-preview-for-asp-net-5-projects.aspx . Give it a try and let us know how it works for you.

@leena-v replied:
@roncain Appreciate for your quick response. Could you please suggest which is the best way to add a third party wsdl api reference to a .net core dll? is this feature available?

/cc @zhenlan @mlacouture.

@leena-v
Copy link
Author

leena-v commented Jan 21, 2016

The approach suggested using the WCF application as a Connected Reference is not an option. I am trying to build a console application that references a dll that internally calls the wsdl. Could you please suggest how to add a third party WSDL api reference to a .net core dll?

@zhenlan
Copy link
Member

zhenlan commented Jan 22, 2016

I am trying to build a console application that references a dll that internally calls the wsdl.

@leena-v can you please help us to understand what kind of console application you are building? Is it a xproj, csproj or something else? Where is the dll you are referencing from? Did you build it or is it from a 3rd party? If you build it, is it a xproj, csproj or something else:?

@zhenlan zhenlan added this to the Future milestone Jan 22, 2016
@leena-v
Copy link
Author

leena-v commented Jan 22, 2016

Hi Zhenlan,
The console application and the dll are xproj. Basically I am trying to rebuild an existing Visual Studio 2012 application to Visual Studio 2015. The dll references a wsdl. This is referenced using the feature of service reference. I am not able to add the wsdl reference in the new xproj that I created. How can a wsdl reference be added to the project?

@zhenlan
Copy link
Member

zhenlan commented Jan 25, 2016

Thanks @leena-v for the clarification.

I am not able to add the wsdl reference in the new xproj that I created.

Just to make sure I understand... so you have a wsdl reference (eg. http://...?wsdl). When you put this url into the WCF connected service, didn't it generate the client proxy you expected? If so, what errors do you get? Or do I misunderstand what you mean by wsdl reference?

@leena-v
Copy link
Author

leena-v commented Jan 28, 2016

No. I am not sure how to include this as a WCF connected service. When I tried to use the option to the WCF connected service it lists a default set of APIs that can be used for this feature. But no option to add a URL. Could you please advise how can I set this WSDL to be available under the WCF connected service.

@zhenlan
Copy link
Member

zhenlan commented Jan 30, 2016

But no option to add a URL.

A URL can be added in the Address box as shown in this picture. For details of how to get to this dialog, you can find in the blog post Ron mentioned earlier.

I may still not fully understand your question. I am wondering if you can post a video showing the issue you have.

@vincentshow
Copy link

How to add net.tcp binding service? I’ve added net.tcp binding service using this tool of .net core rc2. But when I upgraded it to .net core 1.0, I couldn’t add net.tcp binding service with error msg “invalid url”.

I’ve tried to add http binding service, and it showed progress bar of searching service while no progress bar shown when adding net.tcp binding service. It just gives me invalid url error, and the detail is

The service Uri is not valid: ‘net.tcp://10.13.0.228:7000/SnailGame.GameManage.CenterService.Console.ExecuteService’.

I've provided this feedback in this blog, but it seems nobody answer me...thanks

@vincentshow
Copy link

sorry, the tool I mentioned is WCF connected service

@hongdai
Copy link
Contributor

hongdai commented Oct 17, 2016

Thanks for reporting the issue!
Non-http based URI is not yet supported. We are evaluating adding the support.

@vincentshow
Copy link

so sad, how can you cut off features in high version? Anyway, could you please give me a url by which I can download the rc2 version? No rc2 version can be searched in https://visualstudiogallery.msdn.microsoft.com. This feature is so critical that I cannot move on without it in my project. Much much much thanks...

@vincentshow
Copy link

0.1.20119.0, this is the version no of wcf connected service which allow me to add net.tcp binding, please give me a download url, thanks

@hongdai
Copy link
Contributor

hongdai commented Oct 18, 2016

RC2 is a pre-release version, thus not all features there would be officially released. Unfortunately for the same reason, we do not keep RC2 bits for consumption.

I will help raising the priority to support the feature.

@vincentshow
Copy link

ah...resolved. I added one more wsdualhttpbinding in my wcf service, and the tool generated valid reference for me with System.ServiceModel.NetTcpBinding. I thought what blocked me was the tool's url filter, and the feature is suported all the way.

@roncain
Copy link
Contributor

roncain commented Dec 5, 2016

@hongdai -- can we close this issue now?

@hongdai
Copy link
Contributor

hongdai commented Dec 5, 2016

Yes. Net.tcp is supported now.

@hongdai hongdai closed this as completed Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants