Web Services

What is XML?

  • XML stands for EXtensible Markup Language
  • XML is a markup language much like HTML
  • XML was designed to carry data, not to display data
  • XML tags are not predefined. You must define your own tags

XML was designed to transport and store data.

HTML was designed to display data.

What is SOAP?

SOAP is an XML-based protocol to let applications exchange information over HTTP.

Or more simple: SOAP is a protocol for accessing a Web Service.

  • SOAP stands for Simple Object Access Protocol
  • SOAP is a communication protocol
  • SOAP is a format for sending messages
  • SOAP is designed to communicate via Internet
  • SOAP is platform independent
  • SOAP is language independent
  • SOAP is based on XML
  • SOAP is simple and extensible
  • SOAP allows you to get around firewalls

 

 

Gmap – latitute and logitute :

<script src=”http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAUvgMDpSwpIVSdk4Lt1gyZxRrPG9ukeNb8tYptMFxTfI6RCHRlBR6oN-gOMyEFzILA_3i60HC7gO7HQ ” type=”text/javascript”></script>
<script type=”text/javascript”>
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById(“map”));
map.setUIToDefault(); //Load the Map type bars
var customUI = map.getDefaultUI();
customUI.zoom.scrollwheel = false;
map.setUI(customUI);

//var center = new GLatLng(-22.98699983834975,-43.210344314575195);
var center = new GLatLng(8.62990,77.91281);
map.setCenter(center, 18);
//geocoder = new GClientGeocoder();
var marker = new GMarker(center, {draggable: true});
map.addOverlay(marker);
document.getElementById(“lat”).value = center.lat().toFixed(5);
document.getElementById(“lng”).value = center.lng().toFixed(5);

GEvent.addListener(marker, “dragend”, function() {
var point = marker.getPoint();
map.panTo(point);
document.getElementById(“lat”).value = point.lat().toFixed(5);
document.getElementById(“lng”).value = point.lng().toFixed(5);
});

GEvent.addListener(map, “moveend”, function() {
map.clearOverlays();
var center = map.getCenter();
var marker = new GMarker(center, {draggable: true});
map.addOverlay(marker);
document.getElementById(“lat”).value = center.lat().toFixed(5);
document.getElementById(“lng”).value = center.lng().toFixed(5);

GEvent.addListener(marker, “dragend”, function() {
var point =marker.getPoint();
map.panTo(point);
document.getElementById(“lat”).value = point.lat().toFixed(5);
document.getElementById(“lng”).value = point.lng().toFixed(5);
});
});

map.enableGoogleBar(); //Enable the Google location search bar

}
}

</script>
<body onLoad=”initialize()”>
<style>
#map
{
height: 350px;
width: 550px;
border:1px #0099FF solid;
}
</style>
<strong>Latitude: </strong>
<input type=”text” name=”GmapLattitude” id=”lat” readonly value=”” />
<strong>Longtitude: </strong>
<input type=”text” name=”GmapLongtitude” id=”lng” readonly value=”” />
<br />
<div id=”map”>
<div align=”center” style=”padding-top:40px;”>No Map Data</div>
</div>
</body>

REST :

http://www.9lessons.info/2012/05/create-restful-services-api-in-php.html

http://viralpatel.net/blogs/restful-web-service-tutorial-introduction-rest-restful/comment-page-1/#comment-44261

http://www.9lessons.info/2012/05/create-restful-services-api-in-php.html

http://viralpatel.net/blogs/restful-web-service-tutorial-introduction-rest-restful/comment-page-1/#comment-44261

OOPS :

http://www.sunilb.com/php/php5-tutorial-oops-php5-class-access-specifiers-public-private-and-protected

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s