consuming service reference typescript - visual-studio

How to consume service reference in Typescript HTML App using Visual Studio 2013.
I have added a service reference to my typescript HTML app. but don't know how to call service client in typescript code.

Typescript HTML App template in VS 2013 uses C# project type as wrapper. That means you can add Service Reference in UI. But there is no built in support to consume such reference in TypeScript - there is no service client unless you implement it.

Related

How to associate item templates with Project Type in Visual Studio 2019?

I would like to create a new F# Web ASPNET (not Core) Application using the MSBuild based legacy project format, not the SDK project. In Visual Studio 2019, the only available option for this project type is C#. I've attempted to reverse engineer the project setup by creating a new F# class library and modify the ProjectTypeGuids.
The C# Web Application uses the following project type GUIDs
349c5851-65df-11da-9384-00065b846f21 - ASP.NET MVC 5
fae04ec0-301f-11d3-bf4b-00c04f79efbc - C#
On a basic F# .NET Framework class library, I attempted to add the ASP.NET and F# project type guids to the project.
<ProjectTypeGuids>{349C5851-65DF-11DA-9384-00065B846F21};{F2A71F9B-5D33-465A-A702-920D77279786}</ProjectTypeGuids>
This succeeded in adding the web configuration to the project properties, but now I am unable to add any items to the project at all. It looks like in the past you needed to associate the right language templates with the project guid in the registry editor (see this link)
These entries don't appear to be anywhere that I can see in the registry, for any installed version of VS (which at this point is just 2017 and 2019). How can I enable F# item templates for my F# web application?
While not exactly an answer to the question, I think the pain of trying to do this is likely proof that you SHOULDN'T do this. In the end my approach will be to simply implement the Web Application in C#, while keeping as much code as possible in F# targeting netstandard.

Intellisense for Angular2 HTML templates

We've recently started to migrate to Angular2 from another framework, most of my component templates are not inline and are in separated HTML files.
Is there any plugin that would provide something like IntelliSense inside the HTML?
For example, it would be great to see a list of methods of the component, or a list of properties of an item of a collection iterated with a NgFor directive.
I have failed to find such a thing.
We are using Visual Studio 2015.
I am assuming you haven't come across the latest visual code IDE.
You can go on to Visual Studio to download the latest, I believe that only when you're using interfaces or classes, Intellisense will kick in. I encourage you to use this if you're into using this for your development.
You need to download VS Code and the Angular Language Service plug-in.

Cannot Import Asmx web service reference in vs 2010

I have web site built in visual studio 2008 using .net framework 3.5.Now i want to migrate the web site code to visual studio 2010 but want to keep the target framework to same i.e 3.5. The web site is built using vb.Net.MY problem is when i am importing the reference of web service in visual studio 2010 it show error as "NameSpace or type specified in imports 'WebReference' does not contain any public methods".My service name is "WebReference" . I thought may be .net has built in System.web.services.Description.Webreference ,may be it shows conflict ,so i tried to rename it to "WebReference1" or some other name but it does not have any effect,yhe error is still there.What am i missing?
probably it is because you cannot use importer :
ServiceDescriptionImporter importer = new ServiceDescriptionImporter();
in vs 2010....you need vs 2012 because that only has support for .net framework 4.5 which in turn has assembly references to ServiceDescriptionImporter .

Is it impossible to test Silverlight inside Visual Studio when calling Webclient?

Since it generates a security exception How do I load an xml file in XDocument in Silverlight?, does it mean it's impossible to test Silverlight on Visual Studio when calling Webclient ?
I want to call a Rest webservice which returns XML from a PHP or Java server not a Microsoft webservice.
My question is about inside Visual Studio not after putting the code on IIS. The Knowledge base above does only tell how for IIS not for Visual Studio localhost.

VS 2010 Web Service project template missing?

This may be a silly question, but I can't find the web service application template when I try to create a new project.
You propably want a WCF Service Project: New Project -> Visual C# (or Visual Basic) -> WCF Service Application.
I've just struggled with this one myself.
It's still there buried in specific options.
New Project -> Visual C# (or VB) -> Web (important)
Make sure the .NET Framework Filter is set to 3.5 or lower
The project template is called ASP.Net Web Service Application
Counter intuitively it doesn't show up if you select the broader menu: New Project -> Visual C#
Do a full install on ultimate; it is still there.

Resources