Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / September 2006

Tip: Looking for answers? Try searching our database.

Remote web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
doc. Zenobiusz Furman - 19 Aug 2006 14:11 GMT
Hi!

How to call a method of a remote web service from another web service
(local)? Any help?

--
M.
Sarat Pediredla - 20 Aug 2006 20:34 GMT
As you would call any normal method of a local object. Except you need
to add a Web Reference to the Webservice first and then you can do
Object.Method() as you would on local objects.

Sarat

> Hi!
>
[quoted text clipped - 3 lines]
> --
> M.
Gaurav Vaish (www.EduJini.IN) - 22 Aug 2006 17:44 GMT
Use the proxy class generated (from WSDL) exactly in the same way as you
would from a normal class... :-)

Signature

Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.org
http://www.edujini.in | http://webservices.edujini.in
-------------------

> Hi!
>
[quoted text clipped - 3 lines]
> --
> M.
doc. Zenobiusz Furman - 31 Aug 2006 20:35 GMT
Dnia Tue, 22 Aug 2006 22:14:57 +0530, Gaurav Vaish (www.EduJini.IN)
napisał(a):

> Use the proxy class generated (from WSDL) exactly in the same way as you
> would from a normal class... :-)

Any samples? I'll be greateful.

Signature

M

Gaurav Vaish (www.EduJini.IN) - 03 Sep 2006 18:16 GMT
wsdl.exe /out:ProxyService.cs http://server/OtherWebService.asmx

And then, from the first webservice:

[WebMethod]
public string DoSomething(string)
{
   ProxyService ps = new ProxyService();
   string value = ps.SomeOtherMethod();
   return "From other one: " + value;
}

etc

Signature

Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.com
http://www.edujini.in | http://articles.edujini.in/webservices
-------------------

> Dnia Tue, 22 Aug 2006 22:14:57 +0530, Gaurav Vaish (www.EduJini.IN)
> napisa³(a):
[quoted text clipped - 3 lines]
>
> Any samples? I'll be greateful.
doc. Zenobiusz Furman - 05 Sep 2006 16:15 GMT
Dnia Sun, 3 Sep 2006 22:46:32 +0530, Gaurav Vaish (www.EduJini.IN)
napisał(a):

> wsdl.exe /out:ProxyService.cs http://server/OtherWebService.asmx
>
[quoted text clipped - 7 lines]
>     return "From other one: " + value;
> }

Is there a way to make webservice a variable in my application? I'll be
grateful for code sample.

Signature

  _/_/_/_/_/
 _/ zenobiusz (kropka) furman (małpa) vp (kropka) pl
_/_/_/
_/ http://zenobiusz-furman.webpark.pl

Gaurav Vaish (www.EduJini.IN) - 06 Sep 2006 20:36 GMT
> Is there a way to make webservice a variable in my application? I'll be
> grateful for code sample.

What do you mean by that?
Do you mean that the proxy-class should be created and compiled on the fly?

I'd suggest you to have a look at NAnt build-tool rather than Ctrl+Shift+B
option in VS. :-)

Signature

Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.com
http://articles.edujinionline.com/webservices
-------------------


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.