Have you ever thought of sharing your functionality to outside world where someone like you would like to consume that functionality in his app ? How you have been doing that till now....by sharing shared library or by dynamic link libraries or by sharing the actual code ? :) And how many times you got feedback asking to resolve compatibility issues due to language constraints?
The best way to share your functionality/logic with others is through Web Services. W3C established two frameworks SOAP and REST for web services. They have defined the standard format in which two systems will interact using web services.
The main differences between SOAP and REST based services:
- REST based services are light weight as compared to SOAP
- SOAP based services are secured as compared to REST. If you are creating a REST based service, then you need to explicitly take care of securing it.
- REST based services work closely with OAuth: the open authentication model that is followed by most Web2.0 apps.
- SOAP and REST based services accept input in XML and JSON format.
- REST based services provides response in XML and JSON. SOAP does the same but the response is wrapped within SOAP envelop with header and body.
NOTE: I have used Visual Studio 2010 for describing this.
Steps:
2. Right click on solution in Solution explorer> click on Add New Item
3. Select Web Service, set its name as MyService.asmx and click ok:
4. Now you can see the web service "MyService.asmx" file and code file "MyService.vb" is added to solution
5. Double click on MyService.asmx to open it :
I have written web service method "Greetings" as example. You can write your own web service method in similar manner.
The important thing to keep in mind is that when you are publishing your web service make sure you set the appropriate namespace for your service. Currently it is by default value "http://tempuri.org".
6. Hit Run(F5) to start Cassini( your local web server that comes with VS). This will take you to the service description page where service is available for consumption:
7. Click on the service name "Greetings" to open the page from where you can test the web service:
Enter the name parameter and hit "Invoke" button and see the result :
8. You can hit navigate to the URL : http://localhost:30149/WebSite1/MyService.asmx?WSDL
to view the WSDL file for this service:
You may then share this WSDL with the consumer of your service. Then it is very easy to generate the client using WSDL to invoke the service.
I hope you find this post helpful in understanding how to create SOAP based web services on the fly with .Net framework.
Cheers!
26 comments:
Thanks for sharing fabulous information. It' s my pleasure to read it.I have also bookmarked you for checking out new posts. by HRM 531 Entire Course
I really like this amazing and helpful post,.
Hi, I do think this is an excellent web site. I book marked it.
Seo Company Nagpur
Much obliged for a such wonderfull blog yours...!
Graphic Web Design Company in Delhi
Great post , Thanks for sharing with us.
Web Designing Training in Chennai
SOAP Web Services India, Soap Web Services Annotations India
Thanks for sharing, It 's excellent post
.Net Online Training
Thanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. I want to encourage that you continue your great posts, have a nice weekend!
MEAN stack training in Chennai
MEAN stack training in bangalore
MEAN stack training in tambaram
MEAN stack training in annanagar
The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
Devops Training in pune
Devops training in tambaram
Devops training in velachery
Devops training in annanagar
DevOps online Training
We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on.You have done a marvellous job!
python training institute in chennai
python training in velachery
python training institute in chennai
Amazing post. It will be very helpful for beginners like me. Thank you very much for this kind of post.Waiting for your next blog.
French Classes in Chennai
French Course in Chennai
French Language Classes in Chennai
French Training Institutes in Chennai
French Class in Chennai
French Training
French Training in Chennai
Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
Data Science training in rajaji nagar | Data Science with Python training in chenni
Data Science training in electronic city | Data Science training in USA
Data science training in pune | Data science training in kalyan nagar
This is very good content you share on this blog. it's very informative and provide me future related information.
angularjs-Training in velachery
angularjs Training in bangalore
angularjs Training in bangalore
angularjs Training in btm
angularjs Training in electronic-city
Its my great pleasure to be here on your article!! for sure ill be back to read the next blog of yours.
Selenium Training in Chennai
software testing selenium training
ios developer course in chennai
French Classes in Chennai
cloud computing training centers in chennai
cloud computing training institutes in chennai
Thanks for sharing this valuable information.Its more useful to us.its very interesting to know the blog with clear vision.
Guest posting sites
Education
Good Post...
final year project proposal for information technology
free internship for bca
web designing training in chennai
internship in coimbatore for ece
machine learning internship in chennai
6 months training with stipend in chennai
final year project for it
inplant training in chennai for ece students
industrial training report for electronics and communication
inplant training certificate
Thank you for sharing the post its really knowledgeable.
Top Digital Marketing Services
SEO Services
Digital Marketing Services
How to install WordPress
Thanks a lot for sharing such a good source with all, i appreciate your efforts taken for the same. I found this worth sharing and must share this with all.
Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery
Thank you for sharing the codes with depictions. really kind of you to post it in blog.
data science training in indore
Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot.
Angular JS Training in Chennai | Certification | Online Training Course | Angular JS Training in Bangalore | Certification | Online Training Course | Angular JS Training in Hyderabad | Certification | Online Training Course | Angular JS Training in Coimbatore | Certification | Online Training Course | Angular JS Training | Certification | Angular JS Online Training Course
I'm read this article. Is very awesome.
Python Training in Chennai
Python Training in Training
Python Training in Bangalore
Python Hyderabad
Python Training in Coimbatore
I think about it is most required for making more on this get engaged
Data Science Course in Pune
Two full thumbs up for this magneficent article of yours. I've really enjoyed reading this article today and I think this might be one of the best article that I've read yet. Please, keep this work going on in the same quality.
Data Science Course in Pune
Wonderful post! We are linking to this great post on our website. Keep up
the great writing.
UI Development Training in Bangalore
Data Science with Python Training in Bangalore
Python Training in Bangalore
AWS Training in Bangalore
Machine Learning with Python Training in Bangalore
Devops Training in Bangalore
This weblog is as a matter of fact first-rate. The sponsorship here will for all intents and purposes be of some work with to me. much obliged to you!. SmartDraw Free Download With Crack
OmniPage Ultimate break here we will talk about a surprising and beneficial gadget that on account of its unprecedented show is astoundingly famous from wherever the world. Omnipage Free Download Full Version
The information on this site is more useful. Also, thanks for your help.
https://crackbye.com/mirc-crack/
Post a Comment