Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Webservice problem url urgent

Reply
Thread Tools

Webservice problem url urgent

 
 
aka
Guest
Posts: n/a
 
      08-01-2006
Hi ,
I have created a webservice in asp.net with c# as code behind.When i run or
debug my application the web service works fine .How can I make this
webservice active or run by just using the url ?So that i can use in another
applications at client side by just passing the url like
http://localhost/myweb/service.asmx.I tried but i could not access the
webservice by using only url .how can i achieve this?
Please respond urgently.I am badly in need of help
thanks in advance
kka
 
Reply With Quote
 
 
 
 
Andrew Brook
Guest
Posts: n/a
 
      08-01-2006
The simplest way to connect to a webservice (using visual studio) is to 'add
a webreference'. The dialog which pops up will ask for the address of the
service (http://localhost/myweb/service.asmx) and will then generate a proxy
class for you (the default name is WebReference, unless you change it). You
should then be able to access the service through the proxy class.

Hope this helps
Andrew

"aka" <> wrote in message
news:38A4B658-5689-43DA-8239-...
> Hi ,
> I have created a webservice in asp.net with c# as code behind.When i run
> or
> debug my application the web service works fine .How can I make this
> webservice active or run by just using the url ?So that i can use in
> another
> applications at client side by just passing the url like
> http://localhost/myweb/service.asmx.I tried but i could not access the
> webservice by using only url .how can i achieve this?
> Please respond urgently.I am badly in need of help
> thanks in advance
> kka



 
Reply With Quote
 
 
 
 
Ramya A
Guest
Posts: n/a
 
      08-01-2006
You have to deploy the C# web service in the target server before
accessing the web service from other applications.
Create a new project selecting "Setup and Deployment", Web Setup
project and add it to your existing solution project. You can read
"Deploying a Web solution" under help which walkthroughs the procedure.
Once the setup is created, you will have to copy everything from
Debug directory of the local machine to the target server. From the
target server, run the Setup.exe and that will deploy the web service.
Then when you use the http://<target server computer name>/<virtual
directory>, it should display the default asmx file. This is now ready
for use from your client applications as well.

Hope this helps.
Ramya

aka wrote:
> Hi ,
> I have created a webservice in asp.net with c# as code behind.When i run or
> debug my application the web service works fine .How can I make this
> webservice active or run by just using the url ?So that i can use in another
> applications at client side by just passing the url like
> http://localhost/myweb/service.asmx.I tried but i could not access the
> webservice by using only url .how can i achieve this?
> Please respond urgently.I am badly in need of help
> thanks in advance
> kka


 
Reply With Quote
 
Ramya A
Guest
Posts: n/a
 
      08-01-2006
You have to deploy the C# web service in the target server before
accessing the web service from other applications.
Create a new project selecting "Setup and Deployment", Web Setup
project and add it to your existing solution project. You can read
"Deploying a Web solution" under help which walkthroughs the procedure.
Once the setup is created, you will have to copy everything from
Debug directory of the local machine to the target server. From the
target server, run the Setup.exe and that will deploy the web service.
Then when you use the http://<target server computer name>/<virtual
directory>, it should display the default asmx file. This is now ready
for use from your client applications as well.

Hope this helps.
Ramya

aka wrote:
> Hi ,
> I have created a webservice in asp.net with c# as code behind.When i run or
> debug my application the web service works fine .How can I make this
> webservice active or run by just using the url ?So that i can use in another
> applications at client side by just passing the url like
> http://localhost/myweb/service.asmx.I tried but i could not access the
> webservice by using only url .how can i achieve this?
> Please respond urgently.I am badly in need of help
> thanks in advance
> kka


 
Reply With Quote
 
aka
Guest
Posts: n/a
 
      08-02-2006
hi,thanks all for your input.my problem is versions .my web service is
developed in asp 2.0. and my iis was set default to asp1.1
I had fixed it.
thanks for giving quick response


"Ramya A" wrote:

> You have to deploy the C# web service in the target server before
> accessing the web service from other applications.
> Create a new project selecting "Setup and Deployment", Web Setup
> project and add it to your existing solution project. You can read
> "Deploying a Web solution" under help which walkthroughs the procedure.
> Once the setup is created, you will have to copy everything from
> Debug directory of the local machine to the target server. From the
> target server, run the Setup.exe and that will deploy the web service.
> Then when you use the http://<target server computer name>/<virtual
> directory>, it should display the default asmx file. This is now ready
> for use from your client applications as well.
>
> Hope this helps.
> Ramya
>
> aka wrote:
> > Hi ,
> > I have created a webservice in asp.net with c# as code behind.When i run or
> > debug my application the web service works fine .How can I make this
> > webservice active or run by just using the url ?So that i can use in another
> > applications at client side by just passing the url like
> > http://localhost/myweb/service.asmx.I tried but i could not access the
> > webservice by using only url .how can i achieve this?
> > Please respond urgently.I am badly in need of help
> > thanks in advance
> > kka

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista ASP .Net 1 01-26-2006 12:05 PM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista ASP .Net 0 01-26-2006 08:13 AM
URL - substitution of a correct URL by a GUID like URL in favorites. Just D. ASP .Net Mobile 0 08-11-2004 04:26 PM
redirect URL's, return URL's, and URL Parameters Jon paugh ASP .Net 1 07-10-2004 05:29 AM
Urgent problem, repeat, Urgent problem. Rob Javascript 3 05-18-2004 12:05 AM



Advertisments