วันเสาร์ที่ 29 พฤษภาคม พ.ศ. 2553

Web Service คืออะไร




บทนำ



หากเรามองย้อนกลับไปซักไม่กี่ปีที่ผ่านมาใครจะไปคาดคิดว่าเว็บมันจะเติบโตและได้รับความนิยม สูงมากขนาดนี้ ทุกวันนี้หลายๆ คนคงขาดเว็บไม่ได้ เหตุผลที่เว็บประสบผลสำเหร็จก็คงเป็นเพราะเหตุผลเพียงไม่กี่อย่างคือ ความสะดวก และใช้งานง่าย ในฝั่งผู้ให้บริการ (ผ่านเว็บ) ก็จะมองว่าถ้ามีเว็บเซอร์เวอร์ ก็ขายสินค้าได้ทั่วโลก ในฝั่งผู้ใช้งาน ขอให้คุณเลื่อนเมาส์กับใช้ keyboard เป็น คุณก็ติดต่อ ค้นหา ซื้อของ ได้ทั่วโลก ในมุมมองของ Software เว็บก็ทำหน้าที่อยู่ 3 อย่างคือ GET POST และ ก็ PUT ในเรื่องของ Web Service ก็คือการใช้ Web ที่ไม่เพียงแค่เกี่ยวกับข้อมูลอย่างเดียว แต่หมายถึงการบริการด้วย



คำว่า Service ไม่ได้หมายถึงอะไรที่เด่นชัดอย่าง Promool.com Pantip.com แต่หมายถึงส่วนประกอบที่คนอื่นๆนำไปใช้ในการทำบริการที่กว้างกว่านี้ด้วย ตัวอย่างเช่น Microsoft Passport ที่ให้บริการตรวจสอบความเป็นตัวตนจริง (Authentication) ผ่านเว็บ ทำให้การบริการข่าวของ Bangkok Post ไม่ต้องตรวจสอบการเข้าสู่ระบบเอง แต่ยกให้ Passport เป็นตัวจัดการแทน หรืออย่าง Dynamic services whitepaper ของ Oracle ก็มีส่วนที่ให้บริการ แปลงค่าเงิน แปลภาษา การส่งของ กระบวนการเคลมสินค้า เป็นต้น ส่วนความหมายอย่างเป็นทางการของ Web Service ก็คงเป็นของ IBM ที่กล่าวว่า



เว็บเซอวิส คือ Web Application ยุคใหม่ ที่ประกอบด้วยส่วนย่อยๆมีความสมบูรณ์ในตัวเอง สามารถติดตั้ง ค้นหา เริ่มทำงานได้ผ่านเว็บ Web Service สามารถทำอะไรก็ได้ตั้งแต่งานง่ายๆ เช่นดึงข้อมูล จนถึงกระบวนการทางธุรกิจที่ซับซ้อน เมื่อ Web Service ตัวใดตัวหนึ่งเริ่มทำงาน Web Service ตัวอื่นก็สามารถรับรู้และเริ่มทำงานได้อีกด้วย



หลายคนอาจจะถามว่าทำไมต้องเป็น Web เพราะเรามี Middle Ware อื่นๆมากมายเช่น RMI Jini CORBA DCOM ฯลฯ แม้ Middle Ware เหล่านี้จะสามารถรองรับได้ แต่ไม่มีตัวใดตัวหนึ่งที่เด่นจริง แต่ในเมื่อ Web มีจุดเด่นในเรื่องของการให้บริการข้อมูลที่สะดวก ใช้งานง่าย จึงกลายเป็นตัวประสาน Middle Ware ต่างๆ เข้าด้วยกันซึ่งจะให้คุยกันเองคงยากยิ่ง Web ทำหน้าที่เป็นตัวกลางให้ Middle Ware เหล่านี้สามารถคุยกันได้ และมีประสิทธิภาพกว่าวิธีการเดิมๆ มาก



หากเรามองจากกรณีของ n-tier application จะพบว่า web service คือกลไกในการเข้าถึงบริการที่แต่ละ Middle Ware ให้บริการ การเข้าถึงจะอาศัย Listener และส่วนประกอบที่ระบุถึงบริการต่างๆ ที่รองรับการทำงาน โดยการทำงานจริงๆ นั้นก็ใช้วิธีการปกติของ Middle Ware นั้นๆ



พื้นฐานของ Web Service



พื้นฐานของ Web Service ก็คือ XML กับ HTTP ซึ่งจะพบว่า HTTP ก็เป็นที่รู้จักกันดี และไปได้ทั่วทุกแห่งที่มี interner ส่วน XML คือภาษาสากลที่คุณสามารถปรับแต่งได้ตามใจชอบ เพื่อให้เกิดกิจกรรมระว่าง client และบริการ หรือระหว่างส่วนประกอบต่างๆ เบื้องหลัง Web server ก็คือ ข้อความ XML จะถูกแปลงให้การขอบริการจาก Middle ware และผลที่ได้ก็จะแปลงกลับมาในรูป XML



ยกตัวอย่างให้เห็นง่ายๆ คุณต้องการให้เครื่อง PC อ่านค่าจาก serial port แล้วส่งไปประมวลผลบนเครื่อง UNIX แล้วส่งผลกลับมาแสดงบนจอ PC ถ้าเป็นเมื่อก่อน คุณก็คงต้องแปลงข้อมูลที่ได้ให้อยู่ในรูปของ ASCII แล้วส่งไปยัง UNIX พร้อมคำสั่งว่าให้ทำอะไร ในฝั่ง UNIX คุณก็ต้องมาแยกว่าอันไหนคือคำสั่ง อันไหนคือข้อมูล เมื่อประมวลผลแล้ว จะส่งกลับมาในรูปแบบไหน แล้วถ้าหากจะส่งไปหาเครื่องที่เป็น MAC ท่านจะต้องเขียนโปรแกรมเพิ่มในส่วนไหนบ้าง จะพบว่าเราต้องพัฒนากันเป็นคู่ๆ ไป และต้องนิยามในแต่ละฝั่งให้ชัดเจน แต่หากเป็น Web Service คุณจะพบว่า เราแปลงข้อมูลให้อยู่ในรูป XML แต่ละคุณก็ต้องการรู้แค่ มาตรฐาน XML ก็พอ แล้วต่างคนต่างก็เขียน Service ของตัวเอง ไม่ต้องกังวลเรื่องของการเชื่อมโยงอีกต่อไป และ Protocol ที่ส่งก็คือ HTTP นั่นเอง ถ้าท่านเชื่อมโยงกับ HTTP (หรือเว็บ) ได้ ท่านก็ใช้บริการทุกอย่างได



แต่เดี๋ยวก่อนการเข้าถึงและการสั่งงานนั้นยังเป็นเพียงโครงสร้างพื้นฐาน แต่ในความเป็นจริงยังมีอะไรมากกว่านั้น เช่น การค้นหา การทำธุรกรรม ความปลอดภัย การพิสูจน์ตัวตน และอื่นๆ อันเป็นบริการที่ทำให้เป็นบริการพื้นฐานจริงๆ



ระบบเพิ่มเติมที่ต้องมีและต้องรักษาความสะดวกและใช้งานง่ายไว้ด้วย พื้นฐานของ Web Service เต็มรูปแบบคือ XML + HTTP + SOAP + WSDL + UDDI หรือในระดับสูงกว่านั้น แต่ไม่ได้ถือเป็นสิ่งจำเป็นเสมอไปคือต้องเพิ่มเทคโนโลยี XAML, XLANG, XKMS, XFS เป็นต้น



ต่อไปนี้คือรายละเอียดคร่าวๆ ของแต่ละส่วน แต่ควรตระหนักว่าแต่ละส่วนอาจจะยังเป็นเทคโนโลยี ที่กำลังอยู่ระหว่างพัฒนา ดังนั้นในแต่ละปัญหาอาจจะแก้ได้หลายวิธีด้วยกัน



SOAP (Remote Invocation) สั่งงานจากระยะไกล



UDDI บริการ Directory



WSDL ระบุคุณสมบัติของแต่ละบริการ



XLANG/XAML กรณีของการเชื่อมโยงที่ซับซ้อน หลายๆ เว็บ



XKMS (XML Key Management Specification) ระหว่างการพัฒนา (Microsoft + Verisign)








ความหมายของเว็บไซต์




--------------------------------------------------------------------------------



ความหมายของเว็บไซต์

เว็บไซต์ (website, web site, Web site) หมายถึงหน้าเว็บเพจหลายหน้า ซึ่งเชื่อมโยงกันผ่านทางไฮเปอร์ลิงก์ ส่วนใหญ่จัดทำขึ้นเพื่อนำเสนอข้อมูลผ่านคอมพิวเตอร์ โดยถูกจัดเก็บไว้ในเวิลด์ไวด์เว็บ





หน้าแรกของเว็บไซต์ที่เก็บไว้ที่ชื่อหลักจะเรียกว่า โฮมเพจ เว็บไซต์ โดยทั่วไป จะให้บริการต่อผู้ใช้ฟรี แต่ในขณะเดียวกันบางเว็บไซต์จำเป็นต้องมีการสมัครสมาชิกและเสียค่าบริการเพื่อที่จะดูข้อมูลในเว็บไซต์นั้น ซึ่งได้แก่ข้อมูลทางวิชาการ ข้อมูลตลาดหลักทรัพย์หรือข้อมูลสื่อต่างๆ ผู้ทำเว็บไซต์มีหลากหลายระดับ ตั้งแต่สร้างเว็บไซต์ส่วนตัว จนถึงระดับเว็บไซต์สำหรับธุรกิจหรือองค์กรต่างๆ การเรียกดูเว็บไซต์โดยทั่วไปนิยมเรียกดูผ่านซอฟต์แวร์ในลักษณะของเว็บเบราว์เซอร์



เว็บไซต์แห่งแรกของโลก สร้างขึ้นเมื่อ 30 เมษายน พ.ศ.2536 โดยวิศวกรของเซิร์น



: http://th.wikipedia.org/



เว็บไซต์ คืออะไร


เว็บไซต์

เว็บไซต์ (Web Site) คือ แหล่งที่เก็บรวบรวมข้อมูลเอกสารและสื่อประสมต่าง ๆ เช่น ภาพ เสียง ข้อความ ของแต่ละบริษัทหรือหน่วยงานโดยเรียกเอกสารต่าง ๆ เหล่านี้ว่า เว็บเพจ (Web Page) และเรียกเว็บหน้าแรกของแต่ละเว็บไซต์ว่า โฮมเพจ (Home Page) หรืออาจกล่าวได้ว่า เว็บไซต์ก็คือเว็บเพจอย่างน้อยสองหน้าที่มีลิงก์ (Links) ถึงกัน ตามหลักคำว่า เว็บไซต์จะใช้สำหรับผู้ที่มีคอมพิวเตอร์แบบเซิร์ฟเวอร์หรือจดทะเบียนเป็นของตนเองเรียบร้อยแล้วเช่น www.google.co.th ซึ่งเป็นเว็บไซต์ที่ให้บริการสืบค้นข้อมูลเป็นต้น





สรุป เว็บไซต์ คือ ชื่อเรียกหรือที่อยู่ของเครื่องคอมพิวเตอร์ที่ให้บริการ

เว็บเพจ คือ หน้าแต่ละหน้าที่มีการเชื่อมโยงถึงกัน

โฮมเพจ คือ หน้าแรกที่เข้าสู่เว็บไซต์นั้น ๆ





ส่วนประกอบของเว็บเพจที่สำคัญ มีดังนี้

1. ข้อความ (Text) ได้แก่ ตัวอักษร ตัวเลข ซึ่งอาจเป็นภาษาอังกฤษ ไทย หรือภาษา อื่น ๆ ก็ได้

2. กราฟิก (Graphics) ได้แก่ ภาพวาดและรูปภาพต่าง ๆ

3. มัลติมีเดีย (Multimedia) ได้แก่ ภาพเคลื่อนไหว ภาพวีดิทัศน์ เสียง

4. ลิงก์ (Link) ข้อความหรือรูปภาพที่มีลักษณะพิเศษ ซึ่งสามารถเชื่อมโยงไปยัง เว็บเพจอื่น ๆ ได้ เราสามารถตรวจสอบได้ว่าส่วนใดเป็นลิงก์โดยนำเมาส์ไปนี้สัญลักษณ์เมาส์จะเปลี่ยนเป็นมือ ? แสดงว่าส่วนนั้นเป็นลิงก์

วันจันทร์ที่ 17 พฤษภาคม พ.ศ. 2553

Top 10 Sources For Massive Web Site Traffic




By Titus Hoskins Copyright © 2007-2010



Experienced webmasters know there are special sources or places on the web which will send massive amounts of traffic to your site. They also know, if harnessed properly, these mega traffic sites will supply any web site with a steady stream of visitors.



Perhaps the best source of web site traffic is Google. That's not exactly a Newsflash, but the key to getting massive amounts of traffic from Google is to go wide and long. With this strategy, instead of targeting highly popular keywords which may be too competitive for your site to win, you create a whole multitude of lesser known long tail keyword phrases to bring in the traffic.



This traffic takes longer to build but because very few webmasters bother with these longer phrases, your keywords will be more stable and secure. Develop a whole list of these traffic generating keyword phrases and Google will reward you with a whole flood of targeted visitors stemming from these thousands of small dribbles of long tail keyword traffic.



Turning these dribbles of traffic into massive amounts is not a difficult task. One very effective way to tap into the entire search engine source of traffic is to tag everything. Tags are just another name for keywords. As Web 2.0 or Social Bookmarking sites become more and more popular, tagging will become extremely important.



You must be especially careful of how you tag the content on your site or sites. If you're using a blogging system like WordPress, all your categories will be considered tags automatically. If you're creating URLs, be careful to place your keyword phrase in your links.



Another effective way to tap into the whole keyword traffic system is to include your keyword phrase or variations of it in your articles while promoting your site. Place your anchor text in your links in the resource box at the end of each article.



Over time, as these articles become distributed all over the web, they will create a steady stream of targeted visitors to your site. Simple, effective and very powerful.



You are probably tired of hearing about Web 2.0 and the new Social Bookmarking sites but they are some of the best places for massive traffic on the web. Any webmaster who has been Slashdotted already knows this fact all too well; if you get a listing on the homepage of Slashdot.com you will immediately start receiving thousands of visitors to your site. It can be somewhat scary.



A similar experience is getting one of your articles published in ezines run by Addme.com, SiteProNews.com, WebProNews.com, as well as others. These ezines go out to hundreds of thousands of readers and can produce massive traffic back to your site.



However, much of this sudden traffic is only temporary and most savvy webmasters know it would be wise to try and capture the contact information of these temporary visitors for follow-up targeting. Turn that temporary visitor into a patron of your site by offering a free ecourse or an email newsletter.



The same marketing technique should be applied to traffic coming from all these social media sites. Don't think of your traffic as just numbers in your website's stats, but rather as potential customers who will return to your site again and again.



Keep this strategy in mind as you target some of these Top Sources of massive traffic on the web:



1. Digg.com

2. Netscape.com

3. Ezinearticles.com

4. Del.icio.us

5. StumbleUpon.com

6. Reddit.com

7. Slashdot.org

8. BlinkList.com

9. Furl.net

10. Squidoo.com



You should be actively promoting these social bookmarking sites by allowing your visitors to easily bookmark your content. You should be creating your own content on sites like Squidoo and placing links back to your site.



Of course, there are countless other sources of massive traffic on the web. Press releases is another effective way of quickly drawing in massive traffic to your site. Sites like PRWeb.com can deliver targeted traffic very quickly and efficiently.



Another very effective and high converting venue you should try is Yahoo! Answers http://answers.yahoo.com, a simple process where users post a question and other members/experts offer answers. Used correctly this can be a good source of targeted traffic.



Don't forget other important search engines such as MSN Live, traffic from MSN has earned a solid reputation for converting very well. So optimize your web pages for MSN Live Search and you will probably see an increase in your sales as well as your traffic.



Always keep in mind, the underlying key factor running through all these sources of massive traffic is unique quality content. You must create good original content on your sites as well as in your articles and posts. Your content must be informative, useful or entertaining. For in the end, it is this quality content that will create the interest, the links and the massive traffic to your site.



Don't ignore this factor or your quest for massive web site traffic will be extremely difficult, if not impossible to achieve.



crdeit : http://www.web-source.net/feature1000.htm

ประวัติประจำตัว

หวาดดี คราฟ
ผมชื่อ นาย รัฐพงศ์ แก้วเตือนจิตร
เรียกอีกชื่อว่า เต้ นะ คราฟ
สถานะ -โสด-
บ้านอยุ่แถว กังสดาล ขอรับ