Posts

Showing posts with the label WebService

"forbidden you don't have permission to access / on this server" access from client network & allow firewall tcp:port 80

Image
"forbidden you don't have permission to access / on this server" when access from client network First click wampserver > Apache > httpd.conf search word "Require local" and Add  "Require all granted"                                  With start and stop all service agian. refresh webpage _________________________________________________________________________________ Allow firewall wamp webservice windows Let's start  control panel > firewall > Advanced settings click > New Rule    Go to Search on right side of windows. search "firewall". open the "firewall with advanced". go to inbound rules. click on "new rule". select the "Port" option. click "next" select "TCP" option. select "Specific local ports:". type "80" in next text box click next. select the "Allow the connection"...

OAuth คืออะไร เอาไว้ทำอะไร ?

Image
OAuth คืออะไร เอาไว้ทำอะไร ? มารู้จัก OAuth กันครับ วันนี้เอาแค่ให้รู้ก่อน ว่ามันคืออะไร? เอาไว้ทำอะไร OAuth ได้ยินฝรั่งอ่านว่า "โอออท" (จาก tutorial ใน youtube) ย่อมาจาก Open Authentication ซึ่งปัจจุบันเป็น version 2 หรือ OAuth 2.0 OAuth เป็นมาตรฐาน ที่ใช้สำหรับการกำหนดสิทธิ์ให้ application หนึ่งสามารถร้องขอทรัพยากรของผู้ใช้จาก application หนึ่งได้โดยที่ application นั้นไม่จำเป็นต้องทราบรหัสผ่านของผู้ใช้ ยกตัวอย่าง เช่น user คือ redcrow และ application ผู้ให้บริการคือ facebook ซึ่งเป็น application ที่ redcrow เคยไปลงทะเบียน หรือ register ไว้ จากนั้น redcrow ไปใช้งาน application อื่นคือ foursquare ซึ่ง redcrow ไม่เคยลงทะเบียน แต่ redcrow อยากเข้าใช้งาน foursquare โดยไม่อยากลงทะเบียนใหม่ (redcrow อยากใช้ user ที่มีอยู่ใน facebook login เข้าใช้งาน foursquare เลย) redcrow เลยทำการร้องขอ เพื่อไป login ที่ facebook โดยผ่านทาง foursquare จากนั้น foursquare ก็จะส่งคำขอนั้นไปยัง facebook เพื่อให้ redcrow ทำการ login จากนั้น redcrow ก็ login ที่ facebook เมื่อ ...

Soap examples

Soap examples SOAP request example The SOAP request that follows indicates that the OrderItem() method, from the Some-URI namespace, should be invoked from http://www.somesupplier.com/Supplier. Upon receiving this request, the supplier application at www.somesupplier.com runs the business logic that corresponds to OrderItem. Note:  For legal information about this code example, see the  Code example disclaimer . Sample SOAP Request POST /Supplier HTTP/1.1 Host: www.somesupplier.com Content-Type: text/xml; charset="utf-8" Content-Length: nnnn SOAPAction: "Some-URI" <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <m:OrderItem xmlns:m="Some-URI"> <RetailerID>557010</RetailerID> <ItemNumber>1050420459</ItemNumber> <ItemName>AMF Night Ha...

How To Create an App Like Instagram With a Web Service Backend – Part 2/2

Image
How To Create an App Like Instagram With a Web Service Backend – Part 2/2 This post is also available in:  Chinese (Simplified) Learn how to make a cool photo sharing app with a web service backend! This is a blog post by iOS Tutorial Team member  Marin Todorov , a software developer with 12+ years of experience, an independent iOS developer and the creator of  Touch Code Magazine . Ready to go on building your photo-sharing iPhone app? Last time, in  first part  of the tutorial, you created the basics of the web service, and added the ability to login with a username/password and upload files. In this second and final part of the tutorial, you get to do the cool stuff – taking photos, applying effects and uploading files to the server. Grab some tasty breakfast like mine, and let’s go! Getting Started: the Photo Screen All right, it’s time to fire up the iPhone camera, capture some action and submit the results to the server via the API...