Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web method's calling other web methods?

Status
Not open for further replies.

PKFGimpy

Programmer
Nov 23, 2005
9
CA
Hi all,

I've developed a web service in C# with VS.NET, and am planning on setting up some additional web methods that make calls to other web methods. Obviously, if I declare these web methods within the same class, there is no problem with having one web method call another.

Suppose however that I want to separate out the web methods so that they can be exposed as two separate WSDL's. I was thinking I could set up another web service project and have the new web service call the web methods of the other web service, but I'm worried about the performance implications.

In this case, the server would be communicating on the localhost using SOAP messages, and I worry that the additional overhead might cause performance problems. I'm only worried about the performance if it would be a major bottleneck, a small loss of performance is acceptable.

Anyone have any input on this matter? Or perhaps another solution that I haven't thought of?

Thanks.
 
Performance will be slower - no question. Will it be unusuable? That's a subjective question.

One area that might be a concern is in authentication -- making that second call will probably not pass the original credentials along. But I'm not 100% sure -- there's probably a test case where it happens. If you care about this, you'll want to write some test code.

Chip H.


____________________________________________________________________
Donate to Katrina relief:
If you want to get the best response to a question, please read FAQ222-2244 first
 
I'm wondering if you could just have all the code in a DLL, and your two web services act as wrappers, so that one method could call any other method internally without taking a performance hit.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top