Forums » .NET » Webservices »

how to call one webservice from another web service

Posted Date: 09 Dec 2008      Posted By:: Challa SudhakarReddy     Member Level: Gold  Member Rank: 0     Points: 1   Responses: 2

how to call one webservice from another web service?



#327723    Author: sudheera      Member Level: Gold      Member Rank: 0     Date: 10/Dec/2008   Rating: 2 out of 52 out of 5     Points: 1

Can u explain how u r using web services in the project
Thanks in advance.

#328201    Author: MOHAN BABU DODDAPANENI      Member Level: Silver      Member Rank: 0     Date: 11/Dec/2008   Rating: 2 out of 52 out of 5     Points: 4

Calling a web service from a web service is exactly same as Consuming the the web service in you application. There is no difference.
Let me explain in detail

1) Assume you have a "SampleApp" ( may be console, Winform, ASP.ENT app )
2) This "SampleApp" needs to consumes a web service ( say MyWSMain ), so the a web reference should be added to the "SampleApp" using "Add Web reference" and statred using its proxy class. Or instead of adding a web reference u could also create a proxy class of the web service using .NET tool "WSDL.exe" and it creates a proxy class (infact file with ur language of choic Vb.N#, C#, J#, C++) and u could use this file as good as a normal class file

3) Similary if MyWSMain web service wants to consume a web servcie "MyWSSub", then follow the steps as in Step2. No change in the way the web services are added and consumed . The consumption is irrespective of the application you use in

.Mohan Babu

Post Reply     

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.

  • Return to Discussion Forum
  • Start new thread

  • Subscribe to Subscribers
    Active Members
    TodayLast 7 Daysmore...

    Awards & Gifts
    Talk to Webmaster Tony John

    Online Members

    sri raja
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India