Webpage programming without Screen Writing, Web API, Web Service, WCF Service, and apiwcf

Source: Internet
Author: User
Tags connect socket

Webpage programming without Screen Writing, Web API, Web Service, WCF Service, and apiwcf


The customer has a system that is frequently connected to us to query data.
The previous practice was to give the other party an account so that he could connect to our database for query.

Therefore, early colleagues really gave them DB link strings
The customer's Windows programs and websites are connected to our company's DB in such a dangerous way.

But I think everything is dangerous, and ......
Isn't the performance worse if the other side's SQL commands are messy?
If the other party is not careful, the configuration file is stolen. What should I do if I see my DB Connection String?
A few years ago, the Internet was not that large in bandwidth, so there were various restrictions to prevent them from querying too much data at a time.


After I took over the Service, I switched to Web Service (WS-*). I have introduced several articles before.
I did not expect that the year 78 has passed.

Interesting. In the past few years, the highest traffic or reading rate on my website was: Searching for the keyword "Web Service" and connecting to my website.

Web Service entry #1: Write a Web Service through VS 2005/2008/2010
Https://www.dotblogs.com.tw/mis2000lab/archive/2008/09/26/webservice_1.aspx

 

Later, the customer imported the telephone voice card (CTI)

That is, we call a bank or credit card company to perform the following operations on the voice system on the phone:
Click 1 to help you query the bill amount
Press ii to help you do XYZ and so on
Press "9" to help you transfer a person.

You beat me up, and I don't know the CTI phone voice card or phone switchboard.
Then how can I work with the vendor? How to exchange data?

The vendor asked me: is it possible to connect Socket?
I won't.

I asked him: Can your CTI be connected to the network? Can I send and receive webpage information?
The vendor said yes.

Therefore, we can achieve today through Web Service.

 

Last year, the system was changed to a Mobile APP (Mobile phone and tablet) interface.
What about me? How can I modify it together?

No, I have nothing to do. I am in a daze. I will test it with me after the manufacturer has written it.
Then it went online.

Then, inexplicably, it turns into the first set of operational functions of this department.
The boss is happy to show off with others.
(I did nothing. What is the result? Everyone is very happy, including me, partners, bosses, and customers)


A university teacher talked to me a few days ago and said that front-end technologies are currently popular and everyone is working on mobile apps.
He worried: With the picture, who will feed the information? Who is responsible for providing data to these apps?
(This means that everyone is engaged in mobile apps and mobile games. It seems that no one wants to create backend and database programs)

I told him, that's good. No one will do it. Just do it for me.
If I am not interested in front-end technologies, I will focus on data mining, data transmission, and providing their (various front-end technologies) data.

They (various front-end technologies) are responsible for "image" Display
I am responsible for "Data Access"

This is awesome and everyone has a job.
Unlike in the past, pictures were not easy to see, color, UI ...... the other party GGYY had been around for a long time, but it was not my expertise. I could not satisfy each other's aesthetics.

Finally, it is out of touch with the annoying "image" and "UI ".
I just breathed a sigh of relief


This means that I don't need to answer the End User's complaint phone number. In the future, they will complain about incoming calls. At most, the data I gave is incorrect.
(Although the data is wrong, it is very serious, but at least I am familiar with this piece, it is better to grasp the problem)

The User will no longer complain about the problem of "screen", the font size, the UI is not smooth or hard to see
(I can't do anything about front-end images)

 

I used to think it was strange to write an ActionScript program to generate Flash Animation and AIR,
Why does their program have no link to the database?

Later, they discovered that they handled the problem through Web Service, turning "image" into "image" and "Data Source" into "Data Source 」
In fact, the distinction is very clear.

 

We used to write web pages.
In the future, we can say that we provide "data" and "services ".

Web Service/WCF Service/WebAPI saves our lives and continues the lifecycle of our (Web application ).

 

Related Articles:

Getting started with WCF #2 -- write the first WCF Program
Https://www.dotblogs.com.tw/mis2000lab/archive/2010/09/16/wcf_02_diy.aspx

[Getting Started] ASP. NET Web Service (asmx) and jQuery AJAX
Https://www.dotblogs.com.tw/mis2000lab/archive/2015/05/19/jquery_ajax_web_service.aspx

Web services Development Practice: Using ASP. net web api 2
Http://blog.kkbruce.net/2014/01/web-service-develope-use-aspnet-web-api-2.html

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.