locked
web service RRS feed

  • Question

  • User-1075092149 posted

    what is web service and its functions?

     

    also, what is the function of XML?

    Sunday, May 26, 2013 10:23 AM

Answers

  • User-738028663 posted

    OOps so fundamental question.

    WebServices concept actually really comes into play , when we talk about SAS (Software as Service). So what happen with the invention of services , you can provide only those services for which he subscribed or pays. Means let them access only those functionality through services for which he really paid me or his role allows for that.

    Let's take an example... i have created a service, which actually provide two functionalities , addition and substraction... and there is a user A and B. User A is admin and user B is end user. And i dont want user B to access substraction service. So whenever user B tries to access substraction service , he will not be allowed as in functionality i am checking the user type and restricting it.

    Second thing... using services you can shift the complete layer of having business logic and database calls to different server. So it will improve performance because now there will be two servers A and B. A is application server which just handles user requests and B which actually calculate and returns data with the interaction of database. This really helps if your site has lot of load/concurrent users.

    Now comes to xml...

    90% of the data travels between two ends (server and application or client and server) is transferred in the form of xml. xml is part of SOAP(simple object access protocol) protocol. Advantage of using xml is , the data transferred fast as it is serialized and as it became standard so every client know how to read and transform data to display on the view/screen. There is other format also which is very popula.. it JSON. Json doesnt have tag so it's more better way to use these days. Json format has name-value pair form of data. 

    These are my own words.. hope you understood this. And my time in writing this became really beneficial.

    So when you call a webservice, the result transferred over the wire is in xml , so the function which retruns some object is serialized to xml by the web service framework and then returned to the user. Now a days instead of xml , jamol format is also used. So the data can also be trnaferred in JSON format.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, May 26, 2013 10:51 AM
  • User1992938117 posted

    what is web service and its functions?

    This question is for Google/Bing there you can get many responces,however see here

    Web services are typically application programming interfaces (API) or Web APIs that are accessed via Hypertext Transfer Protocol (HTTP).

    Usage:

    http://www.tutorialspoint.com/asp.net/asp.net_web_services.htm

    http://www.codeproject.com/Articles/1231/ASP-NET-Web-Service

    http://msdn.microsoft.com/en-us/library/ms972326.aspx

    what is the function of XML?

    http://msdn.microsoft.com/en-us/library/ms996507.aspx

    https://www.simple-talk.com/dotnet/performance/understanding-xml-web-services-for-testers/

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, May 26, 2013 10:55 AM
  • User-488622176 posted

    A web service is basically a piece of automation functionality you expose over a network connection. The automation functionality offers a specific service to the party that uses the service (the consumer. What this functionality is, is irrelevant to the notion of service. It can be the creation of an order, sending an electronic invoice, finding a list of customers based upon certain conditions, ...

    XML is a way to represent data. In case of webservices, XML is used as a format to communicate with webservices. It is someway a standardised format to send and retrieve data from webservices, that is technology independent.

    When to use webservices, instead of inline code (class with function). Suppose you want to expose functionalities to users outside your infrastructure (for example : sending PDF documents to specific physical addresses), so this can be used by many clients. This implies a part of you automated functionality must be accessible for many computer systems outside your domain/network. You can do this by making a webservice that exposes this functionality as an entry point to your application/system.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 29, 2013 7:22 AM

All replies

  • User-738028663 posted

    OOps so fundamental question.

    WebServices concept actually really comes into play , when we talk about SAS (Software as Service). So what happen with the invention of services , you can provide only those services for which he subscribed or pays. Means let them access only those functionality through services for which he really paid me or his role allows for that.

    Let's take an example... i have created a service, which actually provide two functionalities , addition and substraction... and there is a user A and B. User A is admin and user B is end user. And i dont want user B to access substraction service. So whenever user B tries to access substraction service , he will not be allowed as in functionality i am checking the user type and restricting it.

    Second thing... using services you can shift the complete layer of having business logic and database calls to different server. So it will improve performance because now there will be two servers A and B. A is application server which just handles user requests and B which actually calculate and returns data with the interaction of database. This really helps if your site has lot of load/concurrent users.

    Now comes to xml...

    90% of the data travels between two ends (server and application or client and server) is transferred in the form of xml. xml is part of SOAP(simple object access protocol) protocol. Advantage of using xml is , the data transferred fast as it is serialized and as it became standard so every client know how to read and transform data to display on the view/screen. There is other format also which is very popula.. it JSON. Json doesnt have tag so it's more better way to use these days. Json format has name-value pair form of data. 

    These are my own words.. hope you understood this. And my time in writing this became really beneficial.

    So when you call a webservice, the result transferred over the wire is in xml , so the function which retruns some object is serialized to xml by the web service framework and then returned to the user. Now a days instead of xml , jamol format is also used. So the data can also be trnaferred in JSON format.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, May 26, 2013 10:51 AM
  • User1992938117 posted

    what is web service and its functions?

    This question is for Google/Bing there you can get many responces,however see here

    Web services are typically application programming interfaces (API) or Web APIs that are accessed via Hypertext Transfer Protocol (HTTP).

    Usage:

    http://www.tutorialspoint.com/asp.net/asp.net_web_services.htm

    http://www.codeproject.com/Articles/1231/ASP-NET-Web-Service

    http://msdn.microsoft.com/en-us/library/ms972326.aspx

    what is the function of XML?

    http://msdn.microsoft.com/en-us/library/ms996507.aspx

    https://www.simple-talk.com/dotnet/performance/understanding-xml-web-services-for-testers/

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, May 26, 2013 10:55 AM
  • User-1075092149 posted

    OOps so fundamental question.

    WebServices concept actually really comes into play , when we talk about SAS (Software as Service). So what happen with the invention of services , you can provide only those services for which he subscribed or pays. Means let them access only those functionality through services for which he really paid me or his role allows for that.

    Let's take an example... i have created a service, which actually provide two functionalities , addition and substraction... and there is a user A and B. User A is admin and user B is end user. And i dont want user B to access substraction service. So whenever user B tries to access substraction service , he will not be allowed as in functionality i am checking the user type and restricting it.

    Second thing... using services you can shift the complete layer of having business logic and database calls to different server. So it will improve performance because now there will be two servers A and B. A is application server which just handles user requests and B which actually calculate and returns data with the interaction of database. This really helps if your site has lot of load/concurrent users.

    Now comes to xml...

    90% of the data travels between two ends (server and application or client and server) is transferred in the form of xml. xml is part of SOAP(simple object access protocol) protocol. Advantage of using xml is , the data transferred fast as it is serialized and as it became standard so every client know how to read and transform data to display on the view/screen. There is other format also which is very popula.. it JSON. Json doesnt have tag so it's more better way to use these days. Json format has name-value pair form of data. 

    These are my own words.. hope you understood this. And my time in writing this became really beneficial.

    So when you call a webservice, the result transferred over the wire is in xml , so the function which retruns some object is serialized to xml by the web service framework and then returned to the user. Now a days instead of xml , jamol format is also used. So the data can also be trnaferred in JSON format.

     

    as i know, the web service is used to communication between two device. but my question is...can i get the data from ASP.NET application to JAVA's application through web service?

    Sunday, May 26, 2013 11:20 AM
  • User-738028663 posted

    Why not.... that's what unique about WCF. Latest web service framework of DotNet. MS has given demo showing the same... calling wcf service from java code in their seminal. when they released WCF. The similar kind of framework java has which is called METRO.

    Sunday, May 26, 2013 11:23 AM
  • User-738028663 posted

    want to tell you one more thing. We have once developed a iphone app , one module of our asp.net app, client wants over iphone also. For that we didnot written any new service layer. As we developed our service in WCF only so we called the same through iphone client. 

    Here REST API come's into play. you can call any wcf web service method as a REST (URI format) call.

    http://dotnettechspot.wordpress.com/2012/02/16/wcf-4-0restful-service-representational-state-transfer-rest/

    Here is my blog.

    Sunday, May 26, 2013 11:26 AM
  • User-738028663 posted

    I think i told the anwer, you are looking for.. mark it as answer.If not....for more detailed information, go in google and look for msdn  link related to WCF.

    Sunday, May 26, 2013 11:29 AM
  • User-488622176 posted

    A web service is basically a piece of automation functionality you expose over a network connection. The automation functionality offers a specific service to the party that uses the service (the consumer. What this functionality is, is irrelevant to the notion of service. It can be the creation of an order, sending an electronic invoice, finding a list of customers based upon certain conditions, ...

    XML is a way to represent data. In case of webservices, XML is used as a format to communicate with webservices. It is someway a standardised format to send and retrieve data from webservices, that is technology independent.

    When to use webservices, instead of inline code (class with function). Suppose you want to expose functionalities to users outside your infrastructure (for example : sending PDF documents to specific physical addresses), so this can be used by many clients. This implies a part of you automated functionality must be accessible for many computer systems outside your domain/network. You can do this by making a webservice that exposes this functionality as an entry point to your application/system.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 29, 2013 7:22 AM