473,385 Members | 1,486 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Question about consuming a web service manually

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
2 1305
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Wee Bubba | last post by:
i have created a web service with one method which returns a code. i am currently trying to access the return value of this method through a page which has not got the proxy.dll referenced. i.e. as...
3
by: Peter | last post by:
Hi! Please, could You advice me to complete the following task: We have a Web Service that returns XML document with some data about our customers. public XmlDocument getCustInfo() {
3
by: Matt D | last post by:
I've got two web services that use the same data types and that clients will have to consume. I read the msdn article on sharing types...
6
by: kbs | last post by:
Hi, I'm looking for some good examples that illustrate how to code a web service that exposes a custom collection so that the properties of the collection are accessible on the client without...
2
by: Glenn Venzke | last post by:
Is there any way to tell what type of application is consuming a web service? I'm writing a web service that returns a string with 2 carriage returns. What I want to do is replace these carriage...
0
by: plmanikandan | last post by:
I need to develop a application to consume a webservice. For consuming web service i tried a example in Consuming a Web Service in C# in http://www.csharphelp.com.But i am uanble to use that...
4
by: =?Utf-8?B?Z3Jhenph?= | last post by:
Hello If someone can help me with this it would be greatly appreciated. I’m no web service expert but I don't think i'm trying to do anything too special. I think i must be missing something...
6
by: =?Utf-8?B?RGFuaWVs?= | last post by:
Hi, Recently I'm confused by this exception. ----- The message could not be processed. This is most likely because the action 'http://tempuri.org/IBCC2MatrixService/UserMatchingSearch' is...
1
by: Thomas Mueller | last post by:
Hi, I'm currently working on C# code consuming a PHP-webservice (soapserver-class of PHP5). A PHP test-client worked fine and achieved the requested data from the service's server. Using the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.