By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,386 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

Question about consuming a web service manually

P: n/a
Hi there.

In Web Developer 2005 is very easy to let an aspx page consume a web
service: I just Add a Web Reference and the IDE does everything for me: it
creates the App_WebReferences folder with the corresponding .wsdl .disco and
..discomap files plus the Web.Config file in the root folder of my local web
site.

I would like to know if there's a "manual" way to let an aspx page consume
the web service.
I'm creating the proxy class by typing:
wsdl http://localhost/mytest/webservices/...ple1.asmx?wsdl
and it creates a file named wsexample1.cs. Then I compile it using csc
compiler; it creates a wsexample1.dll.

From here, I don't know what's the next step, I don't know where to put
those (.cs and .dll files) in order to let
http://localhost/mytest/consumexample.aspx consume the wsexample1 web service.

Would someone please guide me to achieve this?

Thanks in advance.
Best Regards
Jun 3 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hello Rolandpish,

Now you need to link this dll to your project and use it as the general dll

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

RHi there.
R>
RIn Web Developer 2005 is very easy to let an aspx page consume a web
Rservice: I just Add a Web Reference and the IDE does everything for
Rme: it creates the App_WebReferences folder with the corresponding
R.wsdl .disco and .discomap files plus the Web.Config file in the root
Rfolder of my local web site.
R>
RI would like to know if there's a "manual" way to let an aspx page
Rconsume
Rthe web service.
RI'm creating the proxy class by typing:
Rwsdl http://localhost/mytest/webservices/...ple1.asmx?wsdl
Rand it creates a file named wsexample1.cs. Then I compile it using
Rcsc
Rcompiler; it creates a wsexample1.dll.
RFrom here, I don't know what's the next step, I don't know where to
Rput those (.cs and .dll files) in order to let
Rhttp://localhost/mytest/consumexample.aspx consume the wsexample1 web
Rservice.
R>
RWould someone please guide me to achieve this?
R>
RThanks in advance.
RBest Regards
Jun 3 '07 #2

P: n/a
Thanks for your reply Michael.
I'll try linking it to my project via IDE and in a manual way. I'll let you
know what happens.

Best Regards

"Michael Nemtsev" wrote:
Hello Rolandpish,

Now you need to link this dll to your project and use it as the general dll

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

RHi there.
R>
RIn Web Developer 2005 is very easy to let an aspx page consume a web
Rservice: I just Add a Web Reference and the IDE does everything for
Rme: it creates the App_WebReferences folder with the corresponding
R.wsdl .disco and .discomap files plus the Web.Config file in the root
Rfolder of my local web site.
R>
RI would like to know if there's a "manual" way to let an aspx page
Rconsume
Rthe web service.
RI'm creating the proxy class by typing:
Rwsdl http://localhost/mytest/webservices/...ple1.asmx?wsdl
Rand it creates a file named wsexample1.cs. Then I compile it using
Rcsc
Rcompiler; it creates a wsexample1.dll.
RFrom here, I don't know what's the next step, I don't know where to
Rput those (.cs and .dll files) in order to let
Rhttp://localhost/mytest/consumexample.aspx consume the wsexample1 web
Rservice.
R>
RWould someone please guide me to achieve this?
R>
RThanks in advance.
RBest Regards
Jun 4 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.