C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » Webservices »

Proxy creating


Posted Date: 24 Oct 2009      Posted By: Ron Kittu      Member Level: Silver     Points: 1   Responses: 2



hi,
Am a beginer in webservices. why we need to use a proxy in client project...?? whats the advantage of using a Proxy...?? In one of silverlight project in my company i saw an example

Dim proxy As ServiceReference1.WebServiceSoapClient = ProxyManger.CreateProxy

is it the same in asp.net also..?? Can anyboxy explain me whats mean by the "ServiceReference1.WebServiceSoapClient"...?? Pls help





Responses

Author: Naganathan    25 Oct 2009Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

OK it is not the webservice that is causing the problem as the same thing happens to a normal class too.

I was under the impression that casting from a base class to a higher class is implicit and requires no special casting. But neither implicit or explicit casting is working in this case.

Eg I have created 2 test classes.

public class test1

{

public test1()

{

}

}



public class test2:test1

{

public test2()

{

}

}



Now if i cast from 2 to 1 it works ie

test2 t2=new test2();

test1 t1=(test1)t2;



Yet casting from base to the higher class does not work ie

test1 t1=new test1();

test2 t2=t1; OR test2 t2=(test2)t1;



Author: Hari    05 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Why do we need to create proxy?
>>We need a proxy because it would abstarct the communiation and invocation of the the web service. Else we would have to write code that invokes and sends messages to the service



Post Reply
You must Sign In to post a response.
Next : Deploy webservice in IIS 6.0
Previous : Web service proxy
Return to Discussion Forum
Post New Message
Category: Webservices

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use