Deploying Web Service in Hosting Server (eg: godaddy, somee etc.) || Part-19
Articles,  Blog

Deploying Web Service in Hosting Server (eg: godaddy, somee etc.) || Part-19


hi I’m Revanth this is part 19 of web services video
series in this session we will discuss how to deploy web service in hosting server
like a godaddy and somee.com etc important synopsis we will discuss in
this video are create a web service project buy the required hosting server and
deploy the developed service in hosting server using FTP File Transfer
Protocol or visual studio or using cPanel from the file manager so let’s
begin the tutorial if you haven’t watched the previous videos I strongly
recommend to watch before proceeding this video’s in part 16 and part 17 and
party 18 how discussed consuming and deploying web services deploying web
service in hosting server when we look at here hosting server is nothing but
the hosting provider like godaddy, somee.com so once we deployed the
developed a web service in hosting server by using ftp tool file transfer
protocol or by visual studio or
file manager from the cpanel hosting server once the web service project is
hosted in the hosting server we can access the WSDL document through the
browser are all we can develop the windows web application and wpf
applications this is a client application web service in somee.com by the required hosting server and the moments when we look at here in
the picture how already deployed the service these are the files of content let’s look in action how to create a
service and deploy in hosting server flip to Visual Studio select the file new
project select a template as visual c# select web and framework has
.net framework 4.5 select asp.net empty web application rename the project has web service project click on OK button once the project is created right click on the project and this
click on add a new item select web form rename it has a default.aspx click on
Add button that will create the web from and now right click on the project click
on add add new item select web services rename as service.asmx click on Add
button that will create the service now let’s create methods to consume time I have already written the methods let’s copy and paste ok the methods are very straightforward
when we call this hello method by passing the name has the string it was
written hello with the name of the string that
we have passed it and by calling get our a method it will written half integer
values by calling get current time it will return their daytime and by calling
get xml data it will return xmldocument let’s sail and build the
solution so bit sexier let’s write like on the side of his
daughter is second max and the view in browser now let’s click on this get URL
link click on invert button so it will written you stop integer values let’s go back and click on get currency
time let’s click on invert button it will return the current time let’s go back and get xml data it will
return the xml data for us and let’s go and click hello it is it is
asking the parameter has a name let’s give the parameter has value has
prevent click on invert button it will written hello Raven so that’s obvious is
working as expected let’s deploy this service in so many .
com for that we need to create the account so this is the soul mate . come
website where this is a hosting server how already created the free hosting
server let’s login so once you create the account it will
ask to create the website name in which i have created one website with this
named Raven web service . so may . come and right now there is no files so let’s
deploy by using file manager Explorer this is a file manager in the cpanel
this is one type of uploading the files now let’s open the project and right
click on the project and click on open folder in file explorer select the web
service project and zip the file choose file and select the file and
upload and unzip arch now let’s choose the file click on choose file and select
web service projects if right kinda up click on this upload and unzip arch so
open the file so all the files are uploaded into the server small this vise yeah let’s run and check whether their
services working or not no services working as expected let’s quickly check let’s click on this hello so I look at this we cannot test
will service by passing that name through the browser that test form is
only available for requests from the local mission be showing the message has
like and this is the digital document for this web service let’s copy this and let’s quickly create
the client application and consume this web service that’s open is your studio let’s click on file new project selected
windows windows form application let’s create client application click on OK button now right click on the project click on
add service reference is the URL and click on go button so the methods are
available click on walkabout in that will create the proxy drag-and-drop one
button and rename it has get response that we
double-click on this get response button to key created the even-handed for this
now create service now let’s click on start now let’s run
the project click on get response button so it connects to the service and gets
their response when when we call this get our a method it will return the idea
of integer values so that response is this one and when we call this get
current time between Britain the current system time so this is a current time and when we call this get xml data
method it will return the xml data so this is a sample data yeah and when we call this hello method
bypassing the name as the string it will be written the hollow event so the
services working has expected so we have successfully hosted this website within
the hosting server now let’s deploy themselves through visual studio for
that lets could delete all these files so the files are deleted now go back to
the web service project right click on the project and click on publish create
the service name like service let’s publish their website of by ftp
let’s kill the URL kill the site part where the file should
be hosted for that let’s click on this let’s click on this file so here the
file should be hosted part that is copy and paste this for that pot and give the
credentials let’s click on validate connection
button so the violations of successful click on next configuration has released
click on next and publish so it is connecting to the server now it is
publishing the folder you can find this in the straightest but so it is
publishing now they’re being for that so we have successfully uploaded to the
server let’s quickly check in the server let’s refresh this page so the files are uploaded successfully
let’s go back and see in the file manager window so the files are uploaded
successfully let’s now open in next video we will discuss web
service testing using soap you wait all thanks for watching for references and
resources visit this link and subscribe to my youtube channel for email alerts thank you

14 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *